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,41 +1,37 @@
*** 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 **** #include<X11/Xlib.h>
--- 15,21 ---- #include<fcntl.h>
#include<X11/Xlib.h> #include<sys/types.h>
#include<fcntl.h> +#include <sys/time.h>
#include<sys/types.h> #include<sys/stat.h>
+ #include <sys/time.h> #include<sys/socket.h>
#include<sys/stat.h> #include<unistd.h>
#include<sys/socket.h> @@ -24,6 +25,8 @@
#include<unistd.h> /* For FreeBSD */
*************** #ifdef USE_KVM
*** 24,29 **** #include<net/if.h>
--- 25,32 ---- +#include <net/if_var.h>
/* For FreeBSD */ +#include <net/if_types.h>
#ifdef USE_KVM #include<kvm.h>
#include<net/if.h> #include<nlist.h>
+ #include <net/if_var.h>
+ #include <net/if_types.h> @@ -455,6 +458,8 @@
#include<kvm.h> unsigned long ifnet_addr = ifnet_savedaddr;
#include<nlist.h> char devname[16];
int flag = 0;
*************** + rx = False;
*** 490,496 **** + tx = False;
#ifdef __OpenBSD__ while (ifnet_addr && flag != (ACCOUNT_IN_FOUND|ACCOUNT_OUT_FOUND)) {
ifnet_addr = (unsigned long)ifnet->if_list.tqe_next; kvm_read(kvmfd, ifnet_addr, buffer, sizeof(struct ifnet));
#else #ifdef __OpenBSD__
! ifnet_addr = (unsigned long)ifnet->if_next; @@ -490,7 +495,7 @@
#endif #ifdef __OpenBSD__
} ifnet_addr = (unsigned long)ifnet->if_list.tqe_next;
} #else
--- 493,500 ---- - ifnet_addr = (unsigned long)ifnet->if_next;
#ifdef __OpenBSD__ + ifnet_addr = (unsigned long) TAILQ_NEXT(ifnet,if_link);
ifnet_addr = (unsigned long)ifnet->if_list.tqe_next; #endif
#else
! //ifnet_addr = (unsigned long)ifnet->if_next;
! ifnet_addr = (unsigned long) TAILQ_NEXT(ifnet,if_link);
#endif
}
} }
}