Fix a problem where the transmit and receive arrows do not flash.

PR:		35030
Submitted by:	Richard Glidden <richard@glidden.org>
Approved by:	maintainer
This commit is contained in:
Patrick Li 2002-02-18 18:01:59 +00:00
parent 03d9a195d6
commit 83c7734ea2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=54870
2 changed files with 37 additions and 41 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= wmnet2 PORTNAME= wmnet2
PORTVERSION= 1.06 PORTVERSION= 1.06
PORTREVISION= 1 PORTREVISION= 2
CATEGORIES= net CATEGORIES= net
MASTER_SITES= http://www.digitalkaos.net/linux/wmnet/download/ MASTER_SITES= http://www.digitalkaos.net/linux/wmnet/download/
DISTNAME= wmnet-${PORTVERSION} DISTNAME= wmnet-${PORTVERSION}

View file

@ -1,8 +1,6 @@
*** drivers.c.orig Fri Sep 7 16:39:23 2001 --- drivers.c.orig Thu May 4 20:34:29 2000
--- drivers.c Fri Jun 29 23:21:52 2001 +++ drivers.c Mon Feb 18 12:54:45 2002
*************** @@ -15,6 +15,7 @@
*** 15,20 ****
--- 15,21 ----
#include<X11/Xlib.h> #include<X11/Xlib.h>
#include<fcntl.h> #include<fcntl.h>
#include<sys/types.h> #include<sys/types.h>
@ -10,9 +8,7 @@
#include<sys/stat.h> #include<sys/stat.h>
#include<sys/socket.h> #include<sys/socket.h>
#include<unistd.h> #include<unistd.h>
*************** @@ -24,6 +25,8 @@
*** 24,29 ****
--- 25,32 ----
/* For FreeBSD */ /* For FreeBSD */
#ifdef USE_KVM #ifdef USE_KVM
#include<net/if.h> #include<net/if.h>
@ -21,21 +17,21 @@
#include<kvm.h> #include<kvm.h>
#include<nlist.h> #include<nlist.h>
*************** @@ -455,6 +458,8 @@
*** 490,496 **** 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__ #ifdef __OpenBSD__
ifnet_addr = (unsigned long)ifnet->if_list.tqe_next; ifnet_addr = (unsigned long)ifnet->if_list.tqe_next;
#else #else
! ifnet_addr = (unsigned long)ifnet->if_next; - ifnet_addr = (unsigned long)ifnet->if_next;
#endif + ifnet_addr = (unsigned long) TAILQ_NEXT(ifnet,if_link);
}
}
--- 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 #endif
} }
} }