aboutsummaryrefslogtreecommitdiffstats
path: root/ggsn/gtp-kernel.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-11-08 14:08:24 +0900
committerHarald Welte <laforge@gnumonks.org>2017-11-13 23:57:58 +0900
commite3c5918aeea8639c8c9a36047fd078ddc4eab4ef (patch)
tree652a5077a5bfa5e08716c7baa1b204e347b5f0db /ggsn/gtp-kernel.h
parente2a1de5ca5ca1f7c03955fc36d7c62dc9e91d8cb (diff)
gtp_kernel: Change gtp_kernel_init() function signature
Rather than taking an explicit in_addr, prefix_length and a string-formatted prefix, let's pass in an in46_prefix and derive the other representations from it. Also, don't refer to a no-longer-existing global 'ipup' variable but add it as a function argument. Change-Id: Ife87142c86589b4fa4062d62afe3670467548589
Diffstat (limited to 'ggsn/gtp-kernel.h')
-rw-r--r--ggsn/gtp-kernel.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/ggsn/gtp-kernel.h b/ggsn/gtp-kernel.h
index 34fd7bf..ce57994 100644
--- a/ggsn/gtp-kernel.h
+++ b/ggsn/gtp-kernel.h
@@ -7,8 +7,7 @@ extern int debug;
extern char *ipup;
#ifdef GTP_KERNEL
-int gtp_kernel_init(struct gsn_t *gsn, struct in_addr *net,
- size_t prefixlen, const char *net_arg);
+int gtp_kernel_init(struct gsn_t *gsn, struct in46_prefix *prefix, const char *ipup);
void gtp_kernel_stop(void);
int gtp_kernel_tunnel_add(struct pdp_t *pdp);
@@ -17,8 +16,7 @@ int gtp_kernel_tunnel_del(struct pdp_t *pdp);
int gtp_kernel_enabled(void);
#else
-static inline int gtp_kernel_init(struct gsn_t *gsn, struct in_addr *net,
- size_t prefixlen, const char *net_arg)
+static inline int gtp_kernel_init(struct gsn_t *gsn, struct in46_prefix *prefix, const char *ipup)
{
SYS_ERR(DGGSN, LOGL_ERROR, 0, "ggsn compiled without GTP kernel support!\n");
return -1;