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

struct nl_msg* nlmsg_alloc ( void   )  [read]

Allocate a new netlink message with the default maximum payload size.

Allocates a new netlink message without any further payload. The maximum payload size defaults to PAGESIZE or as otherwise specified with nlmsg_set_default_size().

Returns:
Newly allocated netlink message or NULL.

Definition at line 404 of file msg.c.

Referenced by nlmsg_inherit(), and rtnl_neightbl_build_change_request().

{
      return __nlmsg_alloc(default_msg_size);
}


Generated by  Doxygen 1.6.0   Back to index