Lines Matching refs:new_eth
67 static __always_inline void set_ethhdr(struct ethhdr *new_eth, in set_ethhdr() argument
72 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); in set_ethhdr()
73 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); in set_ethhdr()
74 new_eth->h_proto = h_proto; in set_ethhdr()
82 struct ethhdr *new_eth; in handle_ipv4() local
118 new_eth = data; in handle_ipv4()
119 iph = data + sizeof(*new_eth); in handle_ipv4()
122 if (new_eth + 1 > data_end || in handle_ipv4()
127 set_ethhdr(new_eth, old_eth, tnl, htons(ETH_P_IP)); in handle_ipv4()
157 struct ethhdr *new_eth; in handle_ipv6() local
190 new_eth = data; in handle_ipv6()
191 ip6h = data + sizeof(*new_eth); in handle_ipv6()
194 if (new_eth + 1 > data_end || in handle_ipv6()
199 set_ethhdr(new_eth, old_eth, tnl, htons(ETH_P_IPV6)); in handle_ipv6()