tools: gtp-tunnel: fix accidentally swapped ms_addr and sgsn_addr

The output was swapping the ms and the sgsn addresses.
This commit is contained in:
Pablo Neira Ayuso 2014-02-22 22:38:05 +01:00
parent 4c2e76077a
commit e91a1a4ab7
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}