1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00

fix net/tcpview: Chase AF_{NS/NETBIOS} (bento)

PR:		52124
Submitted by:	Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
This commit is contained in:
Daichi GOTO 2003-07-23 05:37:49 +00:00
parent 04dc2f0e84
commit 54c1e4fa8b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=85413
2 changed files with 20 additions and 4 deletions

View File

@ -22,10 +22,6 @@ MAN1= tcpview.1
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 500113
BROKEN= "Does not compile"
.endif
post-patch:
.for f in nametoaddr.c addrtoname.c print-nfs.c detail-tcp.c tv_addrtoname.c
@${REINPLACE_CMD} -e 's/NTOHL/ntohl/ ; s/NTOHS/ntohs/' ${WRKSRC}/${f}

View File

@ -0,0 +1,20 @@
--- print-null.c.orig Mon May 12 17:35:00 2003
+++ print-null.c Mon May 12 17:36:30 2003
@@ -76,9 +76,17 @@
printf("ip: ");
break;
+#ifdef AF_NS
case AF_NS:
printf("ns: ");
break;
+#endif /* AF_NS */
+#ifdef AF_NETBIOS
+ case AF_NETBIOS:
+ printf("netbios: ");
+ break;
+#endif /* AF_NETBIOS */
+
default:
printf("AF %d: ", family);