Home
last modified time | relevance | path

Searched refs:first_segment (Results 1 – 11 of 11) sorted by relevance

/linux/net/ipv6/netfilter/
H A Dip6t_srh.c44 if (srh->segments_left > srh->first_segment) in srh_mt6()
92 !(srh->first_segment == srhinfo->last_entry))) in srh_mt6()
97 !(srh->first_segment > srhinfo->last_entry))) in srh_mt6()
102 !(srh->first_segment < srhinfo->last_entry))) in srh_mt6()
138 if (srh->segments_left > srh->first_segment) in srh1_mt6()
182 !(srh->first_segment == srhinfo->last_entry))) in srh1_mt6()
186 !(srh->first_segment > srhinfo->last_entry))) in srh1_mt6()
190 !(srh->first_segment < srhinfo->last_entry))) in srh1_mt6()
204 if (srh->segments_left == srh->first_segment) in srh1_mt6()
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_lwt_seg6local.c42 unsigned char first_segment; member
131 sizeof(struct ip6_addr_t) * (srh->first_segment + 1); in is_valid_tlv_boundary()
264 ((srh->first_segment + 1) << 4); in has_egr_tlv()
301 srh->first_segment = 3; in __encap_srh()
381 err = delete_tlv(skb, srh, 8 + (srh->first_segment + 1) * 16); in __pop_egr()
H A Dtest_seg6_loop.c42 unsigned char first_segment; member
132 sizeof(struct ip6_addr_t) * (srh->first_segment + 1); in is_valid_tlv_boundary()
/linux/net/ipv6/
H A Dseg6_hmac.c88 if (srh->hdrlen < (srh->first_segment + 1) * 2 + 5) in seg6_get_tlv_hmac()
173 plen = 16 + 1 + 1 + 4 + (hdr->first_segment + 1) * 16; in seg6_hmac_compute()
183 * 2. first_segment value (8 bits) in seg6_hmac_compute()
197 /* first_segment value */ in seg6_hmac_compute()
198 *off++ = hdr->first_segment; in seg6_hmac_compute()
208 for (i = 0; i < hdr->first_segment + 1; i++) { in seg6_hmac_compute()
H A Dseg6.c38 if (!reduced && srh->segments_left > srh->first_segment) { in seg6_validate_srh()
43 if (srh->first_segment > max_last_entry) in seg6_validate_srh()
46 if (srh->segments_left > srh->first_segment + 1) in seg6_validate_srh()
50 tlv_offset = sizeof(*srh) + ((srh->first_segment + 1) << 4); in seg6_validate_srh()
H A Dseg6_iptunnel.c183 hdr->daddr = isrh->segments[isrh->first_segment]; in seg6_do_srh_encap()
206 __u8 first_seg = osrh->first_segment; in seg6_do_srh_encap_red()
297 --isrh->first_segment; in seg6_do_srh_encap_red()
354 hdr->daddr = isrh->segments[isrh->first_segment]; in seg6_do_srh_inline()
H A Dexthdrs.c1115 hops = sr_ihdr->first_segment + 1; in ipv6_push_rthdr4()
/linux/tools/include/uapi/linux/
H A Dseg6.h29 __u8 first_segment; /* Represents the last_entry field of SRH */ member
/linux/include/uapi/linux/
H A Dseg6.h29 __u8 first_segment; /* Represents the last_entry field of SRH */ member
/linux/fs/smb/server/
H A Dtransport_rdma.c192 bool first_segment; member
594 recvmsg->first_segment = true; in recv_done()
725 if (recvmsg->first_segment && size == 4) { in smb_direct_read()
730 recvmsg->first_segment = false; in smb_direct_read()
829 recvmsg->first_segment = false; in smb_direct_post_recv_credits()
/linux/net/core/
H A Dfilter.c6485 srh_tlvs = (void *)((char *)srh + ((srh->first_segment + 1) << 4)); in BPF_CALL_4()
6620 ((srh->first_segment + 1) << 4)); in BPF_CALL_3()