From 4ea01ba3632aa768920483ff3d7578c969b8cdd6 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Tue, 12 Feb 2002 15:31:41 +0000 Subject: fix byteorder -- tcplist -n returns the IP address in network order instead of host order. PR: 34873 Submitted by: Edwin Groothuis --- sysutils/tcplist/files/patch-utils.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sysutils/tcplist/files/patch-utils.c (limited to 'sysutils/tcplist/files/patch-utils.c') diff --git a/sysutils/tcplist/files/patch-utils.c b/sysutils/tcplist/files/patch-utils.c new file mode 100644 index 000000000000..38e9a609b1c4 --- /dev/null +++ b/sysutils/tcplist/files/patch-utils.c @@ -0,0 +1,11 @@ +--- utils.c.old Tue Feb 12 15:21:57 2002 ++++ utils.c Tue Feb 12 15:21:24 2002 +@@ -259,6 +259,7 @@ + lastfail++; + } + } ++ iaddr=ntohl(iaddr); + sprintf(iaddrbuff, "%u.%u.%u.%u", (iaddr>>24)&0xff, + (iaddr>>16)&0xff, (iaddr>>8)&0xff, + iaddr&0xff); + -- cgit v1.2.3