diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-05-08 18:30:39 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-05-10 18:05:23 +0200 |
commit | 6ae67dfe2c94678defe8f739e3b56604534c4ec7 (patch) | |
tree | 8dfda620237f3f1148893eeda423157e9a2cd142 /tools/gtp-tunnel.c | |
parent | b9f6ffea9cc540336a0b3c40dd4fae60bd552c02 (diff) |
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>
Diffstat (limited to 'tools/gtp-tunnel.c')
-rw-r--r-- | tools/gtp-tunnel.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ static int genl_gtp_attr_cb(const struct nlmsghdr *nlh, void *data) 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; |