Lines Matching refs:new_eth
293 struct eth_hdr *new_eth; in encap_v6() local
304 new_eth = data; in encap_v6()
307 if (new_eth + 1 > data_end || in encap_v6()
310 memcpy(new_eth->eth_dest, cval->mac, 6); in encap_v6()
311 memcpy(new_eth->eth_source, old_eth->eth_dest, 6); in encap_v6()
312 new_eth->eth_proto = 56710; in encap_v6()
338 struct eth_hdr *new_eth; in encap_v4() local
352 new_eth = data; in encap_v4()
355 if (new_eth + 1 > data_end || in encap_v4()
358 memcpy(new_eth->eth_dest, cval->mac, 6); in encap_v4()
359 memcpy(new_eth->eth_source, old_eth->eth_dest, 6); in encap_v4()
360 new_eth->eth_proto = 8; in encap_v4()
388 struct eth_hdr *new_eth; in decap_v6() local
392 new_eth = *data + sizeof(struct ipv6hdr); in decap_v6()
393 memcpy(new_eth->eth_source, old_eth->eth_source, 6); in decap_v6()
394 memcpy(new_eth->eth_dest, old_eth->eth_dest, 6); in decap_v6()
396 new_eth->eth_proto = 8; in decap_v6()
398 new_eth->eth_proto = 56710; in decap_v6()
409 struct eth_hdr *new_eth; in decap_v4() local
413 new_eth = *data + sizeof(struct iphdr); in decap_v4()
414 memcpy(new_eth->eth_source, old_eth->eth_source, 6); in decap_v4()
415 memcpy(new_eth->eth_dest, old_eth->eth_dest, 6); in decap_v4()
416 new_eth->eth_proto = 8; in decap_v4()