X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Fbrcompat.c;h=43cbfb0d9eebacd539fd4fee0efa4a9659016d0c;hb=d656937779f5b987ec021c21189a0deab29fd64d;hp=15cec9c912d467a807ab27c98d52dfdcb0bc9c9f;hpb=f632c8fc817ff5597007a795b51574bddd32563a;p=openvswitch diff --git a/datapath/brcompat.c b/datapath/brcompat.c index 15cec9c9..43cbfb0d 100644 --- a/datapath/brcompat.c +++ b/datapath/brcompat.c @@ -408,9 +408,13 @@ static struct genl_ops brc_genl_ops_query_dp = { 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 }, };