9
0
Fork 0

gtp.c: Don't print ""Unknown packet flags" error message in get_seq()

get_seq() is called also from contexts where GTP-U is used, and GTP-U
doesn't have sequence numbers.  Thus, it is perfectly normal if no
sequence number and/or no S flag in the header is present.

Change-Id: Ie19b95bbb4427e547843a019f5213a231a9f83da
This commit is contained in:
Harald Welte 2017-02-23 20:32:38 +01:00
parent 875e4dc8c3
commit bf5c0bb4b9
1 changed files with 0 additions and 1 deletions

View File

@ -210,7 +210,6 @@ static uint16_t get_seq(void *pack)
} else if ((packet->flags & 0xe2) == 0x22) { /* Version 1 with seq */
return ntoh16(packet->gtp1l.h.seq);
} else {
LOGP(DLGTP, LOGL_ERROR, "Unknown packet flags: 0x%02x\n", packet->flags);
return 0;
}
}