Lines Matching defs:new_eth
69 static __always_inline void set_ethhdr(struct ethhdr *new_eth,
74 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source));
75 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest));
76 new_eth->h_proto = h_proto;
84 struct ethhdr *new_eth;
118 new_eth = data;
119 iph = data + sizeof(*new_eth);
122 if (new_eth + 1 > data_end ||
127 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP));
157 struct ethhdr *new_eth;
188 new_eth = data;
189 ip6h = data + sizeof(*new_eth);
192 if (new_eth + 1 > data_end || old_eth + 1 > data_end ||
196 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IPV6));