Revert c6537d6742
Backout the tipc changes to the flags int he subscription message. These changees, while reasonable on the surface, interefere with user space ABI compatibility which is a no-no. This was part of the changes to fix the endianess issues in the TIPC protocol, which would be really nice to do but we need to do so in a way that is backwards compatible with user space. Signed-off-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d2ed817766
commit
8c97443808
2 changed files with 23 additions and 22 deletions
|
|
@ -127,17 +127,23 @@ static inline unsigned int tipc_node(__u32 addr)
|
|||
* TIPC topology subscription service definitions
|
||||
*/
|
||||
|
||||
#define TIPC_SUB_SERVICE 0x00 /* Filter for service availability */
|
||||
#define TIPC_SUB_PORTS 0x01 /* Filter for port availability */
|
||||
#define TIPC_SUB_CANCEL 0x04 /* Cancel a subscription */
|
||||
#define TIPC_SUB_PORTS 0x01 /* filter for port availability */
|
||||
#define TIPC_SUB_SERVICE 0x02 /* filter for service availability */
|
||||
#define TIPC_SUB_CANCEL 0x04 /* cancel a subscription */
|
||||
#if 0
|
||||
/* The following filter options are not currently implemented */
|
||||
#define TIPC_SUB_NO_BIND_EVTS 0x04 /* filter out "publish" events */
|
||||
#define TIPC_SUB_NO_UNBIND_EVTS 0x08 /* filter out "withdraw" events */
|
||||
#define TIPC_SUB_SINGLE_EVT 0x10 /* expire after first event */
|
||||
#endif
|
||||
|
||||
#define TIPC_WAIT_FOREVER ~0 /* timeout for permanent subscription */
|
||||
|
||||
struct tipc_subscr {
|
||||
struct tipc_name_seq seq; /* NBO. Name sequence of interest */
|
||||
__u32 timeout; /* NBO. Subscription duration (in ms) */
|
||||
__u32 filter; /* NBO. Bitmask of filter options */
|
||||
char usr_handle[8]; /* Opaque. Available for subscriber use */
|
||||
struct tipc_name_seq seq; /* name sequence of interest */
|
||||
__u32 timeout; /* subscription duration (in ms) */
|
||||
__u32 filter; /* bitmask of filter options */
|
||||
char usr_handle[8]; /* available for subscriber use */
|
||||
};
|
||||
|
||||
#define TIPC_PUBLISHED 1 /* publication event */
|
||||
|
|
@ -145,11 +151,11 @@ struct tipc_subscr {
|
|||
#define TIPC_SUBSCR_TIMEOUT 3 /* subscription timeout event */
|
||||
|
||||
struct tipc_event {
|
||||
__u32 event; /* NBO. Event type, as defined above */
|
||||
__u32 found_lower; /* NBO. Matching name seq instances */
|
||||
__u32 found_upper; /* " " " " " */
|
||||
struct tipc_portid port; /* NBO. Associated port */
|
||||
struct tipc_subscr s; /* Original, associated subscription */
|
||||
__u32 event; /* event type */
|
||||
__u32 found_lower; /* matching name seq instances */
|
||||
__u32 found_upper; /* " " " " */
|
||||
struct tipc_portid port; /* associated port */
|
||||
struct tipc_subscr s; /* associated subscription */
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue