diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-11-08 14:33:55 +0900 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-11-13 23:57:58 +0900 |
commit | f55a0390485cb1ba071ef19102501594571c74c7 (patch) | |
tree | 59a3366c40eafcb35cb4cd2f0136c3a05957310b /ggsn | |
parent | fc6676c4a0711248388a0df0f3e9e38492894a2c (diff) |
remove unused argument to alloc_ippool_blacklist()
Change-Id: I4d3ea077ba46446e537ec9a6de6f4080fcaa428c
Diffstat (limited to 'ggsn')
-rw-r--r-- | ggsn/ggsn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ggsn/ggsn.c b/ggsn/ggsn.c index 8b576ab..45b3116 100644 --- a/ggsn/ggsn.c +++ b/ggsn/ggsn.c @@ -147,7 +147,7 @@ int apn_stop(struct apn_ctx *apn, bool force) } -static int alloc_ippool_blacklist(struct apn_ctx *apn, const struct tun_t *tun, struct in46_prefix **blacklist, bool ipv6) +static int alloc_ippool_blacklist(struct apn_ctx *apn, struct in46_prefix **blacklist, bool ipv6) { int flags, len, len2, i; @@ -271,7 +271,7 @@ int apn_start(struct apn_ctx *apn) if (apn->v4.cfg.dynamic_prefix.addr.len) { LOGPAPN(LOGL_INFO, apn, "Creating IPv4 pool %s\n", in46p_ntoa(&apn->v4.cfg.dynamic_prefix)); - if ((blacklist_size = alloc_ippool_blacklist(apn, apn->tun.tun, &blacklist, false)) < 0) + if ((blacklist_size = alloc_ippool_blacklist(apn, &blacklist, false)) < 0) LOGPAPN(LOGL_ERROR, apn, "Failed obtaining IPv4 tun IPs\n"); if (ippool_new(&apn->v4.pool, &apn->v4.cfg.dynamic_prefix, &apn->v4.cfg.static_prefix, ippool_flags, @@ -288,7 +288,7 @@ int apn_start(struct apn_ctx *apn) if (apn->v6.cfg.dynamic_prefix.addr.len) { LOGPAPN(LOGL_INFO, apn, "Creating IPv6 pool %s\n", in46p_ntoa(&apn->v6.cfg.dynamic_prefix)); - if ((blacklist_size = alloc_ippool_blacklist(apn, apn->tun.tun, &blacklist, true)) < 0) + if ((blacklist_size = alloc_ippool_blacklist(apn, &blacklist, true)) < 0) LOGPAPN(LOGL_ERROR, apn, "Failed obtaining IPv6 tun IPs\n"); if (ippool_new(&apn->v6.pool, &apn->v6.cfg.dynamic_prefix, &apn->v6.cfg.static_prefix, ippool_flags, |