aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-02-23 20:32:38 +0100
committerHarald Welte <laforge@gnumonks.org>2017-02-23 21:11:05 +0100
commitbf5c0bb4b9587d3a8048efc60ec18fa0113b026f (patch)
treefd410d187e3aceb2b6580a163084790dab919f2b
parent875e4dc8c3ac1c025f80ecd5531c96c840d42f26 (diff)
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
-rw-r--r--gtp/gtp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gtp/gtp.c b/gtp/gtp.c
index 42aa4ea..ade746a 100644
--- a/gtp/gtp.c
+++ b/gtp/gtp.c
@@ -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;
}
}