Searched refs:srhoff (Results 1 – 3 of 3) sorted by relevance
| /Linux-v5.10/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.10/net/ipv6/ |
| D | seg6_local.c | 70 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()
|
| /Linux-v5.10/net/core/ |
| D | filter.c | 5696 int srhoff = 0; in BPF_CALL_4() local 5713 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) in BPF_CALL_4() 5715 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in BPF_CALL_4() 5735 int srhoff = 0; in bpf_update_srh_state() local 5737 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) { in bpf_update_srh_state() 5740 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in bpf_update_srh_state() 5827 int srhoff = 0; in BPF_CALL_3() local 5861 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) in BPF_CALL_3() 5863 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in BPF_CALL_3()
|