Lines Matching defs:new_eth
67 static __always_inline void set_ethhdr(struct ethhdr *new_eth,
72 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source));
73 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest));
74 new_eth->h_proto = h_proto;
84 struct ethhdr *new_eth;
125 new_eth = bpf_dynptr_slice_rdwr(&new_xdp_ptr, 0, eth_buffer, sizeof(eth_buffer));
126 if (!new_eth)
129 iph = (struct iphdr *)(new_eth + 1);
132 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP));
134 if (new_eth == eth_buffer)
166 struct ethhdr *new_eth;
204 new_eth = bpf_dynptr_slice_rdwr(&new_xdp_ptr, 0, eth_buffer, sizeof(eth_buffer));
205 if (!new_eth)
208 ip6h = (struct ipv6hdr *)(new_eth + 1);
211 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IPV6));
213 if (new_eth == eth_buffer)