diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-01-25 17:28:11 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-01-25 17:28:26 +0100 |
commit | a884a95a7b6a9833c2a86603bd851f30fb46c96f (patch) | |
tree | 64f9fb90e27c60cfc7f39ac8e53048087fa6acad /gtp/gtp.c | |
parent | a4aada0b5fccee9334ac21fab12dadd94c55c69a (diff) |
gtp.c: Log unsupported GTP version number
Change-Id: Idbc6e4c912b958bde5916b87ec53c3c4db70bee0
Diffstat (limited to 'gtp/gtp.c')
-rw-r--r-- | gtp/gtp.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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; } |