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

struct nlattr* nla_next ( const struct nlattr nla,
int *  remaining 
) [read]

next netlink attribte in attribute stream

  • nla netlink attribute
  • remaining number of bytes remaining in attribute stream
Returns:
the next netlink attribute in the attribute stream and decrements remaining by the size of the current attribute.

Definition at line 185 of file attr.c.

References nlattr::nla_len.

{
      int totlen = NLA_ALIGN(nla->nla_len);

      *remaining -= totlen;
      return (struct nlattr *) ((char *) nla + totlen);
}


Generated by  Doxygen 1.6.0   Back to index