Searched refs:srhoff (Results 1 – 3 of 3) sorted by relevance
| /Linux-v5.4/net/ipv6/netfilter/ |
| D | ip6t_srh.c | 29 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-v5.4/net/ipv6/ |
| D | seg6_local.c | 69 int len, srhoff = 0; in get_srh() local 71 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) in get_srh() 74 if (!pskb_may_pull(skb, srhoff + sizeof(*srh))) in get_srh() 77 srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in get_srh() 81 if (!pskb_may_pull(skb, srhoff + len)) in get_srh() 87 srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in get_srh()
|
| /Linux-v5.4/net/core/ |
| D | filter.c | 5021 int srhoff = 0; in BPF_CALL_4() local 5038 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) in BPF_CALL_4() 5040 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in BPF_CALL_4() 5060 int srhoff = 0; in bpf_update_srh_state() local 5062 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) { in bpf_update_srh_state() 5065 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in bpf_update_srh_state() 5152 int srhoff = 0; in BPF_CALL_3() local 5186 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) in BPF_CALL_3() 5188 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in BPF_CALL_3()
|