/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/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...] |
socketops.c | 54 #include "tlv.h" 425 TLV_TYPE_LENGTH + MSGID_SIZE + /* Hello TLV */ \ 426 /* Common Hello TLV */ \ 441 cht = &t->ch; /* Hello tlv struct includes CHT */ 450 /* Prepare Hello TLV */ 468 * Prepare Transport Address TLV RFC5036 says: "If this optional TLV 540 " (PDU: %d, Hello TLV: %d, CH: %d, TR: %d)\n", 608 "(PDU: %d, Hello TLV: %d, CH: %d TR: %d)\n", 724 /* Fill the TLV messages * [all...] |
mpls_routes.c | 817 send_tlv(p, (struct tlv *)&al_tlv);
|
/src/sys/net/lagg/ |
if_lagg_lacp.h | 69 struct tlv { struct
|
if_lagg_lacp.c | 427 tlv_parse(void *vp, size_t len, struct tlv *list) 1010 struct tlv tlvlist_lacp[LACP_TLV_NUM] = { 1177 struct tlv tlvlist_marker[MARKER_TLV_NUM] = {
|
/src/sys/dev/pci/ |
if_iwn.c | 5883 * Extract text and data sections from a TLV firmware image. 5890 const struct iwn_fw_tlv *tlv; local in function:iwn_read_firmware_tlv 5923 while (ptr + sizeof (*tlv) <= end) { 5924 tlv = (const struct iwn_fw_tlv *)ptr; 5925 len = le32toh(tlv->len); 5927 ptr += sizeof (*tlv); 5934 if (tlv->alt != 0 && tlv->alt != htole16(alt)) 5937 switch (le16toh(tlv->type)) { 5961 "TLV type %d has invalid size %u\n" [all...] |
if_iwm.c | 658 struct iwm_ucode_tlv tlv; local in function:iwm_read_firmware 708 while (len >= sizeof(tlv)) { 712 memcpy(&tlv, data, sizeof(tlv)); 713 tlv_len = le32toh(tlv.length); 714 tlv_type = le32toh(tlv.type); 716 len -= sizeof(tlv); 717 data += sizeof(tlv); 6544 * Enable LAR only if it is supported by the FW (TLV) &&
|
/src/sys/netinet/ |
sctp_asconf.c | 151 uint8_t *tlv; local in function:sctp_asconf_error_response 184 tlv = (uint8_t *)(error + 1); 185 memcpy(tlv, error_tlv, tlv_length); 1231 /* invalid included TLV length */ 1234 printf("asconf_process_error: included TLV too long\n");
|