Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18878
b: refs/heads/master
c: 4323add
h: refs/heads/master
v: v3
  • Loading branch information
Per Liden committed Jan 17, 2006
1 parent e64b5da commit 5bf5bf6
Show file tree
Hide file tree
Showing 45 changed files with 1,655 additions and 1,674 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1e63e681e06d438fdc542d40924a4f155d461bbd
refs/heads/master: 4323add67792ced172d0d93b8b2e6187023115f1
10 changes: 5 additions & 5 deletions trunk/net/tipc/addr.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ u32 tipc_get_addr(void)
}

/**
* addr_domain_valid - validates a network domain address
* tipc_addr_domain_valid - validates a network domain address
*
* Accepts <Z.C.N>, <Z.C.0>, <Z.0.0>, 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);
Expand All @@ -79,16 +79,16 @@ int addr_domain_valid(u32 addr)
}

/**
* addr_node_valid - validates a proposed network address for this node
* tipc_addr_node_valid - validates a proposed network address for this node
*
* Accepts <Z.C.N>, 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));
}

4 changes: 2 additions & 2 deletions trunk/net/tipc/addr.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ static inline char *addr_string_fill(char *string, u32 addr)
return string;
}

int addr_domain_valid(u32);
int addr_node_valid(u32 addr);
int tipc_addr_domain_valid(u32);
int tipc_addr_node_valid(u32 addr);

#endif
Loading

0 comments on commit 5bf5bf6

Please sign in to comment.