Change in ...osmo-ggsn[master]: gtp: Log msg retransmits and timeouts

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/.

pespin gerrit-no-reply at lists.osmocom.org
Wed Aug 28 17:06:17 UTC 2019


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ggsn/+/15305


Change subject: gtp: Log msg retransmits and timeouts
......................................................................

gtp: Log msg retransmits and timeouts

Change-Id: Ie768ddb45313582b4b5358b97a981080be64fd42
---
M gtp/gtp.c
1 file changed, 4 insertions(+), 0 deletions(-)



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

diff --git a/gtp/gtp.c b/gtp/gtp.c
index f70f534..2ea949d 100644
--- a/gtp/gtp.c
+++ b/gtp/gtp.c
@@ -600,10 +600,14 @@
 	       (qmsg->timeout <= now)) {
 		/*printf("Retrans timeout found: %d\n", (int) time(NULL)); */
 		if (qmsg->retrans > N3_REQUESTS) {	/* To many retrans */
+			LOGP(DLGTP, LOGL_NOTICE, "Timeout of seq %" PRIu16 "\n",
+			     qmsg->seq);
 			if (gsn->cb_conf)
 				gsn->cb_conf(qmsg->type, EOF, NULL, qmsg->cbp);
 			queue_freemsg(gsn->queue_req, qmsg);
 		} else {
+			LOGP(DLGTP, LOGL_INFO, "Retransmit (%d) of seq %" PRIu16 "\n",
+			     qmsg->retrans, qmsg->seq);
 			if (sendto(qmsg->fd, &qmsg->p, qmsg->l, 0,
 				   (struct sockaddr *)&qmsg->peer,
 				   sizeof(struct sockaddr_in)) < 0) {

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/15305
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Change-Id: Ie768ddb45313582b4b5358b97a981080be64fd42
Gerrit-Change-Number: 15305
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190828/e7f27c36/attachment.htm>


More information about the gerrit-log mailing list