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

struct nlmsghdr* nlmsg_next ( struct nlmsghdr nlh,
int *  remaining 
) [read]

next netlink message in message stream

  • nlh netlink message header
  • remaining number of bytes remaining in message stream
the next netlink message in the message stream and decrements remaining by the size of the current message.

Definition at line 300 of file msg.c.

References nlmsghdr::nlmsg_len.

      int totlen = NLMSG_ALIGN(nlh->nlmsg_len);

      *remaining -= totlen;

      return (struct nlmsghdr *) ((unsigned char *) nlh + totlen);

Generated by  Doxygen 1.6.0   Back to index