Lines Matching refs:skb
42 static inline __always_inline int nat64(struct __sk_buff* skb, bool is_ethernet) { in nat64() argument
44 void* data = (void*)(long)skb->data; in nat64()
45 const void* data_end = (void*)(long)skb->data_end; in nat64()
50 if (is_ethernet && (skb->pkt_type != PACKET_HOST)) return TC_ACT_OK; in nat64()
53 if (skb->protocol != htons(ETH_P_IPV6)) return TC_ACT_OK; in nat64()
79 .iif = skb->ifindex, in nat64()
135 if (bpf_skb_change_proto(skb, htons(ETH_P_IP), 0)) return TC_ACT_OK; in nat64()
152 bpf_csum_update(skb, sum6); in nat64()
155 data = (void*)(long)skb->data; in nat64()
156 data_end = (void*)(long)skb->data_end; in nat64()
183 (struct __sk_buff* skb) {
184 return nat64(skb, true);
188 (struct __sk_buff* skb) {
189 return nat64(skb, false);
195 (struct __sk_buff* skb) {
200 (struct __sk_buff* skb) {
201 void* data = (void*)(long)skb->data;
202 const void* data_end = (void*)(long)skb->data_end;
206 if (skb->protocol != htons(ETH_P_IP)) return TC_ACT_OK;
255 .iif = skb->ifindex,
293 if (bpf_skb_change_proto(skb, htons(ETH_P_IPV6), 0)) return TC_ACT_OK;
304 bpf_csum_update(skb, sum6);
307 data = (void*)(long)skb->data;
308 data_end = (void*)(long)skb->data_end;