From e91a1a4ab7bbf7a3c0577cdf043003350168e0b9 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sat, 22 Feb 2014 22:38:05 +0100 Subject: [PATCH] tools: gtp-tunnel: fix accidentally swapped ms_addr and sgsn_addr The output was swapping the ms and the sgsn addresses. --- libgtnl/tools/gtp-tunnel.c | 4 ++-- 1 file 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; }