X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/555b1af398c2b808d93a2e93699bce8dcd2b917a..e973943aa376bda8430c3a17f0c8e0f8a8999bd2:/package/ead/src/ead.h?ds=sidebyside diff --git a/package/ead/src/ead.h b/package/ead/src/ead.h index 36db0f552..54505ce28 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;