[PATCH] osmo-ggsn[master]: shut down kernel GTP device in apn_down()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Sun Nov 12 22:13:56 UTC 2017


Review at  https://gerrit.osmocom.org/4816

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
---
M ggsn/ggsn.c
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-ggsn refs/changes/16/4816/1

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

-- 
To view, visit https://gerrit.osmocom.org/4816
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idd250dd454a1603834d388884a24a63e044fdd7b
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list