[PATCH] libosmocore[master]: GPRS: log NS socket

Max gerrit-no-reply at lists.osmocom.org
Fri Oct 20 13:41:40 UTC 2017


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

GPRS: log NS socket

Let's log NS UDP socket creation similar to the way we log it for telnet
and ctrl interfaces.

Change-Id: Ic9d0f94ab2c1bb33f67cd4f1c9236b64108c0bb6
---
M src/gb/gprs_ns.c
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/70/4370/1

diff --git a/src/gb/gprs_ns.c b/src/gb/gprs_ns.c
index d20ed23..d9c5f9d 100644
--- a/src/gb/gprs_ns.c
+++ b/src/gb/gprs_ns.c
@@ -1580,6 +1580,7 @@
 			"Failed to set the DSCP to %d with ret(%d) errno(%d)\n",
 			nsi->nsip.dscp, ret, errno);
 
+	LOGP(DLGLOBAL, LOGL_NOTICE, "NS UDP socket at %s:%d\n", inet_ntoa(in), nsi->nsip.local_port);
 
 	return ret;
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic9d0f94ab2c1bb33f67cd4f1c9236b64108c0bb6
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>


More information about the gerrit-log mailing list