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
10349
struct hal_tlv_hdr *tlv;
sys/dev/ic/qwx.c
10360
tlv = (struct hal_tlv_hdr *)desc;
sys/dev/ic/qwx.c
10361
tlv->tl = FIELD_PREP(HAL_TLV_HDR_TAG, HAL_TCL_DATA_CMD) |
sys/dev/ic/qwx.c
10473
struct hal_tlv_hdr *tlv;
sys/dev/ic/qwx.c
10486
tlv = (struct hal_tlv_hdr *)entry;
sys/dev/ic/qwx.c
10487
desc = (struct hal_reo_get_queue_stats *)tlv->value;
sys/dev/ic/qwx.c
10495
qwx_hal_reo_cmd_queue_stats(struct hal_tlv_hdr *tlv, struct ath11k_hal_reo_cmd *cmd)
sys/dev/ic/qwx.c
10499
tlv->tl = FIELD_PREP(HAL_TLV_HDR_TAG, HAL_REO_GET_QUEUE_STATS) |
sys/dev/ic/qwx.c
10502
desc = (struct hal_reo_get_queue_stats *)tlv->value;
sys/dev/ic/qwx.c
10518
qwx_hal_reo_cmd_flush_cache(struct ath11k_hal *hal, struct hal_tlv_hdr *tlv,
sys/dev/ic/qwx.c
10531
tlv->tl = FIELD_PREP(HAL_TLV_HDR_TAG, HAL_REO_FLUSH_CACHE) |
sys/dev/ic/qwx.c
10534
desc = (struct hal_reo_flush_cache *)tlv->value;
sys/dev/ic/qwx.c
10564
qwx_hal_reo_cmd_update_rx_queue(struct hal_tlv_hdr *tlv,
sys/dev/ic/qwx.c
10569
tlv->tl = FIELD_PREP(HAL_TLV_HDR_TAG, HAL_REO_UPDATE_RX_REO_QUEUE) |
sys/dev/ic/qwx.c
10572
desc = (struct hal_reo_update_rx_queue *)tlv->value;
sys/dev/ic/qwx.c
11478
const struct wmi_tlv *tlv;
sys/dev/ic/qwx.c
11483
if (len < sizeof(*tlv)) {
sys/dev/ic/qwx.c
11486
ptr - begin, len, sizeof(*tlv));
sys/dev/ic/qwx.c
11490
tlv = ptr;
sys/dev/ic/qwx.c
11491
tlv_tag = FIELD_GET(WMI_TLV_TAG, tlv->header);
sys/dev/ic/qwx.c
11492
tlv_len = FIELD_GET(WMI_TLV_LEN, tlv->header);
sys/dev/ic/qwx.c
11493
ptr += sizeof(*tlv);
sys/dev/ic/qwx.c
11494
len -= sizeof(*tlv);
sys/dev/ic/qwx.c
17648
struct hal_tlv_hdr *tlv;
sys/dev/ic/qwx.c
17689
tlv = mtod(rx_data->m, struct hal_tlv_hdr *);
sys/dev/ic/qwx.c
17690
if (FIELD_GET(HAL_TLV_HDR_TAG, tlv->tl) !=
sys/dev/ic/qwx.c
17709
ath11k_dp_rx_mon_update_status_buf_state(pmon, tlv);
sys/dev/ic/qwx.c
17969
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwx.c
17971
(struct hal_reo_get_queue_stats_status *)tlv->value;
sys/dev/ic/qwx.c
18035
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwx.c
18037
(struct hal_reo_flush_queue_status *)tlv->value;
sys/dev/ic/qwx.c
18052
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwx.c
18054
(struct hal_reo_flush_cache_status *)tlv->value;
sys/dev/ic/qwx.c
18090
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwx.c
18092
(struct hal_reo_unblock_cache_status *)tlv->value;
sys/dev/ic/qwx.c
18114
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwx.c
18116
(struct hal_reo_flush_timeout_list_status *)tlv->value;
sys/dev/ic/qwx.c
18138
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwx.c
18140
(struct hal_reo_desc_thresh_reached_status *)tlv->value;
sys/dev/ic/qwx.c
18168
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwx.c
18170
(struct hal_reo_status_hdr *)tlv->value;
sys/dev/ic/qwx.c
18668
struct wmi_tlv *tlv;
sys/dev/ic/qwx.c
18711
tlv = ptr;
sys/dev/ic/qwx.c
18712
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwx.c
18915
struct wmi_tlv *tlv;
sys/dev/ic/qwx.c
18998
tlv = ptr;
sys/dev/ic/qwx.c
18999
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_UINT32) |
sys/dev/ic/qwx.c
19010
tlv = ptr;
sys/dev/ic/qwx.c
19011
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_FIXED_STRUCT) |
sys/dev/ic/qwx.c
19028
tlv = ptr;
sys/dev/ic/qwx.c
19029
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_FIXED_STRUCT) |
sys/dev/ic/qwx.c
19046
tlv = ptr;
sys/dev/ic/qwx.c
19047
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_BYTE) |
sys/dev/ic/qwx.c
19058
tlv = ptr;
sys/dev/ic/qwx.c
19059
tlv->header = FIELD_PREP(WMI_TLV_TAG,
sys/dev/ic/qwx.c
19074
tlv = ptr;
sys/dev/ic/qwx.c
19075
tlv->header = FIELD_PREP(WMI_TLV_TAG,
sys/dev/ic/qwx.c
19240
struct wmi_tlv *tlv;
sys/dev/ic/qwx.c
19269
tlv = (struct wmi_tlv *)(mtod(m, uint8_t *) +
sys/dev/ic/qwx.c
19272
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_BYTE) |
sys/dev/ic/qwx.c
19275
memcpy(tlv->value, (uint8_t *)arg->key_data,
sys/dev/ic/qwx.c
19385
struct wmi_tlv *tlv;
sys/dev/ic/qwx.c
19447
tlv = ptr;
sys/dev/ic/qwx.c
19448
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_BYTE) |
sys/dev/ic/qwx.c
19460
tlv = ptr;
sys/dev/ic/qwx.c
19461
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_BYTE) |
sys/dev/ic/qwx.c
19497
tlv = ptr;
sys/dev/ic/qwx.c
19498
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwx.c
19624
struct wmi_tlv *tlv;
sys/dev/ic/qwx.c
19680
tlv = ptr;
sys/dev/ic/qwx.c
19681
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwx.c
19697
tlv = ptr;
sys/dev/ic/qwx.c
19698
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwx.c
19930
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
20227
struct wmi_tlv *tlv;
sys/dev/ic/qwx.c
20283
tlv = ptr;
sys/dev/ic/qwx.c
20284
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwx.c
20291
ptr += sizeof(*tlv);
sys/dev/ic/qwz.c
14970
struct hal_tlv_hdr *tlv;
sys/dev/ic/qwz.c
15011
tlv = mtod(rx_data->m, struct hal_tlv_hdr *);
sys/dev/ic/qwz.c
15012
if (FIELD_GET(HAL_TLV_HDR_TAG, tlv->tl) !=
sys/dev/ic/qwz.c
15031
ath12k_dp_rx_mon_update_status_buf_state(pmon, tlv);
sys/dev/ic/qwz.c
15317
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwz.c
15319
(struct hal_reo_get_queue_stats_status *)tlv->value;
sys/dev/ic/qwz.c
15383
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwz.c
15385
(struct hal_reo_flush_queue_status *)tlv->value;
sys/dev/ic/qwz.c
15400
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwz.c
15402
(struct hal_reo_flush_cache_status *)tlv->value;
sys/dev/ic/qwz.c
15438
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwz.c
15440
(struct hal_reo_unblock_cache_status *)tlv->value;
sys/dev/ic/qwz.c
15462
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwz.c
15464
(struct hal_reo_flush_timeout_list_status *)tlv->value;
sys/dev/ic/qwz.c
15486
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwz.c
15488
(struct hal_reo_desc_thresh_reached_status *)tlv->value;
sys/dev/ic/qwz.c
15516
struct hal_tlv_hdr *tlv = (struct hal_tlv_hdr *)reo_desc;
sys/dev/ic/qwz.c
15518
(struct hal_reo_status_hdr *)tlv->value;
sys/dev/ic/qwz.c
15939
struct wmi_tlv *tlv;
sys/dev/ic/qwz.c
15982
tlv = ptr;
sys/dev/ic/qwz.c
15983
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwz.c
16183
struct wmi_tlv *tlv;
sys/dev/ic/qwz.c
16270
tlv = ptr;
sys/dev/ic/qwz.c
16271
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_UINT32) |
sys/dev/ic/qwz.c
16282
tlv = ptr;
sys/dev/ic/qwz.c
16283
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_FIXED_STRUCT) |
sys/dev/ic/qwz.c
16300
tlv = ptr;
sys/dev/ic/qwz.c
16301
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_FIXED_STRUCT) |
sys/dev/ic/qwz.c
16318
tlv = ptr;
sys/dev/ic/qwz.c
16319
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_BYTE) |
sys/dev/ic/qwz.c
16330
tlv = ptr;
sys/dev/ic/qwz.c
16331
tlv->header = FIELD_PREP(WMI_TLV_TAG,
sys/dev/ic/qwz.c
16346
tlv = ptr;
sys/dev/ic/qwz.c
16347
tlv->header = FIELD_PREP(WMI_TLV_TAG,
sys/dev/ic/qwz.c
16512
struct wmi_tlv *tlv;
sys/dev/ic/qwz.c
16541
tlv = (struct wmi_tlv *)(mtod(m, uint8_t *) +
sys/dev/ic/qwz.c
16544
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_BYTE) |
sys/dev/ic/qwz.c
16547
memcpy(tlv->value, (uint8_t *)arg->key_data,
sys/dev/ic/qwz.c
16657
struct wmi_tlv *tlv;
sys/dev/ic/qwz.c
16719
tlv = ptr;
sys/dev/ic/qwz.c
16720
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_BYTE) |
sys/dev/ic/qwz.c
16732
tlv = ptr;
sys/dev/ic/qwz.c
16733
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_BYTE) |
sys/dev/ic/qwz.c
16769
tlv = ptr;
sys/dev/ic/qwz.c
16770
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwz.c
16896
struct wmi_tlv *tlv;
sys/dev/ic/qwz.c
16952
tlv = ptr;
sys/dev/ic/qwz.c
16953
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwz.c
16969
tlv = ptr;
sys/dev/ic/qwz.c
16970
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwz.c
17200
struct wmi_tlv *tlv;
sys/dev/ic/qwz.c
17235
tlv = ptr;
sys/dev/ic/qwz.c
17236
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwz.c
17497
struct wmi_tlv *tlv;
sys/dev/ic/qwz.c
17553
tlv = ptr;
sys/dev/ic/qwz.c
17554
tlv->header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ARRAY_STRUCT) |
sys/dev/ic/qwz.c
17561
ptr += sizeof(*tlv);
sys/dev/ic/qwz.c
7614
struct hal_tlv_hdr *tlv;
sys/dev/ic/qwz.c
7625
tlv = (struct hal_tlv_hdr *)desc;
sys/dev/ic/qwz.c
7626
tlv->tl = FIELD_PREP(HAL_TLV_HDR_TAG, HAL_TCL_DATA_CMD) |
sys/dev/ic/qwz.c
7720
struct hal_tlv_hdr *tlv;
sys/dev/ic/qwz.c
7733
tlv = (struct hal_tlv_hdr *)entry;
sys/dev/ic/qwz.c
7734
desc = (struct hal_reo_get_queue_stats *)tlv->value;
sys/dev/ic/qwz.c
7742
qwz_hal_reo_cmd_queue_stats(struct hal_tlv_hdr *tlv, struct ath12k_hal_reo_cmd *cmd)
sys/dev/ic/qwz.c
7746
tlv->tl = FIELD_PREP(HAL_TLV_HDR_TAG, HAL_REO_GET_QUEUE_STATS) |
sys/dev/ic/qwz.c
7749
desc = (struct hal_reo_get_queue_stats *)tlv->value;
sys/dev/ic/qwz.c
7765
qwz_hal_reo_cmd_flush_cache(struct ath12k_hal *hal, struct hal_tlv_hdr *tlv,
sys/dev/ic/qwz.c
7778
tlv->tl = FIELD_PREP(HAL_TLV_HDR_TAG, HAL_REO_FLUSH_CACHE) |
sys/dev/ic/qwz.c
7781
desc = (struct hal_reo_flush_cache *)tlv->value;
sys/dev/ic/qwz.c
7811
qwz_hal_reo_cmd_update_rx_queue(struct hal_tlv_hdr *tlv,
sys/dev/ic/qwz.c
7816
tlv->tl = FIELD_PREP(HAL_TLV_HDR_TAG, HAL_REO_UPDATE_RX_REO_QUEUE) |
sys/dev/ic/qwz.c
7819
desc = (struct hal_reo_update_rx_queue *)tlv->value;
sys/dev/ic/qwz.c
9175
const struct wmi_tlv *tlv;
sys/dev/ic/qwz.c
9180
if (len < sizeof(*tlv)) {
sys/dev/ic/qwz.c
9183
ptr - begin, len, sizeof(*tlv));
sys/dev/ic/qwz.c
9187
tlv = ptr;
sys/dev/ic/qwz.c
9188
tlv_tag = FIELD_GET(WMI_TLV_TAG, tlv->header);
sys/dev/ic/qwz.c
9189
tlv_len = FIELD_GET(WMI_TLV_LEN, tlv->header);
sys/dev/ic/qwz.c
9190
ptr += sizeof(*tlv);
sys/dev/ic/qwz.c
9191
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
23576
ice_add_ieee_ets_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
sys/dev/pci/if_ice.c
23579
uint8_t *buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
23586
tlv->typelen = HTONS(typelen);
sys/dev/pci/if_ice.c
23590
tlv->ouisubtype = htonl(ouisubtype);
sys/dev/pci/if_ice.c
23617
ice_add_ieee_etsrec_tlv(struct ice_lldp_org_tlv *tlv,
sys/dev/pci/if_ice.c
23621
uint8_t *buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
23627
tlv->typelen = htons(typelen);
sys/dev/pci/if_ice.c
23631
tlv->ouisubtype = HTONL(ouisubtype);
sys/dev/pci/if_ice.c
23648
ice_add_ieee_pfc_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
sys/dev/pci/if_ice.c
23650
uint8_t *buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
23656
tlv->typelen = htons(typelen);
sys/dev/pci/if_ice.c
23660
tlv->ouisubtype = htonl(ouisubtype);
sys/dev/pci/if_ice.c
23686
ice_add_ieee_app_pri_tlv(struct ice_lldp_org_tlv *tlv,
sys/dev/pci/if_ice.c
23691
uint8_t *buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
23699
tlv->ouisubtype = HTONL(ouisubtype);
sys/dev/pci/if_ice.c
23724
len = sizeof(tlv->ouisubtype) + 1 + (i * 3);
sys/dev/pci/if_ice.c
23726
tlv->typelen = HTONS(typelen);
sys/dev/pci/if_ice.c
23735
ice_add_dscp_up_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
sys/dev/pci/if_ice.c
23737
uint8_t *buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
23744
tlv->typelen = htons(typelen);
sys/dev/pci/if_ice.c
23748
tlv->ouisubtype = htonl(ouisubtype);
sys/dev/pci/if_ice.c
23772
ice_add_dscp_enf_tlv(struct ice_lldp_org_tlv *tlv)
sys/dev/pci/if_ice.c
23774
uint8_t *buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
23780
tlv->typelen = htons(typelen);
sys/dev/pci/if_ice.c
23784
tlv->ouisubtype = htonl(ouisubtype);
sys/dev/pci/if_ice.c
23796
ice_add_dscp_tc_bw_tlv(struct ice_lldp_org_tlv *tlv,
sys/dev/pci/if_ice.c
23800
uint8_t *buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
23808
tlv->typelen = htons(typelen);
sys/dev/pci/if_ice.c
23812
tlv->ouisubtype = htonl(ouisubtype);
sys/dev/pci/if_ice.c
23845
ice_add_dscp_pfc_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
sys/dev/pci/if_ice.c
23847
uint8_t *buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
23853
tlv->typelen = htons(typelen);
sys/dev/pci/if_ice.c
23857
tlv->ouisubtype = HTONL(ouisubtype);
sys/dev/pci/if_ice.c
23872
ice_add_dcb_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg,
sys/dev/pci/if_ice.c
23878
ice_add_ieee_ets_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
23881
ice_add_ieee_etsrec_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
23884
ice_add_ieee_pfc_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
23887
ice_add_ieee_app_pri_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
23896
ice_add_dscp_up_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
23899
ice_add_dscp_enf_tlv(tlv);
sys/dev/pci/if_ice.c
23902
ice_add_dscp_tc_bw_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
23905
ice_add_dscp_pfc_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
23925
struct ice_lldp_org_tlv *tlv;
sys/dev/pci/if_ice.c
23928
tlv = (struct ice_lldp_org_tlv *)lldpmib;
sys/dev/pci/if_ice.c
23930
ice_add_dcb_tlv(tlv, dcbcfg, tlvid++);
sys/dev/pci/if_ice.c
23931
typelen = ntohs(tlv->typelen);
sys/dev/pci/if_ice.c
23941
tlv = (struct ice_lldp_org_tlv *)
sys/dev/pci/if_ice.c
23942
((char *)tlv + sizeof(tlv->typelen) + len);
sys/dev/pci/if_ice.c
27207
ice_parse_ieee_etscfg_tlv(struct ice_lldp_org_tlv *tlv,
sys/dev/pci/if_ice.c
27211
uint8_t *buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
27239
ice_parse_ieee_etsrec_tlv(struct ice_lldp_org_tlv *tlv,
sys/dev/pci/if_ice.c
27242
uint8_t *buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
27256
ice_parse_ieee_pfccfg_tlv(struct ice_lldp_org_tlv *tlv,
sys/dev/pci/if_ice.c
27259
uint8_t *buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
27283
ice_parse_ieee_app_tlv(struct ice_lldp_org_tlv *tlv,
sys/dev/pci/if_ice.c
27292
typelen = ntohs(tlv->typelen);
sys/dev/pci/if_ice.c
27294
buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
27299
len -= (sizeof(tlv->ouisubtype) + 1);
sys/dev/pci/if_ice.c
27340
ice_parse_ieee_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
sys/dev/pci/if_ice.c
27345
ouisubtype = ntohl(tlv->ouisubtype);
sys/dev/pci/if_ice.c
27350
ice_parse_ieee_etscfg_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
27353
ice_parse_ieee_etsrec_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
27356
ice_parse_ieee_pfccfg_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
27359
ice_parse_ieee_app_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
27374
ice_parse_cee_pgcfg_tlv(struct ice_cee_feat_tlv *tlv,
sys/dev/pci/if_ice.c
27378
uint8_t *buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
27384
if (tlv->en_will_err & ICE_CEE_FEAT_TLV_WILLING_M)
sys/dev/pci/if_ice.c
27433
ice_parse_cee_pfccfg_tlv(struct ice_cee_feat_tlv *tlv,
sys/dev/pci/if_ice.c
27436
uint8_t *buf = tlv->tlvinfo;
sys/dev/pci/if_ice.c
27438
if (tlv->en_will_err & ICE_CEE_FEAT_TLV_WILLING_M)
sys/dev/pci/if_ice.c
27458
ice_parse_cee_app_tlv(struct ice_cee_feat_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
sys/dev/pci/if_ice.c
27464
typelen = NTOHS(tlv->hdr.typelen);
sys/dev/pci/if_ice.c
27476
app = (struct ice_cee_app_prio *)(tlv->tlvinfo + offset);
sys/dev/pci/if_ice.c
27512
ice_parse_cee_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
sys/dev/pci/if_ice.c
27519
ouisubtype = ntohl(tlv->ouisubtype);
sys/dev/pci/if_ice.c
27526
typelen = ntohs(tlv->typelen);
sys/dev/pci/if_ice.c
27528
len = sizeof(tlv->typelen) + sizeof(ouisubtype) +
sys/dev/pci/if_ice.c
27534
sub_tlv = (struct ice_cee_feat_tlv *)((char *)tlv + len);
sys/dev/pci/if_ice.c
27571
ice_parse_org_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
sys/dev/pci/if_ice.c
27576
ouisubtype = ntohl(tlv->ouisubtype);
sys/dev/pci/if_ice.c
27580
ice_parse_ieee_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
27583
ice_parse_cee_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
27599
struct ice_lldp_org_tlv *tlv;
sys/dev/pci/if_ice.c
27611
tlv = (struct ice_lldp_org_tlv *)lldpmib;
sys/dev/pci/if_ice.c
27613
typelen = ntohs(tlv->typelen);
sys/dev/pci/if_ice.c
27624
ice_parse_org_tlv(tlv, dcbcfg);
sys/dev/pci/if_ice.c
27631
tlv = (struct ice_lldp_org_tlv *)
sys/dev/pci/if_ice.c
27632
((char *)tlv + sizeof(tlv->typelen) + len);
sys/dev/pci/if_ice.c
30259
struct ice_link_default_override_tlv tlv = { 0 };
sys/dev/pci/if_ice.c
30268
status = ice_get_link_default_override(&tlv, pi);
sys/dev/pci/if_ice.c
30277
ice_print_ldo_tlv(sc, &tlv);
sys/dev/pci/if_ice.c
30281
(!(tlv.options & ICE_LINK_OVERRIDE_STRICT_MODE)))
sys/dev/pci/if_ice.c
30298
(tlv.options & ICE_LINK_OVERRIDE_EN))
sys/dev/pci/if_ice.c
30304
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
3200
} __packed *tlv;
sys/dev/pci/if_mwx.c
3239
if (m->m_len < sizeof(*tlv)) {
sys/dev/pci/if_mwx.c
3246
tlv = mtod(m, struct tlv_hdr *);
sys/dev/pci/if_mwx.c
3247
type = le32toh(tlv->type);
sys/dev/pci/if_mwx.c
3248
len = le32toh(tlv->len);
sys/dev/pci/if_mwx.c
3249
m_adj(m, sizeof(*tlv));
sys/dev/pci/if_mwx.c
3944
} __packed tlv;
sys/dev/pci/if_mwx.c
3950
.tlv = {
sys/dev/pci/if_mwx.c
4003
memcpy(dev_req.tlv.omac_addr, sc->sc_lladdr, ETHER_ADDR_LEN);
sys/dev/pci/if_mwx.c
4892
} tlv = {
sys/dev/pci/if_mwx.c
4904
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;
sys/net/trunklacp.c
1734
tlv_check(const void *p, size_t size, const struct tlvhdr *tlv,
sys/net/trunklacp.c
1738
if ((const char *)tlv - (const char *)p + sizeof(*tlv) > size)
sys/net/trunklacp.c
1741
if ((check_type && tlv->tlv_type != tmpl->tmpl_type) ||
sys/net/trunklacp.c
1742
tlv->tlv_length != tmpl->tmpl_length)
sys/net/trunklacp.c
1748
tlv = (const struct tlvhdr *)
sys/net/trunklacp.c
1749
((const char *)tlv + tlv->tlv_length);
sys/net/trunklacp.h
68
#define TLV_SET(tlv, type, length) \
sys/net/trunklacp.h
70
(tlv)->tlv_type = (type); \
sys/net/trunklacp.h
71
(tlv)->tlv_length = sizeof(*tlv) + (length); \
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) > len) {
usr.sbin/eigrpd/packet.c
364
tlv_type = ntohs(tlv.type);
usr.sbin/eigrpd/packet.c
367
if ((tp = tlv_decode_parameter(&tlv, buf)) == NULL)
usr.sbin/eigrpd/packet.c
371
if (tlv_decode_seq(af, &tlv, buf, &seq_addr_list) < 0)
usr.sbin/eigrpd/packet.c
375
if ((tv = tlv_decode_sw_version(&tlv, buf)) == NULL)
usr.sbin/eigrpd/packet.c
379
if ((tm = tlv_decode_mcast_seq(&tlv, buf)) == NULL)
usr.sbin/eigrpd/packet.c
394
if (tlv_decode_route(af, &tlv, buf, &ri) < 0)
usr.sbin/eigrpd/packet.c
414
buf += ntohs(tlv.length);
usr.sbin/eigrpd/packet.c
415
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);