Searched refs:tlv (Results 1 - 22 of 22) sorted by relevance

/netbsd-6-1-5-RELEASE/sys/net/agr/
H A Dieee8023_tlv.c38 tlv_check(const void *p, size_t size, const struct tlvhdr *tlv, argument
43 if ((const char *)tlv - (const char *)p + sizeof(*tlv) > size) {
46 if ((check_type && tlv->tlv_type != tmpl->tmpl_type) ||
47 tlv->tlv_length != tmpl->tmpl_length) {
53 tlv = (const struct tlvhdr *)
54 ((const char *)tlv + tlv->tlv_length);
H A Dieee8023_tlv.h46 #define TLV_SET(tlv, type, length) \
48 (tlv)->tlv_type = (type); \
49 (tlv)->tlv_length = sizeof(*tlv) + (length); \
/netbsd-6-1-5-RELEASE/external/bsd/wpa/dist/src/eap_common/
H A Deap_fast_common.c182 int eap_fast_parse_tlv(struct eap_fast_tlv_parse *tlv, argument
189 if (tlv->eap_payload_tlv) {
192 tlv->iresult = EAP_TLV_RESULT_FAILURE;
195 tlv->eap_payload_tlv = pos;
196 tlv->eap_payload_tlv_len = len;
200 if (tlv->result) {
203 tlv->result = EAP_TLV_RESULT_FAILURE;
209 tlv->result = EAP_TLV_RESULT_FAILURE;
212 tlv->result = WPA_GET_BE16(pos);
213 if (tlv
[all...]
H A Deap_fast_common.h110 int eap_fast_parse_tlv(struct eap_fast_tlv_parse *tlv,
/netbsd-6-1-5-RELEASE/usr.sbin/ldpd/
H A Dsocketops.h38 #include "tlv.h"
58 int send_message(struct ldp_peer *, struct ldp_pdu *, struct tlv *);
59 int send_tlv(struct ldp_peer *, struct tlv *);
H A Dtlv_stack.h36 #include "tlv.h"
44 void prepare_release(struct tlv *);
H A DMakefile20 tlv.c \
H A Dpdu.c75 send_tlv(p, (struct tlv *) notiftlv);
85 send_tlv(p, (struct tlv *) notiftlv);
H A Dnotifications.c38 #include "tlv.h"
76 rv = send_tlv(p, (struct tlv *) nt);
H A Dtlv.c41 #include "tlv.h"
43 /* Reads and checks a tlv struct from a buffer */
71 debug_tlv(struct tlv * t)
H A Dtlv.h61 struct tlv { struct
204 void debug_tlv(struct tlv *);
H A Dtlv_stack.c43 #include "tlv.h"
197 prepare_release(struct tlv * v)
218 * Ok, so we have label map tlv that contains fec tlvs and label tlv
219 * but fec tlv contains prefix or host tlvs and prefix or host tlvs
280 send_tlv(peer, (struct tlv *) lmt);
316 * Ok, so we have label map tlv that contains fec tlvs but fec tlv
357 send_tlv(peer, (struct tlv *) lmt);
H A Dsocketops.c53 #include "tlv.h"
264 cht = &t->ch; /* Hello tlv struct includes CHT */
739 send_tlv(p, (struct tlv *) (void *) &ti);
751 send_tlv(p, (struct tlv *) (void *) &kt);
770 struct tlv *ttmp;
807 ttmp = (struct tlv *) (&recvspace[wo]);
986 /* Sends a pdu, tlv pair to a connected peer */
988 send_message(struct ldp_peer * p, struct ldp_pdu * pdu, struct tlv * t)
1036 send_tlv(struct ldp_peer * p, struct tlv * t)
1058 ret = send_tlv(p, (struct tlv *)
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/tcpdump/dist/
H A Dprint-slow.c359 /* did we capture enough for fully decoding the tlv header ? */
383 /* did we capture enough for fully decoding the tlv ? */
486 } tlv; local
518 tlv.slow_oam_info = (const struct slow_oam_info_t *)tptr;
520 if (tlv.slow_oam_info->info_length !=
528 tlv.slow_oam_info->oam_version,
529 EXTRACT_16BITS(&tlv.slow_oam_info->revision));
533 tlv.slow_oam_info->state & OAM_INFO_TYPE_PARSER_MASK),
535 tlv.slow_oam_info->state & OAM_INFO_TYPE_MUX_MASK));
538 tlv
[all...]
H A Dprint-forces.c37 const struct forces_tlv *tlv = (struct forces_tlv *)pptr; local
38 register const u_char *tdp = (u_char *) TLV_DATA(tlv);
74 const struct forces_tlv *tlv = (struct forces_tlv *)pptr; local
76 register const u_char *tdp = (u_char *) TLV_DATA(tlv);
84 TCHECK(*tlv);
85 type = EXTRACT_16BITS(&tlv->type);
150 const struct forces_tlv *tlv = (struct forces_tlv *)pptr; local
152 register const u_char *tdp = (u_char *) TLV_DATA(tlv);
160 TCHECK(*tlv);
161 type = EXTRACT_16BITS(&tlv
178 const struct forces_tlv *tlv = (struct forces_tlv *)pptr; local
704 const struct forces_tlv *tlv = (struct forces_tlv *)pptr; local
746 const struct forces_tlv *tlv = (struct forces_tlv *)pptr; local
[all...]
H A Dforces.h433 #define TLV_RDAT_LEN(tlv) ((int)(EXTRACT_16BITS(&(tlv)->length) - TLV_SET_LEN(0))
435 #define GO_NXT_TLV(tlv,rlen) ((rlen) -= F_ALN_LEN(EXTRACT_16BITS(&(tlv)->length)), \
436 (struct forces_tlv*)(((char*)(tlv)) \
437 + F_ALN_LEN(EXTRACT_16BITS(&(tlv)->length))))
458 static inline int tlv_valid(const struct forces_tlv *tlv, u_int rlen) argument
462 if (EXTRACT_16BITS(&tlv->length) < TLV_HDRL)
464 if (EXTRACT_16BITS(&tlv->length) > rlen)
466 if (rlen < F_ALN_LEN(EXTRACT_16BITS(&tlv
[all...]
H A Dprint-lldp.c911 u_int16_t tlv, cap, ena_cap; local
922 while (tlen >= sizeof(tlv)) {
924 TCHECK2(*tptr, sizeof(tlv));
926 tlv = EXTRACT_16BITS(tptr);
928 tlv_type = LLDP_EXTRACT_TYPE(tlv);
929 tlv_len = LLDP_EXTRACT_LEN(tlv);
932 tlen -= sizeof(tlv);
933 tptr += sizeof(tlv);
/netbsd-6-1-5-RELEASE/external/bsd/wpa/dist/src/eap_server/
H A Deap_server_fast.c1129 struct eap_fast_tlv_parse *tlv)
1134 os_memset(tlv, 0, sizeof(*tlv));
1152 res = eap_fast_parse_tlv(tlv, tlv_type, pos, len);
1233 struct eap_tlv_pac_type_tlv *tlv; local
1235 if (pac == NULL || len != sizeof(*tlv))
1238 tlv = (struct eap_tlv_pac_type_tlv *) pac;
1240 return be_to_host16(tlv->tlv_type) == PAC_TYPE_PAC_TYPE &&
1241 be_to_host16(tlv->length) == 2 &&
1242 be_to_host16(tlv
1128 eap_fast_parse_tlvs(struct wpabuf *data, struct eap_fast_tlv_parse *tlv) argument
1250 struct eap_fast_tlv_parse tlv; local
[all...]
H A Deap_server_peap.c110 struct eap_tlv_hdr *tlv; local
117 e = wpabuf_alloc(sizeof(*tlv) + wpabuf_len(buf));
124 tlv = wpabuf_put(e, sizeof(*tlv));
125 tlv->tlv_type = host_to_be16(EAP_TLV_TYPE_MANDATORY |
127 tlv->length = host_to_be16(wpabuf_len(buf));
1086 struct eap_tlv_hdr *tlv; local
1089 if (wpabuf_len(in_decrypted) < sizeof(*tlv) + sizeof(*hdr)) {
1095 tlv = wpabuf_mhead(in_decrypted);
1096 if ((be_to_host16(tlv
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/wpa/dist/src/eap_peer/
H A Deap_fast.c1052 struct eap_fast_tlv_parse *tlv,
1058 os_memset(tlv, 0, sizeof(*tlv));
1077 res = eap_fast_parse_tlv(tlv, tlv_type, pos, len);
1148 struct eap_fast_tlv_parse tlv; local
1151 if (eap_fast_parse_decrypted(decrypted, &tlv, &resp) < 0)
1157 if (tlv.result == EAP_TLV_RESULT_FAILURE) {
1163 if (tlv.iresult == EAP_TLV_RESULT_FAILURE) {
1169 if (tlv.crypto_binding) {
1171 tlv
1051 eap_fast_parse_decrypted(struct wpabuf *decrypted, struct eap_fast_tlv_parse *tlv, struct wpabuf **resp) argument
1365 u8 *tlv; local
[all...]
H A Deap_peap.c587 struct eap_tlv_hdr *tlv; local
594 e = wpabuf_alloc(sizeof(*tlv) + wpabuf_len(buf));
601 tlv = wpabuf_put(e, sizeof(*tlv));
602 tlv->tlv_type = host_to_be16(EAP_TLV_TYPE_MANDATORY |
604 tlv->length = host_to_be16(wpabuf_len(buf));
842 struct eap_tlv_hdr *tlv; local
845 if (wpabuf_len(in_decrypted) < sizeof(*tlv) + sizeof(*hdr)) {
851 tlv = wpabuf_mhead(in_decrypted);
852 if ((be_to_host16(tlv
[all...]
/netbsd-6-1-5-RELEASE/sys/dev/pci/
H A Dif_iwn.c5289 const struct iwn_fw_tlv *tlv; local
5321 while (ptr + sizeof (*tlv) <= end) {
5322 tlv = (const struct iwn_fw_tlv *)ptr;
5323 len = le32toh(tlv->len);
5325 ptr += sizeof (*tlv);
5332 if (tlv->alt != 0 && tlv->alt != htole16(alt))
5335 switch (le16toh(tlv->type)) {
5358 le16toh(tlv->type)));

Completed in 148 milliseconds