X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Ftipc%2Faddr.c;h=e5207a11edf64d36fd4a44bc8e9212425b1bf57f;hb=e66d90fb4abd0a27ee96f57a32fb561221c4d6ae;hp=6d5709deee6890aba429f8d495fb3f9e7598aa0f;hpb=9da1c8b694f8e72a16f259614caaae50cbcdaf10;p=linux-2.6 diff --git a/net/tipc/addr.c b/net/tipc/addr.c index 6d5709deee..e5207a11ed 100644 --- a/net/tipc/addr.c +++ b/net/tipc/addr.c @@ -1,7 +1,7 @@ /* * net/tipc/addr.c: TIPC address utility routines - * - * Copyright (c) 2003-2006, Ericsson AB + * + * Copyright (c) 2000-2006, Ericsson AB * Copyright (c) 2004-2005, Wind River Systems * All rights reserved. * @@ -47,15 +47,15 @@ u32 tipc_get_addr(void) } /** - * addr_domain_valid - validates a network domain address - * - * Accepts , , , and <0.0.0>, + * tipc_addr_domain_valid - validates a network domain address + * + * Accepts , , , and <0.0.0>, * where Z, C, and N are non-zero and do not exceed the configured limits. - * + * * Returns 1 if domain address is valid, otherwise 0 */ -int addr_domain_valid(u32 addr) +int tipc_addr_domain_valid(u32 addr) { u32 n = tipc_node(addr); u32 c = tipc_cluster(addr); @@ -79,16 +79,16 @@ int addr_domain_valid(u32 addr) } /** - * addr_node_valid - validates a proposed network address for this node - * - * Accepts , where Z, C, and N are non-zero and do not exceed + * tipc_addr_node_valid - validates a proposed network address for this node + * + * Accepts , where Z, C, and N are non-zero and do not exceed * the configured limits. - * + * * Returns 1 if address can be used, otherwise 0 */ -int addr_node_valid(u32 addr) +int tipc_addr_node_valid(u32 addr) { - return (addr_domain_valid(addr) && tipc_node(addr)); + return (tipc_addr_domain_valid(addr) && tipc_node(addr)); }