Searched refs:new_eth (Results 1 – 1 of 1) sorted by relevance
67 static __always_inline void set_ethhdr(struct ethhdr *new_eth, in set_ethhdr() argument72 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() local118 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[all …]