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

int nla_parse_nested ( struct nlattr *  tb[],
int  maxtype,
struct nlattr *  nla,
struct nla_policy policy 

Create attribute index based on nested attribute

  • tb Index array to be filled (maxtype+1 elements).
  • maxtype Maximum attribute type expected and accepted.
  • nla Nested Attribute.
  • policy Attribute validation policy.
Feeds the stream of attributes nested into the specified attribute to nla_parse().

See also:
0 on success or a negative error code.

Definition at line 1161 of file attr.c.

References nla_data(), nla_len(), and nla_parse().

Referenced by rtnl_ematch_parse().

      return nla_parse(tb, maxtype, nla_data(nla), nla_len(nla), policy);

Generated by  Doxygen 1.6.0   Back to index