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/.
Max gerrit-no-reply at lists.osmocom.orgMax has submitted this change and it was merged.
Change subject: Log APN and tun names for packets
......................................................................
Log APN and tun names for packets
Change-Id: I6f7ce33f6585b2b78e2b8a5c0f7111f0316d6ddd
---
M ggsn/ggsn.c
1 file changed, 4 insertions(+), 3 deletions(-)
Approvals:
Harald Welte: Looks good to me, approved
Jenkins Builder: Verified
diff --git a/ggsn/ggsn.c b/ggsn/ggsn.c
index 763a2c5..4b4a01f 100644
--- a/ggsn/ggsn.c
+++ b/ggsn/ggsn.c
@@ -661,12 +661,13 @@
if (!pool)
return 0;
- DEBUGP(DTUN, "Received packet from tun!\n");
+ DEBUGP(DTUN, "Received packet for APN(%s) from tun %s", apn->cfg.name, tun->devname);
if (ippool_getip(pool, &ipm, &dst)) {
- DEBUGP(DTUN, "Received packet with no PDP contex!!\n");
+ DEBUGPC(DTUN, " with no PDP contex!!\n");
return 0;
}
+ DEBUGPC(DTUN, "\n");
if (ipm->peer) /* Check if a peer protocol is defined */
gtp_data_req(apn->ggsn->gsn, (struct pdp_t *)ipm->peer, pack, len);
@@ -689,7 +690,7 @@
OSMO_ASSERT(tun);
OSMO_ASSERT(apn);
- LOGPPDP(LOGL_DEBUG, pdp, "Packet received: forwarding to tun\n");
+ LOGPPDP(LOGL_DEBUG, pdp, "Packet received on APN(%s): forwarding to tun %s\n", apn->cfg.name, tun->devname);
switch (iph->version) {
case 6:
--
To view, visit https://gerrit.osmocom.org/5195
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I6f7ce33f6585b2b78e2b8a5c0f7111f0316d6ddd
Gerrit-PatchSet: 3
Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Max <msuraev at sysmocom.de>