diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2011-10-28 16:26:41 -0400 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2012-02-24 17:05:13 -0500 |
commit | fc0eea691a06ba8516795fb7a198239fb9db1cfc (patch) | |
tree | dfdcf4a88224cb919cc95641788b5eba58d0bd10 /net/tipc/node.h | |
parent | 7c3a95a15ad2a5278498a72df0463131048926a3 (diff) |
tipc: Introduce node signature field in neighbor discovery message
Adds support for the new "node signature" in neighbor discovery messages,
which is a 16 bit identifier chosen randomly when TIPC is initialized.
This field makes it possible for nodes receiving a neighbor discovery
message to detect if multiple neighboring nodes are using the same network
address (i.e. <Z.C.N>), even when the messages are arriving on different
interfaces.
This first phase of node signature support creates the signature,
incorporates it into outgoing neighbor discovery messages, and tracks
the signature used by valid neighbors. An upcoming patch builds on this
foundation to implement the improved duplicate neighbor detection checking.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc/node.h')
-rw-r--r-- | net/tipc/node.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/tipc/node.h b/net/tipc/node.h index e1b78a2199c2..7bf526af1dfb 100644 --- a/net/tipc/node.h +++ b/net/tipc/node.h | |||
@@ -42,6 +42,11 @@ | |||
42 | #include "net.h" | 42 | #include "net.h" |
43 | #include "bearer.h" | 43 | #include "bearer.h" |
44 | 44 | ||
45 | /* | ||
46 | * Out-of-range value for node signature | ||
47 | */ | ||
48 | #define INVALID_NODE_SIG 0x10000 | ||
49 | |||
45 | /* Flags used to block (re)establishment of contact with a neighboring node */ | 50 | /* Flags used to block (re)establishment of contact with a neighboring node */ |
46 | 51 | ||
47 | #define WAIT_PEER_DOWN 0x0001 /* wait to see that peer's links are down */ | 52 | #define WAIT_PEER_DOWN 0x0001 /* wait to see that peer's links are down */ |
@@ -61,6 +66,7 @@ | |||
61 | * @block_setup: bit mask of conditions preventing link establishment to node | 66 | * @block_setup: bit mask of conditions preventing link establishment to node |
62 | * @link_cnt: number of links to node | 67 | * @link_cnt: number of links to node |
63 | * @permit_changeover: non-zero if node has redundant links to this system | 68 | * @permit_changeover: non-zero if node has redundant links to this system |
69 | * @signature: node instance identifier | ||
64 | * @bclink: broadcast-related info | 70 | * @bclink: broadcast-related info |
65 | * @supportable: non-zero if node supports TIPC b'cast link capability | 71 | * @supportable: non-zero if node supports TIPC b'cast link capability |
66 | * @supported: non-zero if node supports TIPC b'cast capability | 72 | * @supported: non-zero if node supports TIPC b'cast capability |
@@ -86,6 +92,7 @@ struct tipc_node { | |||
86 | int working_links; | 92 | int working_links; |
87 | int block_setup; | 93 | int block_setup; |
88 | int permit_changeover; | 94 | int permit_changeover; |
95 | u32 signature; | ||
89 | struct { | 96 | struct { |
90 | u8 supportable; | 97 | u8 supportable; |
91 | u8 supported; | 98 | u8 supported; |