aboutsummaryrefslogtreecommitdiffstats
path: root/package/ead/src/ead.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-01-06 22:19:55 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-01-06 22:19:55 +0000
commit4129203d75fc53adf9cf03c8bf09c3c8ceb85b62 (patch)
tree5e029cd54dff6700ebaced239a2c622d51f46872 /package/ead/src/ead.h
parent341c1dbdf5107b6cd5f357d8d991a573d7f54d9e (diff)
downloadupstream-4129203d75fc53adf9cf03c8bf09c3c8ceb85b62.tar.gz
upstream-4129203d75fc53adf9cf03c8bf09c3c8ceb85b62.tar.bz2
upstream-4129203d75fc53adf9cf03c8bf09c3c8ceb85b62.zip
ead: add support for instance ids to prevent interference from packet reception on multiple interfaces
SVN-Revision: 13905
Diffstat (limited to 'package/ead/src/ead.h')
-rw-r--r--package/ead/src/ead.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/package/ead/src/ead.h b/package/ead/src/ead.h
index 36db0f5529..54505ce28c 100644
--- a/package/ead/src/ead.h
+++ b/package/ead/src/ead.h
@@ -114,12 +114,16 @@ 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;