summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2014-02-22 22:38:05 +0100
committerPablo Neira Ayuso <pablo@gnumonks.org>2014-02-22 22:38:05 +0100
commite91a1a4ab7bbf7a3c0577cdf043003350168e0b9 (patch)
tree196fc3385bc24f55c68e072d644e79d9b1c5e314
parent4c2e76077a83438bc8bb108934c34ce102d15459 (diff)
tools: gtp-tunnel: fix accidentally swapped ms_addr and sgsn_addr
The output was swapping the ms and the sgsn addresses.
-rw-r--r--libgtnl/tools/gtp-tunnel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgtnl/tools/gtp-tunnel.c b/libgtnl/tools/gtp-tunnel.c
index ec091db..4980825 100644
--- a/libgtnl/tools/gtp-tunnel.c
+++ b/libgtnl/tools/gtp-tunnel.c
@@ -148,8 +148,8 @@ static int genl_gtp_attr_cb(const struct nlmsghdr *nlh, void *data)
}
printf("version %u ", pdp.version);
- printf("tid %llu ms_addr %s ", pdp.tid, inet_ntoa(pdp.sgsn_addr));
- printf("sgsn_addr %s\n", inet_ntoa(pdp.ms_addr));
+ printf("tid %llu ms_addr %s ", pdp.tid, inet_ntoa(pdp.ms_addr));
+ printf("sgsn_addr %s\n", inet_ntoa(pdp.sgsn_addr));
return MNL_CB_OK;
}