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

struct nl_msg* nlmsg_alloc_simple ( int  nlmsgtype,
int  flags 
) [read]

Allocate a new netlink message

  • nlmsgtype Netlink message type
  • flags Message flags.
Newly allocated netlink message or NULL.

Definition at line 451 of file msg.c.

References nlmsg_inherit(), and nlmsghdr::nlmsg_type.

Referenced by flnl_lookup_build_request(), nfnlmsg_alloc_simple(), nl_send_simple(), rtnl_link_build_change_request(), rtnl_neightbl_build_change_request(), and rtnl_qdisc_build_delete_request().

      struct nl_msg *msg;
      struct nlmsghdr nlh = {
            .nlmsg_type = nlmsgtype,
            .nlmsg_flags = flags,

      msg = nlmsg_inherit(&nlh);
      if (msg)
            NL_DBG(2, "msg %p: Allocated new simple message\n", msg);

      return msg;

Generated by  Doxygen 1.6.0   Back to index