Home
last modified time | relevance | path

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

/Linux-v4.19/net/ipv6/netfilter/
Dip6t_srh.c33 int hdrlen, srhoff = 0; in srh_mt6() local
35 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) in srh_mt6()
37 srh = skb_header_pointer(skb, srhoff, sizeof(_srh), &_srh); in srh_mt6()
42 if (skb->len - srhoff < hdrlen) in srh_mt6()
122 int hdrlen, psidoff, nsidoff, lsidoff, srhoff = 0; in srh1_mt6() local
129 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) in srh1_mt6()
131 srh = skb_header_pointer(skb, srhoff, sizeof(_srh), &_srh); in srh1_mt6()
136 if (skb->len - srhoff < hdrlen) in srh1_mt6()
210 psidoff = srhoff + sizeof(struct ipv6_sr_hdr) + in srh1_mt6()
223 nsidoff = srhoff + sizeof(struct ipv6_sr_hdr) + in srh1_mt6()
[all …]
/Linux-v4.19/net/ipv6/
Dseg6_local.c74 int len, srhoff = 0; in get_srh() local
76 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) in get_srh()
79 if (!pskb_may_pull(skb, srhoff + sizeof(*srh))) in get_srh()
82 srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in get_srh()
86 if (!pskb_may_pull(skb, srhoff + len)) in get_srh()
/Linux-v4.19/net/core/
Dfilter.c4607 int srhoff = 0; in BPF_CALL_4() local
4624 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) in BPF_CALL_4()
4626 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in BPF_CALL_4()
4646 int srhoff = 0; in bpf_update_srh_state() local
4648 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) { in bpf_update_srh_state()
4651 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in bpf_update_srh_state()
4738 int srhoff = 0; in BPF_CALL_3() local
4772 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) in BPF_CALL_3()
4774 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in BPF_CALL_3()