Searched refs:tlv (Results 1 – 1 of 1) sorted by relevance
274 #define TLV_DATA(tlv) ((void *)((char *)(tlv) + TLV_LENGTH(0))) argument276 static __inline__ int TLV_OK(const void *tlv, __u16 space) in TLV_OK() argument288 (ntohs(((struct tlv_desc *)tlv)->tlv_len) <= space); in TLV_OK()291 static __inline__ int TLV_CHECK(const void *tlv, __u16 space, __u16 exp_type) in TLV_CHECK() argument293 return TLV_OK(tlv, space) && in TLV_CHECK()294 (ntohs(((struct tlv_desc *)tlv)->tlv_type) == exp_type); in TLV_CHECK()297 static __inline__ int TLV_SET(void *tlv, __u16 type, void *data, __u16 len) in TLV_SET() argument303 tlv_ptr = (struct tlv_desc *)tlv; in TLV_SET()