Searched refs:srhoff (Results 1 – 5 of 5) sorted by relevance
/linux/net/ipv6/netfilter/ |
H A 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/net/ipv6/ |
H A D | seg6.c | 79 int len, srhoff = 0; in seg6_get_srh() local 81 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, &flags) < 0) in seg6_get_srh() 84 if (!pskb_may_pull(skb, srhoff + sizeof(*srh))) in seg6_get_srh() 87 srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in seg6_get_srh() 91 if (!pskb_may_pull(skb, srhoff + len)) in seg6_get_srh() 97 srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in seg6_get_srh() 128 opt->srhoff = (unsigned char *)srh - skb->data; in seg6_icmp_srh()
|
/linux/include/net/ |
H A D | seg6.h | 86 srh = (struct ipv6_sr_hdr *)(skb->data + opt->srhoff); in seg6_get_daddr()
|
/linux/include/linux/ |
H A D | ipv6.h | 146 __u16 srhoff; member
|
/linux/net/core/ |
H A D | filter.c | 6496 int srhoff = 0; in BPF_CALL_4() local 6514 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) in BPF_CALL_4() 6516 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in BPF_CALL_4() 6536 int srhoff = 0; in bpf_update_srh_state() local 6538 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) { in bpf_update_srh_state() 6541 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in bpf_update_srh_state() 6629 int srhoff = 0; in BPF_CALL_3() local 6664 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) in BPF_CALL_3() 6666 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in BPF_CALL_3()
|