gtp: remove genl_ops compat ifdef for Linux < 3.13
Signed-off-by: Andreas Schultz <aschultz@tpip.net> Signed-off-by: Pablo Neira Ayuso <pablo@soleta.eu>
This commit is contained in:
parent
785aa50a6b
commit
3a45fc68e0
4
gtp.c
4
gtp.c
|
@ -1291,11 +1291,7 @@ static struct nla_policy gtp_genl_policy[GTPA_MAX + 1] = {
|
||||||
[GTPA_FLOW] = { .type = NLA_U16, },
|
[GTPA_FLOW] = { .type = NLA_U16, },
|
||||||
};
|
};
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 13, 0)
|
|
||||||
static const struct genl_ops gtp_genl_ops[] = {
|
static const struct genl_ops gtp_genl_ops[] = {
|
||||||
#else
|
|
||||||
static struct genl_ops gtp_genl_ops[] = {
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
.cmd = GTP_CMD_TUNNEL_NEW,
|
.cmd = GTP_CMD_TUNNEL_NEW,
|
||||||
.doit = gtp_genl_tunnel_new,
|
.doit = gtp_genl_tunnel_new,
|
||||||
|
|
Loading…
Reference in New Issue