]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/linux-26-headers/include/linux/tipc_config.h
Update
[l4.git] / l4 / pkg / linux-26-headers / include / linux / tipc_config.h
index b54c023b1a1fbddf7d6da70941ddde22beb532c4..89f667c1c13ca7402afd1bbc163f8cd13e851ef7 100644 (file)
 
 #define TIPC_MIN_LINK_WIN 16
 #define TIPC_DEF_LINK_WIN 50
-#define TIPC_MAX_LINK_WIN 150
+#define TIPC_MAX_LINK_WIN 8191
 
 
 struct tipc_node_info {
@@ -270,6 +270,26 @@ static __inline__ int TLV_CHECK(const void *tlv, __u16 space, __u16 exp_type)
                (ntohs(((struct tlv_desc *)tlv)->tlv_type) == exp_type);
 }
 
+static __inline__ int TLV_GET_LEN(struct tlv_desc *tlv)
+{
+       return ntohs(tlv->tlv_len);
+}
+
+static __inline__ void TLV_SET_LEN(struct tlv_desc *tlv, __u16 len)
+{
+       tlv->tlv_len = htons(len);
+}
+
+static __inline__ int TLV_CHECK_TYPE(struct tlv_desc *tlv,  __u16 type)
+{
+       return (ntohs(tlv->tlv_type) == type);
+}
+
+static __inline__ void TLV_SET_TYPE(struct tlv_desc *tlv, __u16 type)
+{
+       tlv->tlv_type = htons(type);
+}
+
 static __inline__ int TLV_SET(void *tlv, __u16 type, void *data, __u16 len)
 {
        struct tlv_desc *tlv_ptr;