Home
last modified time | relevance | path

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

/Linux-v5.4/net/ipv6/netfilter/
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-v5.4/tools/testing/selftests/bpf/progs/
Dtest_lwt_seg6local.c40 unsigned char first_segment; member
129 sizeof(struct ip6_addr_t) * (srh->first_segment + 1); in is_valid_tlv_boundary()
262 ((srh->first_segment + 1) << 4); in has_egr_tlv()
299 srh->first_segment = 3; in __encap_srh()
379 err = delete_tlv(skb, srh, 8 + (srh->first_segment + 1) * 16); in __pop_egr()
Dtest_seg6_loop.c40 unsigned char first_segment; member
130 sizeof(struct ip6_addr_t) * (srh->first_segment + 1); in is_valid_tlv_boundary()
/Linux-v5.4/net/ipv6/
Dseg6_hmac.c90 if (srh->hdrlen < (srh->first_segment + 1) * 2 + 5) in seg6_get_tlv_hmac()
175 plen = 16 + 1 + 1 + 4 + (hdr->first_segment + 1) * 16; in seg6_hmac_compute()
200 *off++ = hdr->first_segment; in seg6_hmac_compute()
210 for (i = 0; i < hdr->first_segment + 1; i++) { in seg6_hmac_compute()
Dseg6.c39 if (srh->segments_left > srh->first_segment) in seg6_validate_srh()
42 tlv_offset = sizeof(*srh) + ((srh->first_segment + 1) << 4); in seg6_validate_srh()
Dseg6_iptunnel.c155 hdr->daddr = isrh->segments[isrh->first_segment]; in seg6_do_srh_encap()
206 hdr->daddr = isrh->segments[isrh->first_segment]; in seg6_do_srh_inline()
Dexthdrs.c904 hops = sr_ihdr->first_segment + 1; in ipv6_push_rthdr4()
/Linux-v5.4/tools/include/uapi/linux/
Dseg6.h29 __u8 first_segment; /* Represents the last_entry field of SRH */ member
/Linux-v5.4/include/uapi/linux/
Dseg6.h29 __u8 first_segment; /* Represents the last_entry field of SRH */ member
/Linux-v5.4/fs/cifs/
Dsmbdirect.h261 bool first_segment; member
Dsmbdirect.c439 response->first_segment = false; in smbd_post_send_credits()
529 response->first_segment = true; in recv_done()
1896 if (response->first_segment && size == 4) { in smbd_recv_buf()
1901 response->first_segment = false; in smbd_recv_buf()
/Linux-v5.4/net/core/
Dfilter.c5026 srh_tlvs = (void *)((char *)srh + ((srh->first_segment + 1) << 4)); in BPF_CALL_4()
5159 ((srh->first_segment + 1) << 4)); in BPF_CALL_3()