/* Find a single attribute in a stream of attributes.  */
struct nlattr* nla_find(struct nlattr *head, int len, int attrtype)
/* Find a single attribute in a stream of attributes.  */
struct nlattr* nla_find(struct nlattr *head, int len, int attrtype)
{
	struct nlattr *nla;
	int rem;
	nla_for_each_attr(nla, head, len, rem)
		if (nla_type(nla) == attrtype)
			return nla;
	return NULL;
}