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

struct nl_sock* nl_socket_alloc ( void   )  [read]

Allocate new netlink socket

Returns:
Newly allocated netlink socket or NULL.

Definition at line 117 of file socket.c.

References nl_cb_alloc().

{
      struct nl_cb *cb;
      
      cb = nl_cb_alloc(default_cb);
      if (!cb)
            return NULL;

      return __alloc_socket(cb);
}


Generated by  Doxygen 1.6.0   Back to index