gtp: Log detection of rx duplicate

Change-Id: I8bc9143db6743ad4fae2fe6d6fe0417648e9eec9
changes/14/27414/1
Pau Espin 11 months ago
parent fb9303c610
commit 1bf3b3d0f9
  1. 7
      gtp/gtp.c

@ -827,11 +827,18 @@ static int gtp_duplicate(struct gsn_t *gsn, uint8_t version,
struct sockaddr_in *peer, uint16_t seq)
{
struct qmsg_t *qmsg;
char buf[INET_ADDRSTRLEN];
if (queue_seqget(gsn->queue_resp, &qmsg, peer, seq)) {
return EOF; /* Notfound */
}
buf[0] = '\0';
inet_ntop(AF_INET, &peer->sin_addr, buf, sizeof(buf));
LOGP(DLGTP, LOGL_INFO,
"Rx duplicate seq=%" PRIu16 " from %s, retrans resp\n", seq, buf);
if (fcntl(qmsg->fd, F_SETFL, 0)) {
LOGP(DLGTP, LOGL_ERROR, "fnctl()\n");
return -1;

Loading…
Cancel
Save