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

struct nlattr* nlmsg_find_attr ( struct nlmsghdr nlh,
int  hdrlen,
int  attrtype 
) [read]

nlmsg_find_attr - find a specific attribute in a netlink message

  • nlh netlink message header
  • hdrlen length of familiy specific header
  • attrtype type of attribute to look for
Returns the first attribute which matches the specified type.

Definition at line 337 of file msg.c.

References nla_find(), nlmsg_attrdata(), and nlmsg_attrlen().

{
      return nla_find(nlmsg_attrdata(nlh, hdrlen),
                  nlmsg_attrlen(nlh, hdrlen), attrtype);
}


Generated by  Doxygen 1.6.0   Back to index