Home
last modified time | relevance | path

Searched refs:encap_proto (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.10/tools/testing/selftests/bpf/progs/
Dtest_tc_tunnel.c72 static __always_inline int encap_ipv4(struct __sk_buff *skb, __u8 encap_proto, in encap_ipv4() argument
91 if (encap_proto == IPPROTO_IPV6) { in encap_ipv4()
149 switch (encap_proto) { in encap_ipv4()
194 h_outer.ip.protocol = encap_proto; in encap_ipv4()
204 if (encap_proto == IPPROTO_IPV6) { in encap_ipv4()
217 static __always_inline int encap_ipv6(struct __sk_buff *skb, __u8 encap_proto, in encap_ipv6() argument
257 switch (encap_proto) { in encap_ipv6()
302 h_outer.ip.nexthdr = encap_proto; in encap_ipv6()
/Linux-v5.10/net/hsr/
Dhsr_forward.c57 if (hsr_V1_hdr->hsr.encap_proto != htons(ETH_P_PRP)) in is_supervision_frame()
226 hsr_ethhdr->hsr_tag.encap_proto = hsr_ethhdr->ethhdr.h_proto; in hsr_fill_tag()
Dhsr_main.h55 __be16 encap_proto; member
Dhsr_device.c305 hsr_tag->encap_proto = htons(ETH_P_PRP); in send_hsr_supervision_frame()