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

pespin gerrit-no-reply at lists.osmocom.org
Thu Aug 29 11:36:10 UTC 2019


pespin has submitted this change and it was merged. ( 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(-)

Approvals:
  Jenkins Builder: Verified
  neels: Looks good to me, but someone else must approve
  osmith: Looks good to me, approved



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-Reviewer: Jenkins Builder
Gerrit-Reviewer: neels <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190829/e7265ffd/attachment.html>


More information about the gerrit-log mailing list