diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-07-13 18:32:35 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-07-13 18:32:38 +0200 |
commit | 3b84e92ab3ddcc3d022108385238c36a21e5226b (patch) | |
tree | 67cb0639c752435f39988ff09e42aa37adef324f /gtp | |
parent | 3e0baa614687a1ef39337b660d470393518cc6ad (diff) |
gtp: Log type name of unexpected signalling message
Change-Id: Iae0f045e4128cf97aa7824d7d774b59bf966cbe8
Diffstat (limited to 'gtp')
-rw-r--r-- | gtp/gtp.c | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -2835,7 +2835,8 @@ int gtp_decaps0(struct gsn_t *gsn) gsn->unexpect++; GTP_LOGPKG(LOGL_ERROR, &peer, buffer, status, - "Unexpected GTPv0 Signalling Message\n"); + "Unexpected GTPv0 Signalling Message '%s'\n", + get_value_string(gtp_type_names, pheader->type)); continue; /* Silently discard 29.60: 11.1.4 */ } @@ -2846,7 +2847,8 @@ int gtp_decaps0(struct gsn_t *gsn) gsn->unexpect++; GTP_LOGPKG(LOGL_ERROR, &peer, buffer, status, - "Unexpected GTPv0 Signalling Message\n"); + "Unexpected GTPv0 Signalling Message '%s'\n", + get_value_string(gtp_type_names, pheader->type)); continue; /* Silently discard 29.60: 11.1.4 */ } @@ -3012,7 +3014,8 @@ int gtp_decaps1c(struct gsn_t *gsn) gsn->unexpect++; GTP_LOGPKG(LOGL_ERROR, &peer, buffer, status, - "Unexpected GTPv1 Signalling Message\n"); + "Unexpected GTPv1 Signalling Message '%s'\n", + get_value_string(gtp_type_names, pheader->type)); continue; /* Silently discard 29.60: 11.1.4 */ } @@ -3023,7 +3026,8 @@ int gtp_decaps1c(struct gsn_t *gsn) gsn->unexpect++; GTP_LOGPKG(LOGL_ERROR, &peer, buffer, status, - "Unexpected GTPv1 Signalling Message\n"); + "Unexpected GTPv1 Signalling Message '%s'\n", + get_value_string(gtp_type_names, pheader->type)); continue; /* Silently discard 29.60: 11.1.4 */ } |