/* Attribute policy: what each attribute may contain. */
static struct nla_policy dp_genl_policy[DP_GENL_A_MAX + 1] = {
[DP_GENL_A_DP_IDX] = { .type = NLA_U32 },
- [DP_GENL_A_DP_NAME] = { .type = NLA_STRING },
+ [DP_GENL_A_DP_NAME] = { .type = NLA_NUL_STRING },
[DP_GENL_A_MC_GROUP] = { .type = NLA_U32 },
- [DP_GENL_A_PORTNAME] = { .type = NLA_STRING }
+ [DP_GENL_A_PORTNAME] = { .type = NLA_NUL_STRING }
};
static int dp_genl_add(struct sk_buff *skb, struct genl_info *info)