summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2014-03-20 11:10:05 +0100
committerPablo Neira Ayuso <pablo@gnumonks.org>2014-03-20 12:55:43 +0100
commit57c6ecb1852222606af6f5481791247d7f8d9cd8 (patch)
tree2eca2e08e4427261ba3f3545fd70da455e58fbe3
parent0eca321846c906c1ab2c611aca3c72a306a1b264 (diff)
gtp: add attribute validation for GTPA_TID
Make sure userspace passes a u64.
-rw-r--r--gtp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtp.c b/gtp.c
index cf704c0..fb048b3 100644
--- a/gtp.c
+++ b/gtp.c
@@ -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, },
};