Lines Matching refs:eth
126 struct ethhdr* eth = is_ethernet ? data : NULL; // used iff is_ethernet local
127 struct ipv6hdr* ip6 = is_ethernet ? (void*)(eth + 1) : data;
133 if (is_ethernet && (eth->h_proto != htons(ETH_P_IPV6))) return TC_ACT_OK;
179 if (is_ethernet) __builtin_memcpy(downstream ? kd.dstMac : ku.dstMac, eth->h_dest, ETH_ALEN);
239 eth = data;
240 ip6 = (void*)(eth + 1);
269 *eth = v->macHeader;
373 struct ethhdr* eth = is_ethernet ? data : NULL; // used iff is_ethernet in do_forward4() local
374 struct iphdr* ip = is_ethernet ? (void*)(eth + 1) : data; in do_forward4()
380 if (is_ethernet && (eth->h_proto != htons(ETH_P_IP))) return TC_ACT_OK; in do_forward4()
492 if (is_ethernet) __builtin_memcpy(k.dstMac, eth->h_dest, ETH_ALEN); in do_forward4()
552 eth = data; in do_forward4()
553 ip = (void*)(eth + 1); in do_forward4()
570 *eth = v->macHeader; in do_forward4()
792 const struct ethhdr* eth = data; in do_xdp_forward_ether() local
795 if ((void*)(eth + 1) > data_end) return XDP_PASS; in do_xdp_forward_ether()
797 if (eth->h_proto == htons(ETH_P_IPV6)) in do_xdp_forward_ether()
799 if (eth->h_proto == htons(ETH_P_IP)) in do_xdp_forward_ether()