summaryrefslogtreecommitdiff
path: root/sys/dev/ic/anvar.h
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2004-08-05 07:58:56 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2004-08-05 07:58:56 +0000
commitd4e57dc418d617aa5438a67b3627414f3a35d85a (patch)
treeff1b7d3baa3334abe0e4f290acfb0e122b908018 /sys/dev/ic/anvar.h
parenta3d4852076ab35c1185b17cbb899a5861f6d90d9 (diff)
allocate a cluster on rx after all possible failures had been checked for; repair sigcache misalignment
Diffstat (limited to 'sys/dev/ic/anvar.h')
-rw-r--r--sys/dev/ic/anvar.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/sys/dev/ic/anvar.h b/sys/dev/ic/anvar.h
index b239574d4c8..d5de20c0622 100644
--- a/sys/dev/ic/anvar.h
+++ b/sys/dev/ic/anvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: anvar.h,v 1.15 2003/10/21 18:58:48 jmc Exp $ */
+/* $OpenBSD: anvar.h,v 1.16 2004/08/05 07:58:55 mickey Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -149,14 +149,12 @@ struct an_mgmt_hdr {
*
* Each entry in the wi_sigcache has a unique macsrc.
*/
-#define MAXANCACHE 10
+#define MAXANCACHE 16
struct an_sigcache {
- char macsrc[6]; /* unique MAC address for entry */
- int ipsrc; /* ip address associated with packet */
- int signal; /* signal strength of the packet */
- int noise; /* noise value */
- int quality; /* quality of the packet */
+ u_int8_t macsrc[6]; /* unique MAC address for entry */
+ u_int16_t signal; /* quality of the packet */
+ u_int32_t ipsrc; /* ip address associated with packet */
};
struct an_ltv_key {
@@ -639,6 +637,7 @@ struct an_tx_ring_data {
struct an_softc {
struct device sc_dev;
+ int noise; /* noise value */
struct arpcom sc_arpcom;
struct ifmedia an_ifmedia;
void *sc_ih;