diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2014-03-20 11:10:05 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@gnumonks.org> | 2014-03-20 12:55:43 +0100 |
commit | 57c6ecb1852222606af6f5481791247d7f8d9cd8 (patch) | |
tree | 2eca2e08e4427261ba3f3545fd70da455e58fbe3 | |
parent | 0eca321846c906c1ab2c611aca3c72a306a1b264 (diff) |
gtp: add attribute validation for GTPA_TID
Make sure userspace passes a u64.
-rw-r--r-- | gtp.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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, }, }; |