kernel: fq_codel: dont reinit flow state
[openwrt/openwrt.git] / package / ead / src / ead.h
index 3cc12c8a4deede45418aa1c4f37fbd0a2de7a088..54505ce28c8b2991f9e529de9a2765e0d2491695 100644 (file)
@@ -14,7 +14,7 @@
 #ifndef __EAD_H
 #define __EAD_H
 
-#define EAD_DEBUGLEVEL 2
+#define EAD_DEBUGLEVEL 1
 
 #include <stdint.h>
 #include <stddef.h>
@@ -114,12 +114,17 @@ struct ead_msg_encrypted {
 #define EAD_DATA(_msg, _type) (&((_msg)->data[0]._type))
 #define EAD_ENC_DATA(_msg, _type) (&((_msg)->data[0].enc.data[0]._type))
 
+/* for ead_msg::sid */
+#define EAD_INSTANCE_MASK      0xf000
+#define EAD_INSTANCE_SHIFT     12
+
 struct ead_msg {
        uint32_t magic;
        uint32_t len;
        uint32_t type;
        uint16_t nid; /* node id */
-       uint16_t tid; /* transaction id */
+       uint16_t sid; /* session id */
+       uint32_t ip; /* source ip for responses from the server */
        union {
                struct ead_msg_pong pong;
                struct ead_msg_user user;