/*
- * Copyright (c) 2009 Nicira Networks.
+ * Copyright (c) 2009, 2011 Nicira Networks.
* Distributed under the terms of the GNU GPL version 2.
*
* Significant portions of this file may be copied from parts of the Linux
#include <linux/rtnetlink.h>
#include <net/genetlink.h>
-#include "compat.h"
#include "openvswitch/brcompat-netlink.h"
#include "brc_procfs.h"
#include "datapath.h"
static struct nla_policy brc_genl_policy[BRC_GENL_A_MAX + 1] = {
[BRC_GENL_A_ERR_CODE] = { .type = NLA_U32 },
- [BRC_GENL_A_PROC_DIR] = { .type = NLA_NUL_STRING },
- [BRC_GENL_A_PROC_NAME] = { .type = NLA_NUL_STRING },
+#ifdef HAVE_NLA_NUL_STRING
+ [BRC_GENL_A_PROC_DIR] = { .type = NLA_NUL_STRING,
+ .len = BRC_NAME_LEN_MAX },
+ [BRC_GENL_A_PROC_NAME] = { .type = NLA_NUL_STRING,
+ .len = BRC_NAME_LEN_MAX },
[BRC_GENL_A_PROC_DATA] = { .type = NLA_NUL_STRING },
+#endif
[BRC_GENL_A_FDB_DATA] = { .type = NLA_UNSPEC },
};