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

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

Start a new level of nested attributes

  • n netlink message
  • attrtype attribute type of container
the container attribute

Definition at line 643 of file attr.c.

References nla_put().

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

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

      return start;

Generated by  Doxygen 1.6.0   Back to index