aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-01-25 17:28:11 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2018-01-25 17:28:26 +0100
commita884a95a7b6a9833c2a86603bd851f30fb46c96f (patch)
tree64f9fb90e27c60cfc7f39ac8e53048087fa6acad
parenta4aada0b5fccee9334ac21fab12dadd94c55c69a (diff)
gtp.c: Log unsupported GTP version number
-rw-r--r--gtp/gtp.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/gtp/gtp.c b/gtp/gtp.c
index f513b9b..53b38de 100644
--- a/gtp/gtp.c
+++ b/gtp/gtp.c
@@ -2802,8 +2802,8 @@ int gtp_decaps0(struct gsn_t *gsn)
/* supported on this port */
if (version > 0) {
gsn->unsup++;
- GTP_LOGPKG(LOGL_ERROR, &peer, buffer,
- status, "Unsupported GTP version\n");
+ GTP_LOGPKG(LOGL_ERROR, &peer, buffer, status,
+ "Unsupported GTP version %"PRIu8"\n", version);
gtp_unsup_req(gsn, 0, &peer, gsn->fd0, buffer, status); /* 29.60: 11.1.1 */
continue;
}
@@ -2945,8 +2945,8 @@ int gtp_decaps1c(struct gsn_t *gsn)
/* Version must be no larger than GTP 1 */
if (version > 1) {
gsn->unsup++;
- GTP_LOGPKG(LOGL_ERROR, &peer, buffer,
- status, "Unsupported GTP version\n");
+ GTP_LOGPKG(LOGL_ERROR, &peer, buffer, status,
+ "Unsupported GTP version %"PRIu8"\n", version);
gtp_unsup_req(gsn, version, &peer, fd, buffer, status);
/*29.60: 11.1.1 */
continue;
@@ -2958,8 +2958,8 @@ int gtp_decaps1c(struct gsn_t *gsn)
/* the message */
if (version < 1) {
gsn->unsup++;
- GTP_LOGPKG(LOGL_ERROR, &peer, buffer,
- status, "Unsupported GTP version\n");
+ GTP_LOGPKG(LOGL_ERROR, &peer, buffer, status,
+ "Unsupported GTP version %"PRIu8"\n", version);
continue;
}
@@ -3123,8 +3123,8 @@ int gtp_decaps1u(struct gsn_t *gsn)
/* Version must be no larger than GTP 1 */
if (version > 1) {
gsn->unsup++;
- GTP_LOGPKG(LOGL_ERROR, &peer, buffer,
- status, "Unsupported GTP version\n");
+ GTP_LOGPKG(LOGL_ERROR, &peer, buffer, status,
+ "Unsupported GTP version %"PRIu8"\n", version);
gtp_unsup_req(gsn, 1, &peer, gsn->fd1c, buffer, status); /*29.60: 11.1.1 */
continue;
}
@@ -3135,8 +3135,8 @@ int gtp_decaps1u(struct gsn_t *gsn)
/* the message */
if (version < 1) {
gsn->unsup++;
- GTP_LOGPKG(LOGL_ERROR, &peer, buffer,
- status, "Unsupported GTP version\n");
+ GTP_LOGPKG(LOGL_ERROR, &peer, buffer, status,
+ "Unsupported GTP version %"PRIu8"\n", version);
continue;
}