2 * Copyright (c) 2011 Nicira Networks.
3 * Distributed under the terms of the GNU GPL version 2.
5 * Significant portions of this file may be copied from parts of the Linux
6 * kernel, by Linus Torvalds and others.
12 #include <linux/netlink.h>
14 #ifndef HAVE_NLA_NUL_STRING
15 static inline int CHECK_NUL_STRING(struct nlattr *attr, int maxlen)
27 if (s[len - 1] != '\0')
33 static inline int CHECK_NUL_STRING(struct nlattr *attr, int maxlen)
37 #endif /* !HAVE_NLA_NUL_STRING */