path: root/ggsn/gtp-kernel.h
diff options
authorHarald Welte <laforge@gnumonks.org>2017-11-08 15:52:08 +0900
committerHarald Welte <laforge@gnumonks.org>2017-11-14 00:08:51 +0900
commitc85e89961a4e9dd6fd0b75ce17e9c948c360e4a1 (patch)
tree8145bbc9cebc1cec34a256575cdd7685ede5fcd0 /ggsn/gtp-kernel.h
parent2fc2bc6bc40e7460a3ceb67c1774fd3f39e27860 (diff)
gtp-kernel: Avoid global state variable
Whether or not GTP kernel support is enabled is the property of a given APN, and not a global state variable. Change-Id: Iff3bd8a52bd6c20f9811ee41ff700486d08591f3
Diffstat (limited to 'ggsn/gtp-kernel.h')
1 files changed, 0 insertions, 7 deletions
diff --git a/ggsn/gtp-kernel.h b/ggsn/gtp-kernel.h
index 62a0cd2..e2da55a 100644
--- a/ggsn/gtp-kernel.h
+++ b/ggsn/gtp-kernel.h
@@ -13,8 +13,6 @@ void gtp_kernel_stop(const char *devname);
int gtp_kernel_tunnel_add(struct pdp_t *pdp, const char *devname);
int gtp_kernel_tunnel_del(struct pdp_t *pdp, const char *devname);
-int gtp_kernel_enabled(void);
static inline int gtp_kernel_init(struct gsn_t *gsn, const char *devname, struct in46_prefix *prefix, const char *ipup)
@@ -34,10 +32,5 @@ static inline int gtp_kernel_tunnel_del(struct pdp_t *pdp, const char *devname)
return 0;
-static inline int gtp_kernel_enabled(void)
- return 0;
#endif /* _GTP_KERNEL_H_ */