Lines Matching refs:old_eth
294 struct eth_hdr *old_eth; in encap_v6() local
306 old_eth = data + sizeof(struct ipv6hdr); in encap_v6()
308 old_eth + 1 > data_end || ip6h + 1 > data_end) in encap_v6()
311 memcpy(new_eth->eth_source, old_eth->eth_dest, 6); in encap_v6()
339 struct eth_hdr *old_eth; in encap_v4() local
354 old_eth = data + sizeof(struct iphdr); in encap_v4()
356 old_eth + 1 > data_end || iph + 1 > data_end) in encap_v4()
359 memcpy(new_eth->eth_source, old_eth->eth_dest, 6); in encap_v4()
389 struct eth_hdr *old_eth; in decap_v6() local
391 old_eth = *data; 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()
410 struct eth_hdr *old_eth; in decap_v4() local
412 old_eth = *data; 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()