diff options
author | obrien <obrien@FreeBSD.org> | 2002-02-12 23:31:41 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-02-12 23:31:41 +0800 |
commit | 346caae64a1be5b88a39dcadfa34c1f2cbf89097 (patch) | |
tree | 4287e6b709df9e5893b73a3671dd3736f1fd2bf8 /sysutils | |
parent | 456e1ebb1dafe84464eef87232fad4988e0b0b96 (diff) | |
download | freebsd-ports-graphics-346caae64a1be5b88a39dcadfa34c1f2cbf89097.tar.gz freebsd-ports-graphics-346caae64a1be5b88a39dcadfa34c1f2cbf89097.tar.zst freebsd-ports-graphics-346caae64a1be5b88a39dcadfa34c1f2cbf89097.zip |
fix byteorder -- tcplist -n returns the IP address in network order
instead of host order.
PR: 34873
Submitted by: Edwin Groothuis <edwin@mavetju.org>
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/tcplist/Makefile | 3 | ||||
-rw-r--r-- | sysutils/tcplist/files/patch-utils.c | 11 |
2 files changed, 13 insertions, 1 deletions
diff --git a/sysutils/tcplist/Makefile b/sysutils/tcplist/Makefile index 52e3055a02e..3fbb54781fc 100644 --- a/sysutils/tcplist/Makefile +++ b/sysutils/tcplist/Makefile @@ -8,11 +8,12 @@ PORTNAME= tcplist PORTVERSION= 2.2 +PORTREVISION= 1 CATEGORIES= sysutils net MASTER_SITES= ftp://ftp.cdf.toronto.edu/pub/jdd/tcplist/ EXTRACT_SUFX= .shar -MAINTAINER= obrien@NUXI.com +MAINTAINER= ports@FreeBSD.org RUN_DEPENDS= ${LOCALBASE}/sbin/lsof:${PORTSDIR}/sysutils/lsof diff --git a/sysutils/tcplist/files/patch-utils.c b/sysutils/tcplist/files/patch-utils.c new file mode 100644 index 00000000000..38e9a609b1c --- /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); + |