gtp: add attribute validation for GTPA_TID
Make sure userspace passes a u64.
This commit is contained in:
parent
0eca321846
commit
57c6ecb185
3
gtp.c
3
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, },
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue