Date: Tue, 12 Feb 2002 15:35:55 +1100 (EST) From: Edwin Groothuis <edwin@mavetju.org> To: FreeBSD-gnats-submit@freebsd.org Cc: obrien@freebsd.org, digital@blackroses.com Subject: ports/34873: [patch] sysutils/tcplist: fix byteorder Message-ID: <20020212043555.6BAE556B@k7.mavetju.org>
next in thread | raw e-mail | index | archive | help
>Number: 34873 >Category: ports >Synopsis: [patch] sysutils/tcplist: fix byteorder >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Feb 12 01:50:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Edwin Groothuis >Release: FreeBSD 4.5-RELEASE i386 >Organization: - >Environment: System: FreeBSD k7.mavetju.org 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Fri Feb 1 09:51:30 EST 2002 edwin@k7.mavetju.org:/usr/src/sys/compile/k7 i386 $FreeBSD: ports/sysutils/tcplist/Makefile,v 1.13 2000/11/14 00:29:15 asami Exp $ >Description: As described by <digital@blackroses.com>, tcplist -n returns the IP address in network order instead of host order. >How-To-Repeat: tcplist -n and see: edwin@localhost:6670 ?@1.0.0.127:iad3 edwin@localhost:iad3 ?@1.0.0.127:6670 >Fix: Add the file files/patch-utils.c --- Makefile.old Tue Feb 12 15:29:24 2002 +++ Makefile Tue Feb 12 15:30:03 2002 @@ -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= obrien@FreeBSD.org RUN_DEPENDS= ${LOCALBASE}/sbin/lsof:${PORTSDIR}/sysutils/lsof patch-utils.c: --- 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); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020212043555.6BAE556B>