Home
last modified time | relevance | path

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

/linux/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 …]
/linux/net/ipv6/
H A Dseg6_local.c628 static bool seg6_pop_srh(struct sk_buff *skb, int srhoff) in seg6_pop_srh() argument
637 if (unlikely(srhoff < sizeof(*iph) || in seg6_pop_srh()
638 !pskb_may_pull(skb, srhoff + sizeof(*srh)))) in seg6_pop_srh()
641 srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in seg6_pop_srh()
645 if (unlikely(skb_ensure_writable(skb, srhoff + srhlen))) in seg6_pop_srh()
649 srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in seg6_pop_srh()
660 if (likely(nhlen <= srhoff)) in seg6_pop_srh()
662 else if (nhlen >= srhoff + srhlen) in seg6_pop_srh()
680 skb_pull_rcsum(skb, srhoff + srhlen); in seg6_pop_srh()
682 srhoff); in seg6_pop_srh()
[all …]
/linux/include/net/
H A Dseg6.h86 srh = (struct ipv6_sr_hdr *)(skb->data + opt->srhoff); in seg6_get_daddr()
/linux/net/core/
H A Dfilter.c6677 int srhoff = 0; in BPF_CALL_4() local
6695 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) in BPF_CALL_4()
6697 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in BPF_CALL_4()
6717 int srhoff = 0; in bpf_update_srh_state() local
6719 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) { in bpf_update_srh_state()
6722 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in bpf_update_srh_state()
6810 int srhoff = 0; in BPF_CALL_3() local
6845 if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0) in BPF_CALL_3()
6847 srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff); in BPF_CALL_3()