Symbol: tlv
libexec/spamd/sync.c
242
struct spam_synctlv_hdr *tlv;
libexec/spamd/sync.c
291
tlv = (struct spam_synctlv_hdr *)p;
libexec/spamd/sync.c
294
len < ntohs(tlv->st_length))
libexec/spamd/sync.c
297
switch (ntohs(tlv->st_type)) {
libexec/spamd/sync.c
299
sg = (struct spam_synctlv_grey *)tlv;
libexec/spamd/sync.c
304
ntohs(tlv->st_length))
libexec/spamd/sync.c
328
sd = (struct spam_synctlv_addr *)tlv;
libexec/spamd/sync.c
329
if (sizeof(*sd) != ntohs(tlv->st_length))
libexec/spamd/sync.c
349
sd = (struct spam_synctlv_addr *)tlv;
libexec/spamd/sync.c
350
if (sizeof(*sd) != ntohs(tlv->st_length))
libexec/spamd/sync.c
372
printf("invalid type: %d\n", ntohs(tlv->st_type));
libexec/spamd/sync.c
375
len -= ntohs(tlv->st_length);
libexec/spamd/sync.c
376
p = ((u_int8_t *)tlv) + ntohs(tlv->st_length);
sys/dev/ic/qwx.c
10395
struct hal_tlv_hdr *tlv;
sys/dev/ic/qwx.c
10406
tlv = (struct hal_tlv_hdr *)desc;
sys/dev/ic/qwx.c
10407
tlv->tl = FIELD_PREP(HAL_TLV_HDR_TAG, HAL_TCL_DATA_CMD) |
sys/dev/ic/qwx.c
10519
struct hal_tlv_hdr *tlv;
sys/dev/ic/qwx.c
10532
tlv = (struct hal_tlv_hdr *)entry;
sys/dev/ic/qwx.c
10533
desc = (struct hal_reo_get_queue_stats *)tlv->value;
sys/dev/ic/qwx.c
10541
qwx_hal_reo_cmd_queue_stats(struct hal_tlv_hdr *tlv, struct ath11k_hal_reo_cmd *cmd)
sys/dev/ic/qwx.c
10545
tlv->tl = FIELD_PREP(HAL_TLV_HDR_TAG, HAL_REO_GET_QUEUE_STATS) |
sys/dev/ic/qwx.c
10548
desc = (struct hal_reo_get_queue_stats *)tlv->value;
sys/dev/ic/qwx.c
10564
qwx_hal_reo_cmd_flush_cache(struct ath11k_hal *hal, struct hal_tlv_hdr *tlv,
sys/dev/ic/qwx.c
10577
tlv->tl = FIELD_PREP(HAL_TLV_HDR_TAG, HAL_REO_FLUSH_CACHE) |
sys/dev/ic/qwx.c
10580
desc = (struct hal_reo_flush_cache *)tlv->value;
sys/dev/ic/qwx.c
10610
qwx_hal_reo_cmd_update_rx_queue(struct hal_tlv_hdr *tlv,
sys/dev/ic/qwx.c
10615
tlv->tl = FIELD_PREP(HAL_TLV_HDR_TAG, HAL_REO_UPDATE_RX_REO_QUEUE) |
sys/dev/ic/qwx.c
10618
desc = (struct hal_reo_update_rx_queue *)tlv->value;
sys/dev/ic/qwx.c
11519
const struct wmi_tlv *tlv;
sys/dev/ic/qwx.c
11524
if (len < sizeof(*tlv)) {
sys/dev/ic/qwx.c
11527
ptr - begin, len, sizeof(*tlv));
sys/dev/ic/qwx.c
11531
tlv = ptr;
sys/dev/ic/qwx.c
11532
tlv_tag = FIELD_GET(WMI_TLV_TAG, tlv->header);
sys/dev/ic/qwx.c
11533
tlv_len = FIELD_GET(WMI_TLV_LEN, tlv->header);
sys/dev/ic/qwx.c
11534
ptr += sizeof(*tlv);
sys/dev/ic/qwx.c
11535
len -= sizeof(*tlv);
sys/dev/ic/qwx.c
17798
struct hal_tlv_hdr *tlv;
sys/dev/ic/qwx.c
17839
tlv = mtod(rx_data->m, struct hal_tlv_hdr *);
sys/dev/ic/qwx.c
17840
if (FIELD_GET(HAL_TLV_HDR_TAG, tlv->tl) !=
sys/dev/ic/qwx.c
17859
ath11k_dp_rx_mon_update_status_buf_state(pmon, tlv);
sys/dev/ic/qwx.c
18119
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwx.c
18121
(struct hal_reo_get_queue_stats_status *)tlv->value;
sys/dev/ic/qwx.c
18185
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwx.c
18187
(struct hal_reo_flush_queue_status *)tlv->value;
sys/dev/ic/qwx.c
18202
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwx.c
18204
(struct hal_reo_flush_cache_status *)tlv->value;
sys/dev/ic/qwx.c
18240
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwx.c
18242
(struct hal_reo_unblock_cache_status *)tlv->value;
sys/dev/ic/qwx.c
18264
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwx.c
18266
(struct hal_reo_flush_timeout_list_status *)tlv->value;
sys/dev/ic/qwx.c
18288
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwx.c
18290
(struct hal_reo_desc_thresh_reached_status *)tlv->value;
sys/dev/ic/qwx.c
18318
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwx.c
18320
(struct hal_reo_status_hdr *)tlv->value;
sys/dev/ic/qwx.c
18818
struct wmi_tlv *tlv;
sys/dev/ic/qwx.c
18861
tlv = ptr;
sys/dev/ic/qwx.c
18862
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwx.c
19200
struct wmi_tlv *tlv;
sys/dev/ic/qwx.c
19283
tlv = ptr;
sys/dev/ic/qwx.c
19284
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_UINT32) |
sys/dev/ic/qwx.c
19295
tlv = ptr;
sys/dev/ic/qwx.c
19296
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_FIXED_STRUCT) |
sys/dev/ic/qwx.c
19313
tlv = ptr;
sys/dev/ic/qwx.c
19314
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_FIXED_STRUCT) |
sys/dev/ic/qwx.c
19331
tlv = ptr;
sys/dev/ic/qwx.c
19332
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_BYTE) |
sys/dev/ic/qwx.c
19343
tlv = ptr;
sys/dev/ic/qwx.c
19344
tlv->header = FIELD_PREP(WMI_TLV_TAG,
sys/dev/ic/qwx.c
19359
tlv = ptr;
sys/dev/ic/qwx.c
19360
tlv->header = FIELD_PREP(WMI_TLV_TAG,
sys/dev/ic/qwx.c
19525
struct wmi_tlv *tlv;
sys/dev/ic/qwx.c
19554
tlv = (struct wmi_tlv *)(mtod(m, uint8_t *) +
sys/dev/ic/qwx.c
19557
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_BYTE) |
sys/dev/ic/qwx.c
19560
memcpy(tlv->value, (uint8_t *)arg->key_data,
sys/dev/ic/qwx.c
19670
struct wmi_tlv *tlv;
sys/dev/ic/qwx.c
19732
tlv = ptr;
sys/dev/ic/qwx.c
19733
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_BYTE) |
sys/dev/ic/qwx.c
19745
tlv = ptr;
sys/dev/ic/qwx.c
19746
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_BYTE) |
sys/dev/ic/qwx.c
19782
tlv = ptr;
sys/dev/ic/qwx.c
19783
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwx.c
19909
struct wmi_tlv *tlv;
sys/dev/ic/qwx.c
19965
tlv = ptr;
sys/dev/ic/qwx.c
19966
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwx.c
19982
tlv = ptr;
sys/dev/ic/qwx.c
19983
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwx.c
20215
struct wmi_tlv *tlv;
sys/dev/ic/qwx.c
20250
tlv = ptr;
sys/dev/ic/qwx.c
20251
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwx.c
20512
struct wmi_tlv *tlv;
sys/dev/ic/qwx.c
20568
tlv = ptr;
sys/dev/ic/qwx.c
20569
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwx.c
20576
ptr += sizeof(*tlv);
sys/dev/ic/qwz.c
15791
struct hal_tlv_hdr *tlv;
sys/dev/ic/qwz.c
15832
tlv = mtod(rx_data->m, struct hal_tlv_hdr *);
sys/dev/ic/qwz.c
15833
if (FIELD_GET(HAL_TLV_HDR_TAG, tlv->tl) !=
sys/dev/ic/qwz.c
15852
ath12k_dp_rx_mon_update_status_buf_state(pmon, tlv);
sys/dev/ic/qwz.c
16139
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwz.c
16141
(struct hal_reo_get_queue_stats_status *)tlv->value;
sys/dev/ic/qwz.c
16205
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwz.c
16207
(struct hal_reo_flush_queue_status *)tlv->value;
sys/dev/ic/qwz.c
16222
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwz.c
16224
(struct hal_reo_flush_cache_status *)tlv->value;
sys/dev/ic/qwz.c
16260
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwz.c
16262
(struct hal_reo_unblock_cache_status *)tlv->value;
sys/dev/ic/qwz.c
16284
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwz.c
16286
(struct hal_reo_flush_timeout_list_status *)tlv->value;
sys/dev/ic/qwz.c
16308
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwz.c
16310
(struct hal_reo_desc_thresh_reached_status *)tlv->value;
sys/dev/ic/qwz.c
16338
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwz.c
16340
(struct hal_reo_status_hdr *)tlv->value;
sys/dev/ic/qwz.c
16760
struct wmi_tlv *tlv;
sys/dev/ic/qwz.c
16803
tlv = ptr;
sys/dev/ic/qwz.c
16804
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwz.c
17004
struct wmi_tlv *tlv;
sys/dev/ic/qwz.c
17091
tlv = ptr;
sys/dev/ic/qwz.c
17092
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_UINT32) |
sys/dev/ic/qwz.c
17103
tlv = ptr;
sys/dev/ic/qwz.c
17104
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_FIXED_STRUCT) |
sys/dev/ic/qwz.c
17121
tlv = ptr;
sys/dev/ic/qwz.c
17122
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_FIXED_STRUCT) |
sys/dev/ic/qwz.c
17139
tlv = ptr;
sys/dev/ic/qwz.c
17140
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_BYTE) |
sys/dev/ic/qwz.c
17151
tlv = ptr;
sys/dev/ic/qwz.c
17152
tlv->header = FIELD_PREP(WMI_TLV_TAG,
sys/dev/ic/qwz.c
17167
tlv = ptr;
sys/dev/ic/qwz.c
17168
tlv->header = FIELD_PREP(WMI_TLV_TAG,
sys/dev/ic/qwz.c
17259
struct wmi_tlv *tlv;
sys/dev/ic/qwz.c
17288
tlv = ptr;
sys/dev/ic/qwz.c
17289
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwz.c
17357
struct wmi_tlv *tlv;
sys/dev/ic/qwz.c
17386
tlv = (struct wmi_tlv *)(mtod(m, uint8_t *) +
sys/dev/ic/qwz.c
17389
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_BYTE) |
sys/dev/ic/qwz.c
17392
memcpy(tlv->value, (uint8_t *)arg->key_data,
sys/dev/ic/qwz.c
17502
struct wmi_tlv *tlv;
sys/dev/ic/qwz.c
17575
tlv = ptr;
sys/dev/ic/qwz.c
17576
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_BYTE) |
sys/dev/ic/qwz.c
17588
tlv = ptr;
sys/dev/ic/qwz.c
17589
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_BYTE) |
sys/dev/ic/qwz.c
17625
tlv = ptr;
sys/dev/ic/qwz.c
17626
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwz.c
17649
tlv = ptr;
sys/dev/ic/qwz.c
17650
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwz.c
17654
tlv = ptr;
sys/dev/ic/qwz.c
17655
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwz.c
17659
tlv = ptr;
sys/dev/ic/qwz.c
17660
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwz.c
17760
struct wmi_tlv *tlv;
sys/dev/ic/qwz.c
17816
tlv = ptr;
sys/dev/ic/qwz.c
17817
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwz.c
17833
tlv = ptr;
sys/dev/ic/qwz.c
17834
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwz.c
18082
struct wmi_tlv *tlv;
sys/dev/ic/qwz.c
18117
tlv = ptr;
sys/dev/ic/qwz.c
18118
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwz.c
18379
struct wmi_tlv *tlv;
sys/dev/ic/qwz.c
18435
tlv = ptr;
sys/dev/ic/qwz.c
18436
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwz.c
18443
ptr += sizeof(*tlv);
sys/dev/ic/qwz.c
7846
struct hal_tlv_hdr *tlv;
sys/dev/ic/qwz.c
7859
tlv = (struct hal_tlv_hdr *)entry;
sys/dev/ic/qwz.c
7860
desc = (struct hal_reo_get_queue_stats *)tlv->value;
sys/dev/ic/qwz.c
7868
qwz_hal_reo_cmd_queue_stats(struct hal_tlv_hdr *tlv, struct ath12k_hal_reo_cmd *cmd)
sys/dev/ic/qwz.c
7872
tlv->tl = FIELD_PREP(HAL_TLV_HDR_TAG, HAL_REO_GET_QUEUE_STATS) |
sys/dev/ic/qwz.c
7875
desc = (struct hal_reo_get_queue_stats *)tlv->value;
sys/dev/ic/qwz.c
7891
qwz_hal_reo_cmd_flush_cache(struct ath12k_hal *hal, struct hal_tlv_hdr *tlv,
sys/dev/ic/qwz.c
7904
tlv->tl = FIELD_PREP(HAL_TLV_HDR_TAG, HAL_REO_FLUSH_CACHE) |
sys/dev/ic/qwz.c
7907
desc = (struct hal_reo_flush_cache *)tlv->value;
sys/dev/ic/qwz.c
7937
qwz_hal_reo_cmd_update_rx_queue(struct hal_tlv_hdr *tlv,
sys/dev/ic/qwz.c
7942
tlv->tl = FIELD_PREP(HAL_TLV_HDR_TAG, HAL_REO_UPDATE_RX_REO_QUEUE) |
sys/dev/ic/qwz.c
7945
desc = (struct hal_reo_update_rx_queue *)tlv->value;
sys/dev/ic/qwz.c
9351
const struct wmi_tlv *tlv;
sys/dev/ic/qwz.c
9356
if (len < sizeof(*tlv)) {
sys/dev/ic/qwz.c
9359
ptr - begin, len, sizeof(*tlv));
sys/dev/ic/qwz.c
9363
tlv = ptr;
sys/dev/ic/qwz.c
9364
tlv_tag = FIELD_GET(WMI_TLV_TAG, tlv->header);
sys/dev/ic/qwz.c
9365
tlv_len = FIELD_GET(WMI_TLV_LEN, tlv->header);
sys/dev/ic/qwz.c
9366
ptr += sizeof(*tlv);
sys/dev/ic/qwz.c
9367
len -= sizeof(*tlv);
sys/dev/pci/if_ice.c
12514
uint16_t i, tlv, tlv_len, tlv_start, buf, offset;
sys/dev/pci/if_ice.c
12518
status = ice_get_pfa_module_tlv(hw, &tlv, &tlv_len,
sys/dev/pci/if_ice.c
12527
tlv_start = tlv + pi->lport * ICE_SR_PFA_LINK_OVERRIDE_WORDS +
sys/dev/pci/if_ice.c
12679
struct ice_link_default_override_tlv tlv;
sys/dev/pci/if_ice.c
12681
if (ice_get_link_default_override(&tlv, pi))
sys/dev/pci/if_ice.c
12684
if (!(tlv.options & ICE_LINK_OVERRIDE_STRICT_MODE) &&
sys/dev/pci/if_ice.c
12685
(tlv.options & ICE_LINK_OVERRIDE_EN))
sys/dev/pci/if_ice.c
12686
cfg->link_fec_opt = tlv.fec_options;
sys/dev/pci/if_ice.c
23569
ice_add_ieee_ets_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
sys/dev/pci/if_ice.c
23572
uint8_t *buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
23579
tlv->typelen = HTONS(typelen);
sys/dev/pci/if_ice.c
23583
tlv->ouisubtype = htonl(ouisubtype);
sys/dev/pci/if_ice.c
23610
ice_add_ieee_etsrec_tlv(struct ice_lldp_org_tlv *tlv,
sys/dev/pci/if_ice.c
23614
uint8_t *buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
23620
tlv->typelen = htons(typelen);
sys/dev/pci/if_ice.c
23624
tlv->ouisubtype = HTONL(ouisubtype);
sys/dev/pci/if_ice.c
23641
ice_add_ieee_pfc_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
sys/dev/pci/if_ice.c
23643
uint8_t *buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
23649
tlv->typelen = htons(typelen);
sys/dev/pci/if_ice.c
23653
tlv->ouisubtype = htonl(ouisubtype);
sys/dev/pci/if_ice.c
23679
ice_add_ieee_app_pri_tlv(struct ice_lldp_org_tlv *tlv,
sys/dev/pci/if_ice.c
23684
uint8_t *buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
23692
tlv->ouisubtype = HTONL(ouisubtype);
sys/dev/pci/if_ice.c
23717
len = sizeof(tlv->ouisubtype) + 1 + (i * 3);
sys/dev/pci/if_ice.c
23719
tlv->typelen = HTONS(typelen);
sys/dev/pci/if_ice.c
23728
ice_add_dscp_up_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
sys/dev/pci/if_ice.c
23730
uint8_t *buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
23737
tlv->typelen = htons(typelen);
sys/dev/pci/if_ice.c
23741
tlv->ouisubtype = htonl(ouisubtype);
sys/dev/pci/if_ice.c
23765
ice_add_dscp_enf_tlv(struct ice_lldp_org_tlv *tlv)
sys/dev/pci/if_ice.c
23767
uint8_t *buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
23773
tlv->typelen = htons(typelen);
sys/dev/pci/if_ice.c
23777
tlv->ouisubtype = htonl(ouisubtype);
sys/dev/pci/if_ice.c
23789
ice_add_dscp_tc_bw_tlv(struct ice_lldp_org_tlv *tlv,
sys/dev/pci/if_ice.c
23793
uint8_t *buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
23801
tlv->typelen = htons(typelen);
sys/dev/pci/if_ice.c
23805
tlv->ouisubtype = htonl(ouisubtype);
sys/dev/pci/if_ice.c
23838
ice_add_dscp_pfc_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
sys/dev/pci/if_ice.c
23840
uint8_t *buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
23846
tlv->typelen = htons(typelen);
sys/dev/pci/if_ice.c
23850
tlv->ouisubtype = HTONL(ouisubtype);
sys/dev/pci/if_ice.c
23865
ice_add_dcb_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg,
sys/dev/pci/if_ice.c
23871
ice_add_ieee_ets_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
23874
ice_add_ieee_etsrec_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
23877
ice_add_ieee_pfc_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
23880
ice_add_ieee_app_pri_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
23889
ice_add_dscp_up_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
23892
ice_add_dscp_enf_tlv(tlv);
sys/dev/pci/if_ice.c
23895
ice_add_dscp_tc_bw_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
23898
ice_add_dscp_pfc_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
23918
struct ice_lldp_org_tlv *tlv;
sys/dev/pci/if_ice.c
23921
tlv = (struct ice_lldp_org_tlv *)lldpmib;
sys/dev/pci/if_ice.c
23923
ice_add_dcb_tlv(tlv, dcbcfg, tlvid++);
sys/dev/pci/if_ice.c
23924
typelen = ntohs(tlv->typelen);
sys/dev/pci/if_ice.c
23934
tlv = (struct ice_lldp_org_tlv *)
sys/dev/pci/if_ice.c
23935
((char *)tlv + sizeof(tlv->typelen) + len);
sys/dev/pci/if_ice.c
27200
ice_parse_ieee_etscfg_tlv(struct ice_lldp_org_tlv *tlv,
sys/dev/pci/if_ice.c
27204
uint8_t *buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
27232
ice_parse_ieee_etsrec_tlv(struct ice_lldp_org_tlv *tlv,
sys/dev/pci/if_ice.c
27235
uint8_t *buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
27249
ice_parse_ieee_pfccfg_tlv(struct ice_lldp_org_tlv *tlv,
sys/dev/pci/if_ice.c
27252
uint8_t *buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
27276
ice_parse_ieee_app_tlv(struct ice_lldp_org_tlv *tlv,
sys/dev/pci/if_ice.c
27285
typelen = ntohs(tlv->typelen);
sys/dev/pci/if_ice.c
27287
buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
27292
len -= (sizeof(tlv->ouisubtype) + 1);
sys/dev/pci/if_ice.c
27333
ice_parse_ieee_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
sys/dev/pci/if_ice.c
27338
ouisubtype = ntohl(tlv->ouisubtype);
sys/dev/pci/if_ice.c
27343
ice_parse_ieee_etscfg_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
27346
ice_parse_ieee_etsrec_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
27349
ice_parse_ieee_pfccfg_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
27352
ice_parse_ieee_app_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
27367
ice_parse_cee_pgcfg_tlv(struct ice_cee_feat_tlv *tlv,
sys/dev/pci/if_ice.c
27371
uint8_t *buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
27377
if (tlv->en_will_err & ICE_CEE_FEAT_TLV_WILLING_M)
sys/dev/pci/if_ice.c
27426
ice_parse_cee_pfccfg_tlv(struct ice_cee_feat_tlv *tlv,
sys/dev/pci/if_ice.c
27429
uint8_t *buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
27431
if (tlv->en_will_err & ICE_CEE_FEAT_TLV_WILLING_M)
sys/dev/pci/if_ice.c
27451
ice_parse_cee_app_tlv(struct ice_cee_feat_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
sys/dev/pci/if_ice.c
27457
typelen = NTOHS(tlv->hdr.typelen);
sys/dev/pci/if_ice.c
27469
app = (struct ice_cee_app_prio *)(tlv->tlvinfo + offset);
sys/dev/pci/if_ice.c
27505
ice_parse_cee_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
sys/dev/pci/if_ice.c
27512
ouisubtype = ntohl(tlv->ouisubtype);
sys/dev/pci/if_ice.c
27519
typelen = ntohs(tlv->typelen);
sys/dev/pci/if_ice.c
27521
len = sizeof(tlv->typelen) + sizeof(ouisubtype) +
sys/dev/pci/if_ice.c
27527
sub_tlv = (struct ice_cee_feat_tlv *)((char *)tlv + len);
sys/dev/pci/if_ice.c
27564
ice_parse_org_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
sys/dev/pci/if_ice.c
27569
ouisubtype = ntohl(tlv->ouisubtype);
sys/dev/pci/if_ice.c
27573
ice_parse_ieee_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
27576
ice_parse_cee_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
27592
struct ice_lldp_org_tlv *tlv;
sys/dev/pci/if_ice.c
27604
tlv = (struct ice_lldp_org_tlv *)lldpmib;
sys/dev/pci/if_ice.c
27606
typelen = ntohs(tlv->typelen);
sys/dev/pci/if_ice.c
27617
ice_parse_org_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
27624
tlv = (struct ice_lldp_org_tlv *)
sys/dev/pci/if_ice.c
27625
((char *)tlv + sizeof(tlv->typelen) + len);
sys/dev/pci/if_ice.c
30252
struct ice_link_default_override_tlv tlv = { 0 };
sys/dev/pci/if_ice.c
30261
status = ice_get_link_default_override(&tlv, pi);
sys/dev/pci/if_ice.c
30270
ice_print_ldo_tlv(sc, &tlv);
sys/dev/pci/if_ice.c
30274
(!(tlv.options & ICE_LINK_OVERRIDE_STRICT_MODE)))
sys/dev/pci/if_ice.c
30291
(tlv.options & ICE_LINK_OVERRIDE_EN))
sys/dev/pci/if_ice.c
30297
sc->ldo_tlv = tlv;
sys/dev/pci/if_iwm.c
699
struct iwm_ucode_tlv tlv;
sys/dev/pci/if_iwm.c
748
while (len >= sizeof(tlv)) {
sys/dev/pci/if_iwm.c
752
memcpy(&tlv, data, sizeof(tlv));
sys/dev/pci/if_iwm.c
753
tlv_len = le32toh(tlv.length);
sys/dev/pci/if_iwm.c
754
tlv_type = le32toh(tlv.type);
sys/dev/pci/if_iwm.c
756
len -= sizeof(tlv);
sys/dev/pci/if_iwm.c
757
data += sizeof(tlv);
sys/dev/pci/if_iwn.c
6628
const struct iwn_fw_tlv *tlv;
sys/dev/pci/if_iwn.c
6660
while (ptr + sizeof (*tlv) <= end) {
sys/dev/pci/if_iwn.c
6661
tlv = (const struct iwn_fw_tlv *)ptr;
sys/dev/pci/if_iwn.c
6662
len = letoh32(tlv->len);
sys/dev/pci/if_iwn.c
6664
ptr += sizeof (*tlv);
sys/dev/pci/if_iwn.c
6671
if (tlv->alt != 0 && tlv->alt != htole16(alt))
sys/dev/pci/if_iwn.c
6674
switch (letoh16(tlv->type)) {
sys/dev/pci/if_iwn.c
6698
sc->sc_dev.dv_xname, letoh16(tlv->type),
sys/dev/pci/if_iwn.c
6707
sc->sc_dev.dv_xname, letoh16(tlv->type),
sys/dev/pci/if_iwn.c
6726
letoh16(tlv->type)));
sys/dev/pci/if_iwx.c
1204
struct iwx_ucode_tlv tlv;
sys/dev/pci/if_iwx.c
1254
while (len >= sizeof(tlv)) {
sys/dev/pci/if_iwx.c
1258
memcpy(&tlv, data, sizeof(tlv));
sys/dev/pci/if_iwx.c
1259
tlv_len = le32toh(tlv.length);
sys/dev/pci/if_iwx.c
1260
tlv_type = le32toh(tlv.type);
sys/dev/pci/if_iwx.c
1262
len -= sizeof(tlv);
sys/dev/pci/if_iwx.c
1263
data += sizeof(tlv);
sys/dev/pci/if_iwx.c
4180
const struct iwx_ucode_tlv *tlv;
sys/dev/pci/if_iwx.c
4191
while (len >= sizeof(*tlv)) {
sys/dev/pci/if_iwx.c
4194
len -= sizeof(*tlv);
sys/dev/pci/if_iwx.c
4195
tlv = (const void *)data;
sys/dev/pci/if_iwx.c
4197
tlv_len = le32toh(tlv->length);
sys/dev/pci/if_iwx.c
4198
tlv_type = le32toh(tlv->type);
sys/dev/pci/if_iwx.c
4207
data += sizeof(*tlv);
sys/dev/pci/if_iwx.c
4295
const struct iwx_ucode_tlv *tlv;
sys/dev/pci/if_iwx.c
4297
while (len >= sizeof(*tlv)) {
sys/dev/pci/if_iwx.c
4300
len -= sizeof(*tlv);
sys/dev/pci/if_iwx.c
4301
tlv = (const void *)data;
sys/dev/pci/if_iwx.c
4303
tlv_len = le32toh(tlv->length);
sys/dev/pci/if_iwx.c
4304
tlv_type = le32toh(tlv->type);
sys/dev/pci/if_iwx.c
4311
(const void *)(data + sizeof(*tlv));
sys/dev/pci/if_iwx.c
4313
data += sizeof(*tlv) + roundup(tlv_len, 4);
sys/dev/pci/if_iwx.c
4322
data += sizeof(*tlv) + roundup(tlv_len, 4);
sys/dev/pci/if_mwx.c
3869
} __packed *tlv;
sys/dev/pci/if_mwx.c
3895
if (m->m_len < sizeof(*tlv)) {
sys/dev/pci/if_mwx.c
3902
tlv = mtod(m, struct tlv_hdr *);
sys/dev/pci/if_mwx.c
3903
type = le32toh(tlv->type);
sys/dev/pci/if_mwx.c
3904
len = le32toh(tlv->len);
sys/dev/pci/if_mwx.c
3905
m_adj(m, sizeof(*tlv));
sys/dev/pci/if_mwx.c
3956
} __packed *tlv;
sys/dev/pci/if_mwx.c
3991
if (m->m_len < sizeof(*tlv)) {
sys/dev/pci/if_mwx.c
3998
tlv = mtod(m, struct tlv_hdr *);
sys/dev/pci/if_mwx.c
3999
tag = le16toh(tlv->tag);
sys/dev/pci/if_mwx.c
4000
len = le16toh(tlv->len);
sys/dev/pci/if_mwx.c
4002
if (len < sizeof(*tlv) || m->m_len < len) {
sys/dev/pci/if_mwx.c
4008
len -= sizeof(*tlv);
sys/dev/pci/if_mwx.c
4009
m_adj(m, sizeof(*tlv));
sys/dev/pci/if_mwx.c
4756
} __packed tlv;
sys/dev/pci/if_mwx.c
4762
.tlv = {
sys/dev/pci/if_mwx.c
4814
memcpy(dev_req.tlv.omac_addr, sc->sc_lladdr, ETHER_ADDR_LEN);
sys/dev/pci/if_mwx.c
5848
} tlv = {
sys/dev/pci/if_mwx.c
5855
memcpy(p, &tlv, sizeof(tlv));
sys/net/if_aggr.c
2853
aggr_lacp_tlv_set(struct lacp_tlv_hdr *tlv, uint8_t type, uint8_t len)
sys/net/if_aggr.c
2855
tlv->lacp_tlv_type = type;
sys/net/if_aggr.c
2856
tlv->lacp_tlv_length = sizeof(*tlv) + len;
usr.sbin/dhcpd/sync.c
241
struct dhcp_synctlv_hdr *tlv;
usr.sbin/dhcpd/sync.c
287
tlv = (struct dhcp_synctlv_hdr *)p;
usr.sbin/dhcpd/sync.c
290
len < ntohs(tlv->st_length))
usr.sbin/dhcpd/sync.c
293
switch (ntohs(tlv->st_type)) {
usr.sbin/dhcpd/sync.c
295
lv = (struct dhcp_synctlv_lease *)tlv;
usr.sbin/dhcpd/sync.c
296
if (sizeof(*lv) > ntohs(tlv->st_length))
usr.sbin/dhcpd/sync.c
339
printf("invalid type: %d\n", ntohs(tlv->st_type));
usr.sbin/dhcpd/sync.c
342
len -= ntohs(tlv->st_length);
usr.sbin/dhcpd/sync.c
343
p = ((u_int8_t *)tlv) + ntohs(tlv->st_length);
usr.sbin/eigrpd/eigrpe.h
153
struct tlv_parameter *tlv_decode_parameter(struct tlv *, char *);
usr.sbin/eigrpd/eigrpe.h
154
int tlv_decode_seq(int, struct tlv *, char *,
usr.sbin/eigrpd/eigrpe.h
156
struct tlv_sw_version *tlv_decode_sw_version(struct tlv *, char *);
usr.sbin/eigrpd/eigrpe.h
157
struct tlv_mcast_seq *tlv_decode_mcast_seq(struct tlv *, char *);
usr.sbin/eigrpd/eigrpe.h
158
int tlv_decode_route(int, struct tlv *, char *,
usr.sbin/eigrpd/packet.c
348
struct tlv tlv;
usr.sbin/eigrpd/packet.c
351
if (len < sizeof(tlv)) {
usr.sbin/eigrpd/packet.c
357
memcpy(&tlv, buf, sizeof(tlv));
usr.sbin/eigrpd/packet.c
358
if (ntohs(tlv.length) < sizeof(tlv) ||
usr.sbin/eigrpd/packet.c
359
ntohs(tlv.length) > len) {
usr.sbin/eigrpd/packet.c
365
tlv_type = ntohs(tlv.type);
usr.sbin/eigrpd/packet.c
368
if ((tp = tlv_decode_parameter(&tlv, buf)) == NULL)
usr.sbin/eigrpd/packet.c
372
if (tlv_decode_seq(af, &tlv, buf, &seq_addr_list) < 0)
usr.sbin/eigrpd/packet.c
376
if ((tv = tlv_decode_sw_version(&tlv, buf)) == NULL)
usr.sbin/eigrpd/packet.c
380
if ((tm = tlv_decode_mcast_seq(&tlv, buf)) == NULL)
usr.sbin/eigrpd/packet.c
395
if (tlv_decode_route(af, &tlv, buf, &ri) < 0)
usr.sbin/eigrpd/packet.c
415
buf += ntohs(tlv.length);
usr.sbin/eigrpd/packet.c
416
len -= ntohs(tlv.length);
usr.sbin/eigrpd/tlv.c
162
struct tlv tlv;
usr.sbin/eigrpd/tlv.c
172
tlv.type = TLV_PROTO_IPV4;
usr.sbin/eigrpd/tlv.c
175
tlv.type = TLV_PROTO_IPV6;
usr.sbin/eigrpd/tlv.c
183
tlv.type |= TLV_ROUTE_INTERNAL;
usr.sbin/eigrpd/tlv.c
186
tlv.type |= TLV_ROUTE_EXTERNAL;
usr.sbin/eigrpd/tlv.c
191
tlv.type = htons(tlv.type);
usr.sbin/eigrpd/tlv.c
193
off = ibuf_size(buf) + offsetof(struct tlv, length);
usr.sbin/eigrpd/tlv.c
194
if (ibuf_add(buf, &tlv, sizeof(tlv)))
usr.sbin/eigrpd/tlv.c
263
tlv_decode_parameter(struct tlv *tlv, char *buf)
usr.sbin/eigrpd/tlv.c
267
if (ntohs(tlv->length) != TLV_TYPE_PARAMETER_LEN) {
usr.sbin/eigrpd/tlv.c
276
tlv_decode_seq(int af, struct tlv *tlv, char *buf,
usr.sbin/eigrpd/tlv.c
283
len = ntohs(tlv->length);
usr.sbin/eigrpd/tlv.c
332
tlv_decode_sw_version(struct tlv *tlv, char *buf)
usr.sbin/eigrpd/tlv.c
336
if (ntohs(tlv->length) != TLV_TYPE_SW_VERSION_LEN) {
usr.sbin/eigrpd/tlv.c
345
tlv_decode_mcast_seq(struct tlv *tlv, char *buf)
usr.sbin/eigrpd/tlv.c
349
if (ntohs(tlv->length) != TLV_TYPE_MCAST_SEQ_LEN) {
usr.sbin/eigrpd/tlv.c
358
tlv_decode_route(int af, struct tlv *tlv, char *buf, struct rinfo *ri)
usr.sbin/eigrpd/tlv.c
376
switch (ntohs(tlv->type) & TLV_TYPE_MASK) {
usr.sbin/eigrpd/tlv.c
388
tlv_len = ntohs(tlv->length);
usr.sbin/eigrpd/tlv.c
55
struct tlv tlv;
usr.sbin/eigrpd/tlv.c
61
tlv.type = htons(TLV_TYPE_SEQ);
usr.sbin/eigrpd/tlv.c
62
off = ibuf_size(buf) + offsetof(struct tlv, length);
usr.sbin/eigrpd/tlv.c
63
if (ibuf_add(buf, &tlv, sizeof(tlv))) {
usr.sbin/ldpd/address.c
283
struct tlv tlv;
usr.sbin/ldpd/address.c
287
if (len < sizeof(tlv)) {
usr.sbin/ldpd/address.c
292
memcpy(&tlv, buf, TLV_HDR_SIZE);
usr.sbin/ldpd/address.c
293
tlv_type = ntohs(tlv.type);
usr.sbin/ldpd/address.c
294
tlv_len = ntohs(tlv.length);
usr.sbin/ldpd/address.c
304
if (!(ntohs(tlv.type) & UNKNOWN_FLAG))
usr.sbin/ldpd/address.c
359
struct tlv tlv;
usr.sbin/ldpd/address.c
362
memset(&tlv, 0, sizeof(tlv));
usr.sbin/ldpd/address.c
363
tlv.type = htons(TLV_TYPE_MAC_LIST);
usr.sbin/ldpd/address.c
365
tlv.length = htons(ETHER_ADDR_LEN);
usr.sbin/ldpd/address.c
366
err = ibuf_add(buf, &tlv, sizeof(tlv));
usr.sbin/ldpd/hello.c
464
struct hello_prms_tlv tlv;
usr.sbin/ldpd/hello.c
466
if (len < sizeof(tlv))
usr.sbin/ldpd/hello.c
468
memcpy(&tlv, buf, sizeof(tlv));
usr.sbin/ldpd/hello.c
470
if (tlv.type != htons(TLV_TYPE_COMMONHELLO))
usr.sbin/ldpd/hello.c
472
if (ntohs(tlv.length) != sizeof(tlv) - TLV_HDR_SIZE)
usr.sbin/ldpd/hello.c
475
*holdtime = ntohs(tlv.holdtime);
usr.sbin/ldpd/hello.c
476
*flags = ntohs(tlv.flags);
usr.sbin/ldpd/hello.c
478
return (sizeof(tlv));
usr.sbin/ldpd/hello.c
485
struct tlv tlv;
usr.sbin/ldpd/hello.c
505
while (len >= sizeof(tlv)) {
usr.sbin/ldpd/hello.c
506
memcpy(&tlv, buf, TLV_HDR_SIZE);
usr.sbin/ldpd/hello.c
507
tlv_len = ntohs(tlv.length);
usr.sbin/ldpd/hello.c
514
switch (ntohs(tlv.type)) {
usr.sbin/ldpd/hello.c
565
if (!(ntohs(tlv.type) & UNKNOWN_FLAG))
usr.sbin/ldpd/init.c
103
struct tlv tlv;
usr.sbin/ldpd/init.c
107
if (len < sizeof(tlv)) {
usr.sbin/ldpd/init.c
112
memcpy(&tlv, buf, TLV_HDR_SIZE);
usr.sbin/ldpd/init.c
113
tlv_type = ntohs(tlv.type);
usr.sbin/ldpd/init.c
114
tlv_len = ntohs(tlv.length);
usr.sbin/ldpd/init.c
194
if (!(ntohs(tlv.type) & UNKNOWN_FLAG))
usr.sbin/ldpd/init.c
282
struct tlv tlv;
usr.sbin/ldpd/init.c
287
if (len < sizeof(tlv)) {
usr.sbin/ldpd/init.c
292
memcpy(&tlv, buf, TLV_HDR_SIZE);
usr.sbin/ldpd/init.c
293
tlv_type = ntohs(tlv.type);
usr.sbin/ldpd/init.c
294
tlv_len = ntohs(tlv.length);
usr.sbin/ldpd/init.c
365
if (!(ntohs(tlv.type) & UNKNOWN_FLAG))
usr.sbin/ldpd/labelmapping.c
129
struct tlv ft;
usr.sbin/ldpd/labelmapping.c
243
struct tlv tlv;
usr.sbin/ldpd/labelmapping.c
248
if (len < sizeof(tlv)) {
usr.sbin/ldpd/labelmapping.c
253
memcpy(&tlv, buf, TLV_HDR_SIZE);
usr.sbin/ldpd/labelmapping.c
254
tlv_type = ntohs(tlv.type);
usr.sbin/ldpd/labelmapping.c
255
tlv_len = ntohs(tlv.length);
usr.sbin/ldpd/labelmapping.c
347
if (!(ntohs(tlv.type) & UNKNOWN_FLAG))
usr.sbin/ldpd/labelmapping.c
568
struct tlv ft;
usr.sbin/ldpd/notification.c
142
struct tlv tlv;
usr.sbin/ldpd/notification.c
146
if (len < sizeof(tlv)) {
usr.sbin/ldpd/notification.c
151
memcpy(&tlv, buf, TLV_HDR_SIZE);
usr.sbin/ldpd/notification.c
152
tlv_type = ntohs(tlv.type);
usr.sbin/ldpd/notification.c
153
tlv_len = ntohs(tlv.length);
usr.sbin/ldpd/notification.c
190
if (!(ntohs(tlv.type) & UNKNOWN_FLAG))
usr.sbin/ldpd/notification.c
282
struct tlv rtlvs;
usr.sbin/ldpd/notification.c
283
struct tlv tlv;
usr.sbin/ldpd/notification.c
288
tlv.type = htons(type);
usr.sbin/ldpd/notification.c
289
tlv.length = htons(length);
usr.sbin/ldpd/notification.c
292
err |= ibuf_add(buf, &tlv, sizeof(tlv));
usr.sbin/lldp/lldp.c
1073
const struct lldp_tlv *tlv = &lldp_org_tlvs[i];
usr.sbin/lldp/lldp.c
1074
if (tlv->type == type)
usr.sbin/lldp/lldp.c
1075
return (tlv);
usr.sbin/lldp/lldp.c
1086
const struct lldp_tlv *tlv;
usr.sbin/lldp/lldp.c
1096
tlv = lldp_org_tlv_lookup(type);
usr.sbin/lldp/lldp.c
1097
if (tlv == NULL) {
usr.sbin/lldp/lldp.c
1101
fprintf(scratch, "%s: ", tlv->name);
usr.sbin/lldp/lldp.c
1102
toscratch = tlv->toscratch;
usr.sbin/lldp/lldp.c
343
struct tlv tlv;
usr.sbin/lldp/lldp.c
355
tlv_first(&tlv, pdu, len);
usr.sbin/lldp/lldp.c
359
ltlv = lldp_tlv_lookup(tlv.tlv_type);
usr.sbin/lldp/lldp.c
365
sl->sl_base = tlv.tlv_payload;
usr.sbin/lldp/lldp.c
366
sl->sl_len = tlv.tlv_len;
usr.sbin/lldp/lldp.c
367
} while (tlv_next(&tlv, pdu, len));
usr.sbin/lldp/lldp.c
411
struct tlv tlv;
usr.sbin/lldp/lldp.c
439
tlv_first(&tlv, pdu, len);
usr.sbin/lldp/lldp.c
444
ltlv = lldp_tlv_lookup(tlv.tlv_type);
usr.sbin/lldp/lldp.c
446
printf("tlv type %u: ", tlv.tlv_type);
usr.sbin/lldp/lldp.c
454
toscratch(tlv.tlv_payload, tlv.tlv_len, 1);
usr.sbin/lldp/lldp.c
458
} while (tlv_next(&tlv, pdu, len));
usr.sbin/lldpd/lldpd.c
592
struct tlv tlv;
usr.sbin/lldpd/lldpd.c
629
ok = tlv_first(&tlv, buf, len);
usr.sbin/lldpd/lldpd.c
635
if (tlv.tlv_type != LLDP_TLV_CHASSIS_ID) {
usr.sbin/lldpd/lldpd.c
640
if (tlv.tlv_len < 2 || tlv.tlv_len > 256) {
usr.sbin/lldpd/lldpd.c
644
tlv.tlv_len);
usr.sbin/lldpd/lldpd.c
648
ok = tlv_next(&tlv, buf, len);
usr.sbin/lldpd/lldpd.c
654
if (tlv.tlv_type != LLDP_TLV_PORT_ID) {
usr.sbin/lldpd/lldpd.c
659
if (tlv.tlv_len < 2 || tlv.tlv_len > 256) {
usr.sbin/lldpd/lldpd.c
663
tlv.tlv_len);
usr.sbin/lldpd/lldpd.c
667
ok = tlv_next(&tlv, buf, rv);
usr.sbin/lldpd/lldpd.c
673
if (tlv.tlv_type != LLDP_TLV_TTL) {
usr.sbin/lldpd/lldpd.c
678
if (tlv.tlv_len < 2) {
usr.sbin/lldpd/lldpd.c
682
tlv.tlv_len);
usr.sbin/lldpd/lldpd.c
686
ttl = pdu_u16(tlv.tlv_payload);
usr.sbin/lldpd/lldpd.c
694
idlen = tlv.tlv_offset;
usr.sbin/lldpd/lldpd.c
700
ok = tlv_next(&tlv, buf, rv);
usr.sbin/lldpd/lldpd.c
708
switch (tlv.tlv_type) {
usr.sbin/lldpd/lldpd.c
720
if ((1 << tlv.tlv_type) & tlvs) {
usr.sbin/lldpd/lldpd.c
721
lwarnx("TLV type %u repeated", tlv.tlv_type);
usr.sbin/lldpd/lldpd.c
724
tlvs |= (1 << tlv.tlv_type);
usr.sbin/lldpd/pdu.c
49
tlv_read(struct tlv *tlv, const uint8_t *buf, size_t len, unsigned int offset)
usr.sbin/lldpd/pdu.c
73
tlv->tlv_payload = buf + 2;
usr.sbin/lldpd/pdu.c
74
tlv->tlv_type = hdr >> 9;
usr.sbin/lldpd/pdu.c
75
tlv->tlv_len = plen;
usr.sbin/lldpd/pdu.c
76
tlv->tlv_offset = offset;
usr.sbin/lldpd/pdu.c
82
tlv_first(struct tlv *tlv, const void *pdu, size_t len)
usr.sbin/lldpd/pdu.c
84
return (tlv_read(tlv, pdu, len, 0));
usr.sbin/lldpd/pdu.c
88
tlv_next(struct tlv *tlv, const void *pdu, size_t len)
usr.sbin/lldpd/pdu.c
90
unsigned int offset = tlv->tlv_offset + 2 + tlv->tlv_len;
usr.sbin/lldpd/pdu.c
92
return (tlv_read(tlv, pdu, len, offset));
usr.sbin/lldpd/pdu.h
31
int tlv_first(struct tlv *, const void *, size_t);
usr.sbin/lldpd/pdu.h
32
int tlv_next(struct tlv *, const void *, size_t);
usr.sbin/npppd/pppoe/pppoe_session.c
241
struct pppoe_tlv tlv;
usr.sbin/npppd/pppoe/pppoe_session.c
263
tlv.type = htons(PPPOE_TAG_END_OF_LIST);
usr.sbin/npppd/pppoe/pppoe_session.c
264
tlv.length = 0;
usr.sbin/npppd/pppoe/pppoe_session.c
265
bytebuffer_put(buf, &tlv, sizeof(tlv));
usr.sbin/npppd/pppoe/pppoe_session.c
266
tlv.type = htons(PPPOE_TAG_END_OF_LIST);
usr.sbin/npppd/pppoe/pppoe_session.c
267
tlv.length = 0;
usr.sbin/npppd/pppoe/pppoe_session.c
268
bytebuffer_put(buf, &tlv, sizeof(tlv));
usr.sbin/npppd/pppoe/pppoe_session.c
293
struct pppoe_tlv tlv;
usr.sbin/npppd/pppoe/pppoe_session.c
317
tlv.type = htons(PPPOE_TAG_SERVICE_NAME);
usr.sbin/npppd/pppoe/pppoe_session.c
318
tlv.length = htons(service_name->length);
usr.sbin/npppd/pppoe/pppoe_session.c
319
bytebuffer_put(buf, &tlv, sizeof(tlv));
usr.sbin/npppd/pppoe/pppoe_session.c
333
tlv.type = htons(PPPOE_TAG_HOST_UNIQ);
usr.sbin/npppd/pppoe/pppoe_session.c
334
tlv.length = htons(hostuniq->length);
usr.sbin/npppd/pppoe/pppoe_session.c
335
bytebuffer_put(buf, &tlv, sizeof(tlv));
usr.sbin/npppd/pppoe/pppoe_session.c
338
tlv.type = htons(PPPOE_TAG_END_OF_LIST);
usr.sbin/npppd/pppoe/pppoe_session.c
339
tlv.length = 0;
usr.sbin/npppd/pppoe/pppoe_session.c
340
bytebuffer_put(buf, &tlv, sizeof(tlv));
usr.sbin/npppd/pppoe/pppoe_session.c
364
struct pppoe_tlv *tlv, *hostuniq, *service_name, *ac_cookie;
usr.sbin/npppd/pppoe/pppoe_session.c
370
tlv = slist_itr_next(tag_list);
usr.sbin/npppd/pppoe/pppoe_session.c
371
if (tlv->type == PPPOE_TAG_HOST_UNIQ)
usr.sbin/npppd/pppoe/pppoe_session.c
372
hostuniq = tlv;
usr.sbin/npppd/pppoe/pppoe_session.c
373
if (tlv->type == PPPOE_TAG_SERVICE_NAME)
usr.sbin/npppd/pppoe/pppoe_session.c
374
service_name = tlv;
usr.sbin/npppd/pppoe/pppoe_session.c
375
if (tlv->type == PPPOE_TAG_AC_COOKIE)
usr.sbin/npppd/pppoe/pppoe_session.c
376
ac_cookie = tlv;
usr.sbin/npppd/pppoe/pppoed.c
1079
pppoed_tlv_value_string(struct pppoe_tlv *tlv)
usr.sbin/npppd/pppoe/pppoed.c
1086
for (i = 0; i < tlv->length; i++) {
usr.sbin/npppd/pppoe/pppoed.c
1087
snprintf(buf, sizeof(buf), "%02x", tlv->value[i]);
usr.sbin/npppd/pppoe/pppoed.c
630
struct pppoe_tlv *tlv;
usr.sbin/npppd/pppoe/pppoed.c
703
tlv = (struct pppoe_tlv *)p_tlvspace;
usr.sbin/npppd/pppoe/pppoed.c
704
GETSHORT(tlv->type, pkt);
usr.sbin/npppd/pppoe/pppoed.c
705
GETSHORT(tlv->length, pkt);
usr.sbin/npppd/pppoe/pppoed.c
708
if (tlv->length > lpkt) {
usr.sbin/npppd/pppoe/pppoed.c
712
if (tlvspace_remaining() < tlv->length) {
usr.sbin/npppd/pppoe/pppoed.c
716
if (tlv->length > 0) {
usr.sbin/npppd/pppoe/pppoed.c
717
memcpy(tlv->value, pkt, tlv->length);
usr.sbin/npppd/pppoe/pppoed.c
718
pkt += tlv->length;
usr.sbin/npppd/pppoe/pppoed.c
719
lpkt -= tlv->length;
usr.sbin/npppd/pppoe/pppoed.c
720
p_tlvspace += tlv->length;
usr.sbin/npppd/pppoe/pppoed.c
728
pppoe_tag_string(tlv->type), tlv->type,
usr.sbin/npppd/pppoe/pppoed.c
729
pppoed_tlv_value_string(tlv));
usr.sbin/npppd/pppoe/pppoed.c
731
if (tlv->type == PPPOE_TAG_END_OF_LIST)
usr.sbin/npppd/pppoe/pppoed.c
733
if (slist_add(&tag_list, tlv) == NULL) {
usr.sbin/npppd/pppoe/pppoed.c
864
struct pppoe_tlv tlv, *tlv_hostuniq, *tlv0, *tlv_service_name;
usr.sbin/npppd/pppoe/pppoed.c
929
tlv.type = htons(PPPOE_TAG_SERVICE_NAME);
usr.sbin/npppd/pppoe/pppoed.c
931
tlv.length = htons(len);
usr.sbin/npppd/pppoe/pppoed.c
932
bytebuffer_put(buf, &tlv, sizeof(tlv));
usr.sbin/npppd/pppoe/pppoed.c
953
tlv.type = htons(PPPOE_TAG_AC_NAME);
usr.sbin/npppd/pppoe/pppoed.c
955
tlv.length = htons(len);
usr.sbin/npppd/pppoe/pppoed.c
956
bytebuffer_put(buf, &tlv, sizeof(tlv));
usr.sbin/npppd/pppoe/pppoed.c
973
tlv.type = htons(PPPOE_TAG_AC_COOKIE);
usr.sbin/npppd/pppoe/pppoed.c
974
tlv.length = ntohs(sizeof(uint32_t));
usr.sbin/npppd/pppoe/pppoed.c
975
bytebuffer_put(buf, &tlv, sizeof(tlv));
usr.sbin/npppd/pppoe/pppoed.c
984
tlv.type = htons(PPPOE_TAG_HOST_UNIQ);
usr.sbin/npppd/pppoe/pppoed.c
985
tlv.length = ntohs(tlv_hostuniq->length);
usr.sbin/npppd/pppoe/pppoed.c
986
bytebuffer_put(buf, &tlv, sizeof(tlv));
usr.sbin/npppd/pppoe/pppoed.c
994
tlv.type = htons(PPPOE_TAG_END_OF_LIST);
usr.sbin/npppd/pppoe/pppoed.c
995
tlv.length = ntohs(0);
usr.sbin/npppd/pppoe/pppoed.c
996
bytebuffer_put(buf, &tlv, sizeof(tlv));
usr.sbin/tcpdump/print-lldp.c
298
u_int16_t tlv;
usr.sbin/tcpdump/print-lldp.c
305
TCHECK2(*ptr, sizeof(tlv));
usr.sbin/tcpdump/print-lldp.c
307
tlv = EXTRACT_16BITS(ptr);
usr.sbin/tcpdump/print-lldp.c
308
type = (tlv & 0xfe00) >> 9;
usr.sbin/tcpdump/print-lldp.c
309
vlen = tlv & 0x1ff;
usr.sbin/tcpdump/print-lldp.c
312
ptr += sizeof(tlv);