[MERGED] osmo-ggsn[master]: gtp-kernel: 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
Mon Nov 13 15:23:29 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: gtp-kernel: shut down kernel GTP device in apn_down()
......................................................................


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

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



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: merged
Gerrit-Change-Id: Idd250dd454a1603834d388884a24a63e044fdd7b
Gerrit-PatchSet: 3
Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list