Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
addr.c File Reference
#include "core.h"
#include "addr.h"

Go to the source code of this file.

Functions

int tipc_addr_domain_valid (u32 addr)
 
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)
 

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.