HomeSort by: relevance | last modified time | path
    Searched refs:tlv (Results 1 - 25 of 34) sorted by relevancy

1 2

  /src/sys/net/agr/
ieee8023_tlv.c 38 tlv_check(const void *p, size_t size, const struct tlvhdr *tlv,
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);
ieee8023_tlv.h 33 * TLV on-wire structure.
46 #define TLV_SET(tlv, type, length) \
48 (tlv)->tlv_type = (type); \
49 (tlv)->tlv_length = sizeof(*tlv) + (length); \
  /src/external/bsd/ppp/dist/pppd/plugins/pppol2tp/
openl2tp.c 121 struct openl2tp_event_tlv *tlv; local
140 tlv = (void *) &msg->msg_data[msg->msg_len];
141 tlv->tlv_type = OPENL2TP_TLV_TYPE_TUNNEL_ID;
142 tlv->tlv_len = sizeof(tid);
143 memcpy(&tlv->tlv_value[0], &tid, tlv->tlv_len);
144 msg->msg_len += sizeof(*tlv) + ALIGN32(tlv->tlv_len);
146 tlv = (void *) &msg->msg_data[msg->msg_len];
147 tlv->tlv_type = OPENL2TP_TLV_TYPE_SESSION_ID
182 struct openl2tp_event_tlv *tlv; local
    [all...]
  /src/external/bsd/wpa/dist/src/eap_common/
