diff options
Diffstat (limited to 'net/tipc/addr.c')
-rw-r--r-- | net/tipc/addr.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/net/tipc/addr.c b/net/tipc/addr.c index 48fd3b5a73fb..97cd857d7f43 100644 --- a/net/tipc/addr.c +++ b/net/tipc/addr.c | |||
@@ -64,23 +64,6 @@ int in_own_node(struct net *net, u32 addr) | |||
64 | } | 64 | } |
65 | 65 | ||
66 | /** | 66 | /** |
67 | * addr_domain - convert 2-bit scope value to equivalent message lookup domain | ||
68 | * | ||
69 | * Needed when address of a named message must be looked up a second time | ||
70 | * after a network hop. | ||
71 | */ | ||
72 | u32 addr_domain(struct net *net, u32 sc) | ||
73 | { | ||
74 | struct tipc_net *tn = net_generic(net, tipc_net_id); | ||
75 | |||
76 | if (likely(sc == TIPC_NODE_SCOPE)) | ||
77 | return tn->own_addr; | ||
78 | if (sc == TIPC_CLUSTER_SCOPE) | ||
79 | return tipc_cluster_mask(tn->own_addr); | ||
80 | return tipc_zone_mask(tn->own_addr); | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * tipc_addr_domain_valid - validates a network domain address | 67 | * tipc_addr_domain_valid - validates a network domain address |
85 | * | 68 | * |
86 | * Accepts <Z.C.N>, <Z.C.0>, <Z.0.0>, and <0.0.0>, | 69 | * Accepts <Z.C.N>, <Z.C.0>, <Z.0.0>, and <0.0.0>, |
@@ -124,20 +107,6 @@ int tipc_in_scope(u32 domain, u32 addr) | |||
124 | return 0; | 107 | return 0; |
125 | } | 108 | } |
126 | 109 | ||
127 | /** | ||
128 | * tipc_addr_scope - convert message lookup domain to a 2-bit scope value | ||
129 | */ | ||
130 | int tipc_addr_scope(u32 domain) | ||
131 | { | ||
132 | if (likely(!domain)) | ||
133 | return TIPC_ZONE_SCOPE; | ||
134 | if (tipc_node(domain)) | ||
135 | return TIPC_NODE_SCOPE; | ||
136 | if (tipc_cluster(domain)) | ||
137 | return TIPC_CLUSTER_SCOPE; | ||
138 | return TIPC_ZONE_SCOPE; | ||
139 | } | ||
140 | |||
141 | char *tipc_addr_string_fill(char *string, u32 addr) | 110 | char *tipc_addr_string_fill(char *string, u32 addr) |
142 | { | 111 | { |
143 | snprintf(string, 16, "<%u.%u.%u>", | 112 | snprintf(string, 16, "<%u.%u.%u>", |