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

int genlmsg_len ( const struct genlmsghdr *  gnlh  ) 

Get lenght of message payload

  • gnlh genetlink message header

Definition at line 200 of file genl.c.

References nlmsghdr::nlmsg_len.

Referenced by genlmsg_attrlen().

      struct nlmsghdr *nlh = (struct nlmsghdr *)((unsigned char *)gnlh -
      return (nlh->nlmsg_len - GENL_HDRLEN - NLMSG_HDRLEN);

Generated by  Doxygen 1.6.0   Back to index