diff options
author | Patrick McHardy <kaber@trash.net> | 2011-01-14 08:12:37 -0500 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2011-01-14 08:12:37 -0500 |
commit | 0134e89c7bcc9fde1da962c82a120691e185619f (patch) | |
tree | 3e03335cf001019a2687d161e956de4f73379984 /net/tipc/addr.c | |
parent | c7066f70d9610df0b9406cc635fc09e86136e714 (diff) | |
parent | 6faee60a4e82075853a437831768cc9e2e563e4e (diff) |
Merge branch 'master' of git://1984.lsi.us.es/net-next-2.6
Conflicts:
net/ipv4/route.c
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/tipc/addr.c')
-rw-r--r-- | net/tipc/addr.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/net/tipc/addr.c b/net/tipc/addr.c index 8a2e89bffde5..88463d9a6f12 100644 --- a/net/tipc/addr.c +++ b/net/tipc/addr.c | |||
@@ -35,11 +35,7 @@ | |||
35 | */ | 35 | */ |
36 | 36 | ||
37 | #include "core.h" | 37 | #include "core.h" |
38 | #include "dbg.h" | ||
39 | #include "addr.h" | 38 | #include "addr.h" |
40 | #include "zone.h" | ||
41 | #include "cluster.h" | ||
42 | #include "net.h" | ||
43 | 39 | ||
44 | /** | 40 | /** |
45 | * tipc_addr_domain_valid - validates a network domain address | 41 | * tipc_addr_domain_valid - validates a network domain address |
@@ -57,14 +53,8 @@ int tipc_addr_domain_valid(u32 addr) | |||
57 | u32 z = tipc_zone(addr); | 53 | u32 z = tipc_zone(addr); |
58 | u32 max_nodes = tipc_max_nodes; | 54 | u32 max_nodes = tipc_max_nodes; |
59 | 55 | ||
60 | if (is_slave(addr)) | ||
61 | max_nodes = LOWEST_SLAVE + tipc_max_slaves; | ||
62 | if (n > max_nodes) | 56 | if (n > max_nodes) |
63 | return 0; | 57 | return 0; |
64 | if (c > tipc_max_clusters) | ||
65 | return 0; | ||
66 | if (z > tipc_max_zones) | ||
67 | return 0; | ||
68 | 58 | ||
69 | if (n && (!z || !c)) | 59 | if (n && (!z || !c)) |
70 | return 0; | 60 | return 0; |