gtp: add attribute validation for GTPA_TID

Make sure userspace passes a u64.
This commit is contained in:
Pablo Neira Ayuso 2014-03-20 11:10:05 +01:00
parent 0eca321846
commit 57c6ecb185
1 changed files with 2 additions and 1 deletions

3
gtp.c
View File

@ -1264,8 +1264,9 @@ out:
}
static struct nla_policy gtp_genl_policy[GTPA_MAX + 1] = {
[GTPA_VERSION] = { .type = NLA_U32, },
[GTPA_LINK] = { .type = NLA_U32, },
[GTPA_VERSION] = { .type = NLA_U32, },
[GTPA_TID] = { .type = NLA_U64, },
[GTPA_SGSN_ADDRESS] = { .type = NLA_NESTED, },
[GTPA_MS_ADDRESS] = { .type = NLA_NESTED, },
};