Commit adc8df12 authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso Committed by Paolo Abeni

gtp: uapi: fix GTPA_MAX

Subtract one to __GTPA_MAX, otherwise GTPA_MAX is off by 2.

Fixes: 459aa660 ("gtp: add initial driver for datapath of GPRS Tunneling Protocol (GTP-U)")
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 9644bc49
...@@ -33,6 +33,6 @@ enum gtp_attrs { ...@@ -33,6 +33,6 @@ enum gtp_attrs {
GTPA_PAD, GTPA_PAD,
__GTPA_MAX, __GTPA_MAX,
}; };
#define GTPA_MAX (__GTPA_MAX + 1) #define GTPA_MAX (__GTPA_MAX - 1)
#endif /* _UAPI_LINUX_GTP_H_ */ #endif /* _UAPI_LINUX_GTP_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment