gtp-kernel: Remove dependency to cmdline.[ch]
Change-Id: I760f25df609c309eba4d5716f3e23b49320449bf
diff --git a/ggsn/gtp-kernel.h b/ggsn/gtp-kernel.h
index b3b29e3..34fd7bf 100644
--- a/ggsn/gtp-kernel.h
+++ b/ggsn/gtp-kernel.h
@@ -8,8 +8,7 @@
#ifdef GTP_KERNEL
int gtp_kernel_init(struct gsn_t *gsn, struct in_addr *net,
- size_t prefixlen,
- struct gengetopt_args_info *args_info);
+ size_t prefixlen, const char *net_arg);
void gtp_kernel_stop(void);
int gtp_kernel_tunnel_add(struct pdp_t *pdp);
@@ -19,15 +18,10 @@
#else
static inline int gtp_kernel_init(struct gsn_t *gsn, struct in_addr *net,
- size_t prefixlen,
- struct gengetopt_args_info *args_info)
+ size_t prefixlen, const char *net_arg)
{
- if (args_info->gtp_linux_given) {
- SYS_ERR(DGGSN, LOGL_ERROR, 0,
- "ggsn compiled without GTP kernel support!\n");
- return -1;
- }
- return 0;
+ SYS_ERR(DGGSN, LOGL_ERROR, 0, "ggsn compiled without GTP kernel support!\n");
+ return -1;
}
static inline void gtp_kernel_stop(void) {}