Logo Search packages:      
Sourcecode: libnl version File versions  Download package

struct nl_handle* nl_handle_alloc ( void   )  [read]

Allocate and initialize new netlink handle.

Allocates and initializes a new netlink handle, the netlink process id is set to the local process id which may conflict if multiple handles are created, therefore you may have to overwrite it using nl_handle_set_pid(). The initial sequence number is initialized to the current UNIX time. The default callback (NL_CB_DEFAULT) handlers are being used.

Newly allocated netlink handle or NULL.

Definition at line 176 of file nl.c.

References NL_CB_DEFAULT, and nl_handle_alloc_nondefault().

Generated by  Doxygen 1.6.0   Back to index