Searched refs:segments_left (Results 1 – 18 of 18) sorted by relevance
/Linux-v5.10/net/ipv6/netfilter/ |
D | ip6t_srh.c | 44 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 …]
|
D | ip6t_rt.c | 70 pr_debug("SGS_LEFT %u %02X\n", rh->segments_left, rh->segments_left); in rt_mt6() 74 rh->segments_left, in rt_mt6() 93 rh->segments_left, in rt_mt6()
|
/Linux-v5.10/net/ipv6/ |
D | rpl_iptunnel.c | 48 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()
|
D | exthdrs.c | 335 addr = hdr->segments + hdr->segments_left; in seg6_update_csum() 337 hdr->segments_left++; in seg6_update_csum() 340 hdr->segments_left--; in seg6_update_csum() 383 if (hdr->segments_left == 0) { in ipv6_srh_rcv() 415 if (hdr->segments_left >= (hdr->hdrlen >> 1)) { in ipv6_srh_rcv() 418 ((&hdr->segments_left) - in ipv6_srh_rcv() 434 hdr->segments_left--; in ipv6_srh_rcv() 435 addr = hdr->segments + hdr->segments_left; in ipv6_srh_rcv() 500 if (hdr->segments_left == 0) { in ipv6_rpl_srh_rcv() 548 if (hdr->segments_left > n + 1) { in ipv6_rpl_srh_rcv() [all …]
|
D | rpl.c | 48 outhdr->segments_left = inhdr->segments_left; in ipv6_rpl_srh_decompress() 114 outhdr->segments_left = inhdr->segments_left; in ipv6_rpl_srh_compress()
|
D | ah6.c | 216 int segments, segments_left; in ipv6_rearrange_rthdr() local 220 segments_left = rthdr->segments_left; in ipv6_rearrange_rthdr() 221 if (segments_left == 0) in ipv6_rearrange_rthdr() 223 rthdr->segments_left = 0; in ipv6_rearrange_rthdr() 237 addrs += segments - segments_left; in ipv6_rearrange_rthdr() 238 memmove(addrs + 1, addrs, (segments_left - 1) * sizeof(*addrs)); in ipv6_rearrange_rthdr()
|
D | seg6.c | 40 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()
|
D | seg6_local.c | 104 if (srh->segments_left == 0) in get_and_validate_srh() 121 if (srh && srh->segments_left > 0) in decap_and_validate() 149 srh->segments_left--; in advance_nextseg() 150 addr = srh->segments + srh->segments_left; in advance_nextseg()
|
D | exthdrs_core.c | 230 rh->segments_left == 0) in ipv6_find_hdr()
|
D | mip6.c | 373 rt2->rt_hdr.segments_left = 1; in mip6_rthdr_output()
|
D | datagram.c | 941 rthdr->segments_left != 1) { in ip6_datagram_send_ctl() 960 if ((rthdr->hdrlen >> 1) != rthdr->segments_left) { in ip6_datagram_send_ctl()
|
D | ipv6_sockglue.c | 364 if (rthdr->hdrlen != 2 || rthdr->segments_left != 1) in ipv6_set_opt_hdr()
|
/Linux-v5.10/include/uapi/linux/ |
D | rpl.h | 23 __u8 segments_left; member
|
D | seg6.h | 28 __u8 segments_left; member
|
D | ipv6.h | 53 __u8 segments_left; member
|
/Linux-v5.10/tools/include/uapi/linux/ |
D | seg6.h | 28 __u8 segments_left; member
|
/Linux-v5.10/tools/testing/selftests/bpf/progs/ |
D | test_lwt_seg6local.c | 39 unsigned char segments_left; member 298 srh->segments_left = 3; in __encap_srh()
|
D | test_seg6_loop.c | 39 unsigned char segments_left; member
|