aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-11-08 15:49:15 +0900
committerHarald Welte <laforge@gnumonks.org>2017-11-14 00:08:51 +0900
commit0d0e2426859ed8976dab36497efce87fb237041e (patch)
treebfd553425625706fa2ec71a39e013ccb270d0cdf
parent698a2339ebf0b2ebb753c572e2e81e208b2d6bdd (diff)
gtp-kernel: shut down kernel GTP device in apn_down()
When we take the APN down, we should also take the GTP device down. Change-Id: Idd250dd454a1603834d388884a24a63e044fdd7b
-rw-r--r--ggsn/ggsn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ggsn/ggsn.c b/ggsn/ggsn.c
index 6aa4210..1d4e592 100644
--- a/ggsn/ggsn.c
+++ b/ggsn/ggsn.c
@@ -130,6 +130,7 @@ int apn_stop(struct apn_ctx *apn, bool force)
tun_free(apn->tun.tun);
apn->tun.tun = NULL;
}
+ gtp_kernel_stop(apn->tun.cfg.dev_name);
if (apn->v4.pool) {
LOGPAPN(LOGL_INFO, apn, "Releasing IPv4 pool\n");