Home
last modified time | relevance | path

Searched refs:srhoff (Results 1 – 6 of 6) sorted by relevance

/linux-6.3-rc2/net/ipv6/netfilter/
A Dip6t_srh.c29 int hdrlen, srhoff = 0; in srh_mt6() local
31 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) in srh_mt6()
33 srh = skb_header_pointer(skb, srhoff, sizeof(_srh), &_srh); in srh_mt6()
38 if (skb->len - srhoff < hdrlen) in srh_mt6()
118 int hdrlen, psidoff, nsidoff, lsidoff, srhoff = 0; in srh1_mt6() local
125 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) in srh1_mt6()
127 srh = skb_header_pointer(skb, srhoff, sizeof(_srh), &_srh); in srh1_mt6()
132 if (skb->len - srhoff < hdrlen) in srh1_mt6()
206 psidoff = srhoff + sizeof(struct ipv6_sr_hdr) + in srh1_mt6()
221 nsidoff = srhoff + sizeof(struct ipv6_sr_hdr) + in srh1_mt6()
[all …]
/linux-6.3-rc2/net/ipv6/
A Dseg6.c81 int len, srhoff = 0; in seg6_get_srh() local
83 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, &flags) < 0) in seg6_get_srh()
86 if (!pskb_may_pull(skb, srhoff + sizeof(*srh))) in seg6_get_srh()
89 srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in seg6_get_srh()
93 if (!pskb_may_pull(skb, srhoff + len)) in seg6_get_srh()
99 srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in seg6_get_srh()
130 opt->srhoff = (unsigned char *)srh - skb->data; in seg6_icmp_srh()
A Dseg6_local.c567 if (unlikely(srhoff < sizeof(*iph) || in seg6_pop_srh()
571 srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in seg6_pop_srh()
579 srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in seg6_pop_srh()
590 if (likely(nhlen <= srhoff)) in seg6_pop_srh()
592 else if (nhlen >= srhoff + srhlen) in seg6_pop_srh()
610 skb_pull_rcsum(skb, srhoff + srhlen); in seg6_pop_srh()
612 srhoff); in seg6_pop_srh()
613 skb_push(skb, srhoff); in seg6_pop_srh()
664 skb_postpush_rcsum(skb, iph, srhoff); in seg6_pop_srh()
679 int srhoff; in end_flv8986_core() local
[all …]
/linux-6.3-rc2/include/net/
A Dseg6.h79 srh = (struct ipv6_sr_hdr *)(skb->data + opt->srhoff); in seg6_get_daddr()
/linux-6.3-rc2/include/linux/
A Dipv6.h137 __u16 srhoff; member
/linux-6.3-rc2/net/core/
A Dfilter.c6296 int srhoff = 0; in BPF_CALL_4() local
6313 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) in BPF_CALL_4()
6315 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in BPF_CALL_4()
6335 int srhoff = 0; in bpf_update_srh_state() local
6337 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) { in bpf_update_srh_state()
6340 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in bpf_update_srh_state()
6427 int srhoff = 0; in BPF_CALL_3() local
6461 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) in BPF_CALL_3()
6463 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in BPF_CALL_3()

Completed in 89 milliseconds