/* Return next attribute in a stream of attributes.  */
struct nlattr* nla_next(const struct nlattr *nla, int *remaining)
/* Return next attribute in a stream of attributes.  */
struct nlattr* nla_next(const struct nlattr *nla, int *remaining)
{
	int totlen = NLA_ALIGN(nla->nla_len);
	*remaining -= totlen;
	return (struct nlattr *) ((char *) nla + totlen);
}