gtp: Log detection of rx duplicate
Change-Id: I8bc9143db6743ad4fae2fe6d6fe0417648e9eec9
This commit is contained in:
parent
fb9303c610
commit
1bf3b3d0f9
|
@ -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…
Reference in New Issue