Home
last modified time | relevance | path

Searched refs:tlv (Results 1 – 3 of 3) sorted by relevance

/tools/testing/selftests/bpf/progs/
Dtest_lwt_seg6local.c136 struct sr6_tlv_t tlv; in is_valid_tlv_boundary() local
144 err = bpf_skb_load_bytes(skb, cur_off, &tlv, sizeof(tlv)); in is_valid_tlv_boundary()
148 if (tlv.type == SR6_TLV_PADDING) { in is_valid_tlv_boundary()
149 *pad_size = tlv.len + sizeof(tlv); in is_valid_tlv_boundary()
158 } else if (tlv.type == SR6_TLV_HMAC) { in is_valid_tlv_boundary()
162 cur_off += sizeof(tlv) + tlv.len; in is_valid_tlv_boundary()
229 struct sr6_tlv_t tlv; in delete_tlv() local
238 err = bpf_skb_load_bytes(skb, tlv_off, &tlv, sizeof(tlv)); in delete_tlv()
242 err = bpf_lwt_seg6_adjust_srh(skb, tlv_off, -(sizeof(tlv) + tlv.len)); in delete_tlv()
246 pad_off -= sizeof(tlv) + tlv.len; in delete_tlv()
[all …]
Dtest_seg6_loop.c139 struct sr6_tlv_t tlv; in is_valid_tlv_boundary() local
147 err = bpf_skb_load_bytes(skb, cur_off, &tlv, sizeof(tlv)); in is_valid_tlv_boundary()
151 if (tlv.type == SR6_TLV_PADDING) { in is_valid_tlv_boundary()
152 *pad_size = tlv.len + sizeof(tlv); in is_valid_tlv_boundary()
161 } else if (tlv.type == SR6_TLV_HMAC) { in is_valid_tlv_boundary()
165 cur_off += sizeof(tlv) + tlv.len; in is_valid_tlv_boundary()
238 uint8_t tlv[20] = {2, 18, 0, 0, 0xfd, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, in __add_egr_x() local
242 (struct sr6_tlv_t *)&tlv, 20); in __add_egr_x()
/tools/include/uapi/sound/
Dasound.h965 unsigned int tlv[0]; /* first TLV */ member