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

Go to the source code of this file.

Data Structures

struct  tipc_link_req
 

Macros

#define TIPC_LINK_REQ_INIT   125 /* min delay during bearer start up */
 
#define TIPC_LINK_REQ_FAST   1000 /* max delay if bearer has no links */
 
#define TIPC_LINK_REQ_SLOW   60000 /* max delay if bearer has links */
 
#define TIPC_LINK_REQ_INACTIVE   0xffffffff /* indicates no timer in use */
 

Functions

void tipc_disc_recv_msg (struct sk_buff *buf, struct tipc_bearer *b_ptr)
 
void tipc_disc_add_dest (struct tipc_link_req *req)
 
void tipc_disc_remove_dest (struct tipc_link_req *req)
 
int tipc_disc_create (struct tipc_bearer *b_ptr, struct tipc_media_addr *dest, u32 dest_domain)
 
void tipc_disc_delete (struct tipc_link_req *req)
 

Macro Definition Documentation

#define TIPC_LINK_REQ_FAST   1000 /* max delay if bearer has no links */

Definition at line 42 of file discover.c.

#define TIPC_LINK_REQ_INACTIVE   0xffffffff /* indicates no timer in use */

Definition at line 44 of file discover.c.

#define TIPC_LINK_REQ_INIT   125 /* min delay during bearer start up */

Definition at line 41 of file discover.c.

#define TIPC_LINK_REQ_SLOW   60000 /* max delay if bearer has links */

Definition at line 43 of file discover.c.

Function Documentation

void tipc_disc_add_dest ( struct tipc_link_req req)

tipc_disc_add_dest - increment set of discovered nodes : ptr to link request structure

Definition at line 276 of file discover.c.

int tipc_disc_create ( struct tipc_bearer b_ptr,
struct tipc_media_addr dest,
u32  dest_domain 
)

tipc_disc_create - create object to send periodic link setup requests : ptr to bearer issuing requests : destination address for request messages : network domain to which links can be established

Returns 0 if successful, otherwise -errno.

Definition at line 349 of file discover.c.

void tipc_disc_delete ( struct tipc_link_req req)

tipc_disc_delete - destroy object sending periodic link setup requests : ptr to link request structure

Definition at line 380 of file discover.c.

void tipc_disc_recv_msg ( struct sk_buff buf,
struct tipc_bearer b_ptr 
)

tipc_disc_recv_msg - handle incoming link setup message (request or response) : buffer containing message : bearer that message arrived on

Definition at line 116 of file discover.c.

void tipc_disc_remove_dest ( struct tipc_link_req req)

tipc_disc_remove_dest - decrement set of discovered nodes : ptr to link request structure

Definition at line 285 of file discover.c.