From ecc7edf0f98851235622f6fd9be25d6122799fec Mon Sep 17 00:00:00 2001 From: pat Date: Mon, 18 Feb 2002 18:01:59 +0000 Subject: Fix a problem where the transmit and receive arrows do not flash. PR: 35030 Submitted by: Richard Glidden Approved by: maintainer --- net/wmnet2/Makefile | 2 +- net/wmnet2/files/patch-aa | 76 ++++++++++++++++++++++------------------------- 2 files changed, 37 insertions(+), 41 deletions(-) (limited to 'net/wmnet2') diff --git a/net/wmnet2/Makefile b/net/wmnet2/Makefile index cfe28b7df718..fc0964e638b7 100644 --- a/net/wmnet2/Makefile +++ b/net/wmnet2/Makefile @@ -7,7 +7,7 @@ PORTNAME= wmnet2 PORTVERSION= 1.06 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net MASTER_SITES= http://www.digitalkaos.net/linux/wmnet/download/ DISTNAME= wmnet-${PORTVERSION} diff --git a/net/wmnet2/files/patch-aa b/net/wmnet2/files/patch-aa index c09100b8bfa9..ac87895a0dc2 100644 --- a/net/wmnet2/files/patch-aa +++ b/net/wmnet2/files/patch-aa @@ -1,41 +1,37 @@ -*** drivers.c.orig Fri Sep 7 16:39:23 2001 ---- drivers.c Fri Jun 29 23:21:52 2001 -*************** -*** 15,20 **** ---- 15,21 ---- - #include - #include - #include -+ #include - #include - #include - #include -*************** -*** 24,29 **** ---- 25,32 ---- - /* For FreeBSD */ - #ifdef USE_KVM - #include -+ #include -+ #include - #include - #include - -*************** -*** 490,496 **** - #ifdef __OpenBSD__ - ifnet_addr = (unsigned long)ifnet->if_list.tqe_next; - #else -! ifnet_addr = (unsigned long)ifnet->if_next; - #endif - } - } ---- 493,500 ---- - #ifdef __OpenBSD__ - ifnet_addr = (unsigned long)ifnet->if_list.tqe_next; - #else -! //ifnet_addr = (unsigned long)ifnet->if_next; -! ifnet_addr = (unsigned long) TAILQ_NEXT(ifnet,if_link); - #endif - } +--- drivers.c.orig Thu May 4 20:34:29 2000 ++++ drivers.c Mon Feb 18 12:54:45 2002 +@@ -15,6 +15,7 @@ + #include + #include + #include ++#include + #include + #include + #include +@@ -24,6 +25,8 @@ + /* For FreeBSD */ + #ifdef USE_KVM + #include ++#include ++#include + #include + #include + +@@ -455,6 +458,8 @@ + unsigned long ifnet_addr = ifnet_savedaddr; + char devname[16]; + int flag = 0; ++ rx = False; ++ tx = False; + while (ifnet_addr && flag != (ACCOUNT_IN_FOUND|ACCOUNT_OUT_FOUND)) { + kvm_read(kvmfd, ifnet_addr, buffer, sizeof(struct ifnet)); + #ifdef __OpenBSD__ +@@ -490,7 +495,7 @@ + #ifdef __OpenBSD__ + ifnet_addr = (unsigned long)ifnet->if_list.tqe_next; + #else +- ifnet_addr = (unsigned long)ifnet->if_next; ++ ifnet_addr = (unsigned long) TAILQ_NEXT(ifnet,if_link); + #endif } + } -- cgit