Searched refs:srhoff (Results 1 – 3 of 3) sorted by relevance
/kernel/linux/linux-5.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 …]
|
/kernel/linux/linux-5.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()
|
/kernel/linux/linux-5.10/net/core/ |
D | filter.c | 5698 int srhoff = 0; in BPF_CALL_4() local 5715 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) in BPF_CALL_4() 5717 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in BPF_CALL_4() 5737 int srhoff = 0; in bpf_update_srh_state() local 5739 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) { in bpf_update_srh_state() 5742 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in bpf_update_srh_state() 5829 int srhoff = 0; in BPF_CALL_3() local 5863 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) in BPF_CALL_3() 5865 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in BPF_CALL_3()
|