Home
last modified time | relevance | path

Searched refs:segments_left (Results 1 – 19 of 19) sorted by relevance

/openbmc/linux/net/ipv6/netfilter/
H A Dip6t_srh.c44 if (srh->segments_left > srh->first_segment) in srh_mt6()
72 !(srh->segments_left == srhinfo->segs_left))) in srh_mt6()
77 !(srh->segments_left > srhinfo->segs_left))) in srh_mt6()
82 !(srh->segments_left < srhinfo->segs_left))) in srh_mt6()
138 if (srh->segments_left > srh->first_segment) in srh1_mt6()
164 !(srh->segments_left == srhinfo->segs_left))) in srh1_mt6()
168 !(srh->segments_left > srhinfo->segs_left))) in srh1_mt6()
172 !(srh->segments_left < srhinfo->segs_left))) in srh1_mt6()
204 if (srh->segments_left == srh->first_segment) in srh1_mt6()
207 ((srh->segments_left + 1) * sizeof(struct in6_addr)); in srh1_mt6()
[all …]
H A Dip6t_rt.c64 rh->segments_left, in rt_mt6()
/openbmc/linux/net/ipv6/
H A Drpl_iptunnel.c48 if (!srh->segments_left || in rpl_validate_srh()
49 (srh->segments_left * sizeof(struct in6_addr)) != seglen) in rpl_validate_srh()
56 srh->segments_left); in rpl_validate_srh()
60 if (ipv6_addr_type(&srh->rpl_segaddr[srh->segments_left - 1]) & in rpl_validate_srh()
139 buf = kcalloc(struct_size(srh, segments.addr, srh->segments_left), 2, GFP_ATOMIC); in rpl_do_srh_inline()
148 (srh->segments_left - 1) * 16); in rpl_do_srh_inline()
149 isrh->rpl_segaddr[srh->segments_left - 1] = oldhdr->daddr; in rpl_do_srh_inline()
152 isrh->segments_left - 1); in rpl_do_srh_inline()
H A Dexthdrs.c352 hdr->segments_left++; in seg6_update_csum()
355 hdr->segments_left--; in seg6_update_csum()
398 if (hdr->segments_left == 0) { in ipv6_srh_rcv()
430 ((&hdr->segments_left) - in ipv6_srh_rcv()
446 hdr->segments_left--; in ipv6_srh_rcv()
551 ((&hdr->segments_left) - in ipv6_rpl_srh_rcv()
556 hdr->segments_left--; in ipv6_rpl_srh_rcv()
557 i = n - hdr->segments_left; in ipv6_rpl_srh_rcv()
742 if (hdr->segments_left > n) { in ipv6_rthdr_rcv()
745 ((&hdr->segments_left) - in ipv6_rthdr_rcv()
[all …]
H A Drpl.c42 outhdr->segments_left = inhdr->segments_left; in ipv6_rpl_srh_decompress()
108 outhdr->segments_left = inhdr->segments_left; in ipv6_rpl_srh_compress()
H A Dah6.c213 int segments, segments_left; in ipv6_rearrange_rthdr() local
217 segments_left = rthdr->segments_left; in ipv6_rearrange_rthdr()
218 if (segments_left == 0) in ipv6_rearrange_rthdr()
220 rthdr->segments_left = 0; in ipv6_rearrange_rthdr()
234 addrs += segments - segments_left; in ipv6_rearrange_rthdr()
235 memmove(addrs + 1, addrs, (segments_left - 1) * sizeof(*addrs)); in ipv6_rearrange_rthdr()
H A Dseg6.c40 if (!reduced && srh->segments_left > srh->first_segment) { in seg6_validate_srh()
48 if (srh->segments_left > srh->first_segment + 1) in seg6_validate_srh()
H A Dexthdrs_core.c232 rh->segments_left == 0) in ipv6_find_hdr()
H A Dmip6.c322 rt2->rt_hdr.segments_left = 1; in mip6_rthdr_output()
H A Dseg6_local.c238 if (srh && srh->segments_left > 0) in decap_and_validate()
266 srh->segments_left--; in advance_nextseg()
267 addr = srh->segments + srh->segments_left; in advance_nextseg()
509 sgl = srh->segments_left; in seg6_get_srh_pktinfo()
H A Ddatagram.c948 rthdr->segments_left != 1) { in ip6_datagram_send_ctl()
967 if ((rthdr->hdrlen >> 1) != rthdr->segments_left) { in ip6_datagram_send_ctl()
H A Dipv6_sockglue.c366 if (rthdr->hdrlen != 2 || rthdr->segments_left != 1) in ipv6_set_opt_hdr()
/openbmc/linux/tools/include/uapi/linux/
H A Dseg6.h28 __u8 segments_left; member
/openbmc/linux/include/uapi/linux/
H A Drpl.h23 __u8 segments_left; member
H A Dseg6.h28 __u8 segments_left; member
H A Dipv6.h54 __u8 segments_left; member
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_lwt_seg6local.c39 unsigned char segments_left; member
298 srh->segments_left = 3; in __encap_srh()
H A Dtest_seg6_loop.c39 unsigned char segments_left; member
/openbmc/qemu/tools/ebpf/
H A Drss.bpf.c198 (ext_rt.segments_left == 1)) { in parse_ipv6_ext()