/* nla_memcmp - Compare an attribute with sized memory area @nla: netlink attribute @data: memory area @size: size of memory area  */
int nla_memcmp(const struct nlattr *nla, const void *data, size_t size)
/* nla_memcmp - Compare an attribute with sized memory area @nla: netlink attribute @data: memory area @size: size of memory area  */
int nla_memcmp(const struct nlattr *nla, const void *data, size_t size)
{
	int d = nla_len(nla) - size;
	if (d == 0)
		d = memcmp(nla_data(nla), data, size);
	return d;
}