Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/net/ipv6/netfilter/
H 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 …]
/OK3568_Linux_fs/kernel/net/ipv6/
H A Dseg6_local.c70 int len, srhoff = 0; in get_srh() local
72 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) in get_srh()
75 if (!pskb_may_pull(skb, srhoff + sizeof(*srh))) in get_srh()
78 srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in get_srh()
82 if (!pskb_may_pull(skb, srhoff + len)) in get_srh()
88 srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in get_srh()
/OK3568_Linux_fs/kernel/net/core/
H A Dfilter.c5683 int srhoff = 0; in BPF_CALL_4() local
5700 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) in BPF_CALL_4()
5702 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in BPF_CALL_4()
5722 int srhoff = 0; in bpf_update_srh_state() local
5724 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) { in bpf_update_srh_state()
5727 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in bpf_update_srh_state()
5814 int srhoff = 0; in BPF_CALL_3() local
5848 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) in BPF_CALL_3()
5850 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in BPF_CALL_3()