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

struct nlattr* nlmsg_attrdata ( const struct nlmsghdr nlh,
int  hdrlen 
) [read]

head of attributes data

  • nlh netlink message header
  • hdrlen length of family specific header

Definition at line 249 of file msg.c.

References nlmsg_data().

Referenced by nl_msg_dump(), nlmsg_find_attr(), nlmsg_parse(), and nlmsg_validate().

{
      unsigned char *data = nlmsg_data(nlh);
      return (struct nlattr *) (data + NLMSG_ALIGN(hdrlen));
}


Generated by  Doxygen 1.6.0   Back to index