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

struct nlattr* nla_nest_start ( struct nl_msg *  msg,
int  attrtype 
) [read]

Start a new level of nested attributes.

  • msg Netlink message.
  • attrtype Attribute type of container.
Pointer to container attribute.

Definition at line 1122 of file attr.c.

References nla_put().

Referenced by rtnl_link_build_change_request().

      struct nlattr *start = (struct nlattr *) nlmsg_tail(msg->nm_nlh);

      if (nla_put(msg, attrtype, 0, NULL) < 0)
            return NULL;

      return start;

Generated by  Doxygen 1.6.0   Back to index