package/libs/libnl-tiny/src/socket.c
/**
 * Allocate new netlink socket
 *
 * @return Newly allocated netlink socket or NULL.
 */
Allocate new netlink socket
@return Newly allocated netlink socket or NULL.
Allocate new netlink socket @return Newly allocated netlink socket or NULL .
struct nl_sock *nl_socket_alloc(void)
{
	struct nl_cb *cb;
	cb = nl_cb_alloc(NL_CB_DEFAULT);
	if (!cb)
		return NULL;
	return __alloc_socket(cb);
}
struct nl_sock * nl_socket_alloc ( void ) { struct nl_cb * cb ; cb = nl_cb_alloc ( NL_CB_DEFAULT ) ; if ( ! cb ) return NULL ; return __alloc_socket ( cb ) ; }
Allocate new netlink socket
 @return Newly allocated netlink socket or NULL.
Allocate new netlink socket @return Newly allocated netlink socket or NULL .