Lines Matching defs:new_eth
65 static __always_inline void set_ethhdr(struct ethhdr *new_eth,
70 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source));
71 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest));
72 new_eth->h_proto = h_proto;
80 struct ethhdr *new_eth;
114 new_eth = data;
115 iph = data + sizeof(*new_eth);
118 if (new_eth + 1 > data_end ||
123 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP));
153 struct ethhdr *new_eth;
184 new_eth = data;
185 ip6h = data + sizeof(*new_eth);
188 if (new_eth + 1 > data_end || old_eth + 1 > data_end ||
192 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IPV6));