ead: allow the client to override the source ip of the server, so that it can work...
[openwrt/openwrt.git] / package / ead / src / ead.h
index 3cc12c8a4deede45418aa1c4f37fbd0a2de7a088..36db0f5529c4113c90117fdea7be0e9b5211fe3f 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>
@@ -120,6 +120,7 @@ struct ead_msg {
        uint32_t type;
        uint16_t nid; /* node id */
        uint16_t tid; /* transaction id */
+       uint32_t ip; /* source ip for responses from the server */
        union {
                struct ead_msg_pong pong;
                struct ead_msg_user user;