Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
addr.h File Reference

Go to the source code of this file.

Macros

#define TIPC_ZONE_MASK   0xff000000u
 
#define TIPC_CLUSTER_MASK   0xfffff000u
 

Functions

int tipc_addr_domain_valid (u32)
 
int tipc_addr_node_valid (u32 addr)
 
int tipc_in_scope (u32 domain, u32 addr)
 
int tipc_addr_scope (u32 domain)
 
chartipc_addr_string_fill (char *string, u32 addr)
 

Macro Definition Documentation

#define TIPC_CLUSTER_MASK   0xfffff000u

Definition at line 41 of file addr.h.

#define TIPC_ZONE_MASK   0xff000000u

Definition at line 40 of file addr.h.

Function Documentation

int tipc_addr_domain_valid ( u32  addr)

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.

Returns 1 if domain address is valid, otherwise 0

Definition at line 48 of file addr.c.

int tipc_addr_node_valid ( u32  addr)

tipc_addr_node_valid - validates a proposed network address for this node

Accepts <Z.C.N>, where Z, C, and N are non-zero.

Returns 1 if address can be used, otherwise 0

Definition at line 68 of file addr.c.

int tipc_addr_scope ( u32  domain)

tipc_addr_scope - convert message lookup domain to a 2-bit scope value

Definition at line 87 of file addr.c.

char* tipc_addr_string_fill ( char string,
u32  addr 
)

Definition at line 98 of file addr.c.

int tipc_in_scope ( u32  domain,
u32  addr 
)

Definition at line 73 of file addr.c.