eap_fast_common.c 51 /* Encapsulate EAP packet in EAP-Payload TLV */
52 wpa_printf(MSG_DEBUG, "EAP-FAST: Add EAP-Payload TLV");
56 "for TLV encapsulation");
148 int eap_fast_parse_tlv(struct eap_fast_tlv_parse *tlv,
153 wpa_hexdump(MSG_MSGDUMP, "EAP-FAST: EAP-Payload TLV",
155 if (tlv->eap_payload_tlv) {
157 "EAP-Payload TLV in the message");
158 tlv->iresult = EAP_TLV_RESULT_FAILURE;
161 tlv->eap_payload_tlv = pos;
162 tlv->eap_payload_tlv_len = len
    [all...]
eap_teap_common.c 55 /* Encapsulate EAP packet in EAP-Payload TLV */
56 wpa_printf(MSG_DEBUG, "EAP-TEAP: Add EAP-Payload TLV");
60 "EAP-TEAP: Failed to allocate memory for TLV encapsulation");
348 * fixed size of 20 octets in the TLV description) */
378 /* 1. The entire Crypto-Binding TLV attribute with both the EMSK and MSK
426 int eap_teap_parse_tlv(struct eap_teap_tlv_parse *tlv,
433 "EAP-TEAP: Too short Identity-Type TLV");
434 tlv->result = TEAP_STATUS_FAILURE;
437 tlv->identity_type = WPA_GET_BE16(pos);
439 tlv->identity_type)
    [all...]
eap_fast_common.h 21 * RFC 5422: Section 4.2.1 - Formats for PAC TLV Attributes / Type Field
23 * in the general PAC TLV format (Section 4.2).
55 /* RFC 5422: 4.2.6 PAC-Type TLV */
104 int eap_fast_parse_tlv(struct eap_fast_tlv_parse *tlv,
  /src/usr.sbin/ldpd/
socketops.h 38 #include "tlv.h"
55 const struct tlv *);
56 int send_tlv(const struct ldp_peer *, const struct tlv *);
tlv_stack.h 36 #include "tlv.h"
45 void prepare_release(struct tlv *);
pdu.c 74 send_tlv(p, (struct tlv *) notiftlv);
85 send_tlv(p, (struct tlv *) notiftlv);
96 send_tlv(p, (struct tlv *) notiftlv);
Makefile 20 tlv.c \
notifications.c 38 #include "tlv.h"
42 /* builds a notification TLV. Do not forget to free the result */
76 rv = send_tlv(p, (struct tlv *) nt);
tlv.c 1 /* $NetBSD: tlv.c,v 1.1 2010/12/08 07:20:15 kefren Exp $ */
41 #include "tlv.h"
43 /* Reads and checks a tlv struct from a buffer */
69 /* Prints out some information about TLV */
71 debug_tlv(struct tlv * t)
73 warnp("TLV type %.4X, Length %d, Message ID %.8X\n", ntohs(t->type),
tlv.h 1 /* $NetBSD: tlv.h,v 1.5 2022/02/07 02:35:09 rillig Exp $ */
35 /* TLV messages */
60 /* General TLV structure */
61 struct tlv { struct
67 /* Common Hello TLV structure */
75 /* Hello TLV structure */
84 /* Transport address TLV */
98 /* Initialization TLV structure */
116 /* Keepalive TLV */
123 /* Notification TLV */
    [all...]
tlv_stack.c 43 #include "tlv.h"
69 debugp("Invalid FEC TLV !\n");
73 debugp("Invalid LABEL TLV! (0x%.4X)\n", ntohs(l->type));
163 debugp("Invalid FEC TLV !\n");
229 prepare_release(struct tlv * v)
249 debugp("SENDING LABEL TLV %s TO %s\n", satos(addr),
253 * Ok, so we have label map tlv that contains fec tlvs and label tlv
254 * but fec tlv contains prefix or host tlvs and prefix or host tlvs
282 /* FEC TLV */
    [all...]
  /src/external/bsd/tcpdump/dist/
print-slow.c 99 { SLOW_OAM_INFO_TYPE_END_OF_TLV, "End of TLV marker" },
142 { SLOW_OAM_LINK_EVENT_END_OF_TLV, "End of TLV marker" },
362 /* is the packet big enough to include the tlv header ? */
365 /* did we capture enough for fully decoding the tlv header ? */
370 ND_PRINT("\n\t%s TLV (0x%02x), length %u",
379 * This TLV has a length of zero, and means there are no
392 /* is the packet big enough to include the tlv ? */
395 /* did we capture enough for fully decoding the tlv ? */
513 } tlv; local
545 * As IEEE Std 802.3-2015 says for the End of TLV Marker
    [all...]
print-nflog.c 45 * Structure of an NFLOG header and TLV parts, as described at
50 * The TLV length and type are in host byte order. The value is either
64 nd_uint16_t tlv_length; /* tlv length */
65 nd_uint16_t tlv_type; /* tlv type */
89 * TLV types.
178 const nflog_tlv_t *tlv; local
180 /* We have some data. Do we have enough for the TLV header? */
184 tlv = (const nflog_tlv_t *) p;
185 ND_TCHECK_SIZE(tlv);
186 size = GET_HE_U_2(tlv->tlv_length)
    [all...]
print-hncp.c 275 const uint8_t *tlv, *value; local
282 tlv = cp + i;
283 type = GET_U_1(tlv);
284 optlen = GET_U_1(tlv + 1);
285 value = tlv + 2;
327 const u_char *tlv, *value; local
334 tlv = cp + i;
335 type = GET_BE_U_2(tlv);
336 optlen = GET_BE_U_2(tlv + 2);
337 value = tlv + 4
418 const uint8_t *tlv, *value; local
    [all...]
print-forces.c 188 {F_LFB_RSVD, "Invalid TLV"},
195 /* https://www.iana.org/assignments/forces/forces.xhtml#oper-tlv-types */
351 {F_TLV_RSVD, "Invalid TLV"},
352 {F_TLV_REDR, "REDIRECT TLV"},
353 {F_TLV_ASRS, "ASResult TLV"},
354 {F_TLV_ASRT, "ASTreason TLV"},
355 {F_TLV_LFBS, "LFBselect TLV"},
356 {F_TLV_PDAT, "PATH-DATA TLV"},
357 {F_TLV_KEYI, "KEYINFO TLV"},
358 {F_TLV_FULD, "FULLDATA TLV"},
656 const struct forces_tlv *tlv = (const struct forces_tlv *)pptr; local
696 const struct forces_tlv *tlv = (const struct forces_tlv *)pptr; local
771 const struct forces_tlv *tlv = (const struct forces_tlv *)pptr; local
800 const struct forces_tlv *tlv = (const struct forces_tlv *)pptr; local
1406 const struct forces_tlv *tlv = (const struct forces_tlv *)pptr; local
    [all...]
print-lldp.c 43 * TLV type codes
1182 uint16_t tlv; local
1204 while (tlen >= sizeof(tlv)) {
1206 ND_TCHECK_LEN(tptr, sizeof(tlv));
1208 tlv = GET_BE_U_2(tptr);
1210 tlv_type = LLDP_EXTRACT_TYPE(tlv);
1211 tlv_len = LLDP_EXTRACT_LEN(tlv);
1214 tlen -= sizeof(tlv);
1215 tptr += sizeof(tlv);
1227 /* decode every tlv */
1454 uint16_t tlv, cap, ena_cap; local
    [all...]
  /src/external/bsd/wpa/dist/src/eap_peer/
eap_teap.c 507 "EAP-TEAP: Add NAK TLV (Vendor-Id %u NAK-Type %u)",
531 wpa_printf(MSG_DEBUG, "EAP-TEAP: Add PAC TLV (ack)");
546 struct wpabuf *tlv; local
548 tlv = eap_teap_tlv_identity_type(sm->use_machine_cred ?
551 return wpabuf_concat(msg, tlv);
566 "EAP-TEAP: too short EAP Payload TLV (len=%lu)",
574 "EAP-TEAP: EAP packet overflow in EAP Payload TLV");
635 /* Assume this succeeds so that Result TLV(Success) from the server can
653 "EAP-TEAP: Crypto-Binding TLV: Version %u Received Version %u Flags %u Sub-Type %u",
667 "EAP-TEAP: Invalid Version/Flags/Sub-Type in Crypto-Binding TLV: Version %u Received Version %u Flags %u Sub-Type %u"
1251 struct eap_teap_tlv_parse tlv; local
1587 u8 *tlv; local
    [all...]
eap_fast.c 542 wpa_printf(MSG_DEBUG, "EAP-FAST: Add %sResult TLV(status=%d)",
565 wpa_printf(MSG_DEBUG, "EAP-FAST: Add PAC TLV (ack)");
588 "Payload TLV (len=%lu)",
596 "EAP Payload TLV");
619 wpa_printf(MSG_DEBUG, "EAP-FAST: Crypto-Binding TLV: Version %d "
631 "Crypto-Binding TLV: Version %d "
658 wpa_printf(MSG_DEBUG, "EAP-FAST: Reply Crypto-Binding TLV: Version %d "
783 wpa_hexdump(MSG_MSGDUMP, "EAP-FAST: Crypto-Binding TLV for Compound "
891 wpa_printf(MSG_DEBUG, "EAP-FAST: PAC TLV overrun "
905 wpa_printf(MSG_DEBUG, "EAP-FAST: PAC TLV does not include
1195 struct eap_fast_tlv_parse tlv; local
1412 u8 *tlv; local
    [all...]
  /src/external/bsd/wpa/dist/src/eap_server/
eap_server_fast.c 25 /* Private PAC-Opaque TLV types */
114 /* TODO: send Result TLV(FAILURE) */
606 wpa_printf(MSG_DEBUG, "EAP-FAST: Add Intermediate-Result TLV "
617 /* Result TLV */
618 wpa_printf(MSG_DEBUG, "EAP-FAST: Add Result TLV "
627 /* Crypto-Binding TLV */
653 * Compound-MAC = HMAC-SHA1( CMK, Crypto-Binding TLV )
660 wpa_printf(MSG_DEBUG, "EAP-FAST: Add Crypto-Binding TLV: Version %d "
751 /* Result TLV */
752 wpa_printf(MSG_DEBUG, "EAP-FAST: Add Result TLV (status=SUCCESS)")
1242 struct eap_tlv_pac_type_tlv *tlv; local
1259 struct eap_fast_tlv_parse tlv; local
    [all...]
eap_server_teap.c 23 /* Private PAC-Opaque TLV types */
487 /* RFC 7170, Section 4.2.2: Authority-ID TLV */
640 "EAP-TEAP: Add Intermediate-Result TLV (status=SUCCESS)");
649 /* Result TLV */
651 "EAP-TEAP: Add Result TLV (status=SUCCESS)");
659 /* Crypto-Binding TLV */
667 * Crypto-Binding TLV is used with Basic-Password-Auth */
702 "EAP-TEAP: Add Crypto-Binding TLV: Version %u Received Version %u Flags %u Sub-Type %u",
800 /* Result TLV */
801 wpa_printf(MSG_DEBUG, "EAP-TEAP: Add Result TLV (status=SUCCESS)")
1518 struct teap_attr_pac_type *tlv; local
1535 struct eap_teap_tlv_parse tlv; local
    [all...]
  /src/external/bsd/libpcap/dist/
pcap-util.c 398 nflog_tlv_t *tlv; local
419 tlv = (nflog_tlv_t *) p;
422 tlv->tlv_type = SWAPSHORT(tlv->tlv_type);
423 tlv->tlv_length = SWAPSHORT(tlv->tlv_length);
425 /* Get the length of the TLV. */
426 size = tlv->tlv_length;
430 /* Is the TLV's length less than the minimum? */
436 /* Do we have enough data for the full TLV? *
    [all...]
  /src/sys/net/lagg/
if_lagg_lacp.h 69 struct tlv { struct

Completed in 34 milliseconds

1 2