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
This commit is contained in:
Harald Welte 2017-11-08 15:49:15 +09:00
parent 698a2339eb
commit 0d0e242685
1 changed files with 1 additions and 0 deletions

View File

@ -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");