tools: gtp-tunnel: fix wrong MS address
This displays the SGSN address where we should show the MS address
instead.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
diff --git a/tools/gtp-tunnel.c b/tools/gtp-tunnel.c
index d68f19d..61e2993 100644
--- a/tools/gtp-tunnel.c
+++ b/tools/gtp-tunnel.c
@@ -222,10 +222,10 @@
printf("version %u ", pdp.version);
if (pdp.version == GTP_V0)
printf("tid %"PRIu64" ms_addr %s ",
- pdp.u.v0.tid, inet_ntoa(pdp.sgsn_addr));
+ pdp.u.v0.tid, inet_ntoa(pdp.ms_addr));
else if (pdp.version == GTP_V1)
printf("tei %u/%u ms_addr %s ", pdp.u.v1.i_tei,
- pdp.u.v1.o_tei, inet_ntoa(pdp.sgsn_addr));
+ pdp.u.v1.o_tei, inet_ntoa(pdp.ms_addr));
printf("sgsn_addr %s\n", inet_ntoa(pdp.sgsn_addr));
return MNL_CB_OK;