From 04553c0968af8a8a0df3f0b6a7301432dc426477 Mon Sep 17 00:00:00 2001 From: nbd Date: Tue, 6 Jan 2009 22:19:55 +0000 Subject: ead: add support for instance ids to prevent interference from packet reception on multiple interfaces git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13905 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/ead/src/ead.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'package/ead/src/ead.h') 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; -- cgit v1.2.3