fix byteorder -- tcplist -n returns the IP address in network order
instead of host order. PR: 34873 Submitted by: Edwin Groothuis <edwin@mavetju.org>
This commit is contained in:
parent
4c2d970b9a
commit
4ea01ba363
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=54614
2 changed files with 13 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
11
sysutils/tcplist/files/patch-utils.c
Normal file
11
sysutils/tcplist/files/patch-utils.c
Normal file
|
@ -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);
|
||||
|
Loading…
Reference in a new issue