diff options
author | fjoe <fjoe@FreeBSD.org> | 2004-03-16 22:29:26 +0000 |
---|---|---|
committer | fjoe <fjoe@FreeBSD.org> | 2004-03-16 22:29:26 +0000 |
commit | 7d2d6deecf36ab78dace21a1160668a957723bb8 (patch) | |
tree | cd23432ac3c0466312aa1487bc5aefb6a3867b4c /sys/dev/arl/if_arlreg.h | |
parent | 8a75d9d9aa221d8d196e66e8c64407e595f15722 (diff) | |
download | FreeBSD-src-7d2d6deecf36ab78dace21a1160668a957723bb8.zip FreeBSD-src-7d2d6deecf36ab78dace21a1160668a957723bb8.tar.gz |
Implement "arlconfig arlX quality".
Man pages fixes.
Submitted by: Stanislav A. Svirid <count@riss-telecom.ru>
Diffstat (limited to 'sys/dev/arl/if_arlreg.h')
-rw-r--r-- | sys/dev/arl/if_arlreg.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/sys/dev/arl/if_arlreg.h b/sys/dev/arl/if_arlreg.h index 6c057aa..368dc55 100644 --- a/sys/dev/arl/if_arlreg.h +++ b/sys/dev/arl/if_arlreg.h @@ -1,5 +1,5 @@ /* - * $RISS: if_arl/dev/arl/if_arlreg.h,v 1.2 2004/01/22 09:18:13 count Exp $ + * $RISS: if_arl/dev/arl/if_arlreg.h,v 1.4 2004/03/16 04:43:27 count Exp $ * $FreeBSD$ */ @@ -230,13 +230,17 @@ struct arl_req { struct arl_cfg_param cfg; }; -#define ARLAN_MAX_QUALITY 16 +#ifdef ARLCACHE +#define MAXARLCACHE 16 +#define ARLCACHE_RX 0 +#define ARLCACHE_TX 1 -struct arl_quality { - u_int8_t macsrc[6]; - int rx_quality; - int tx_quality; +struct arl_sigcache { + u_int8_t macsrc[6]; /* unique MAC address for entry */ + u_int8_t level[2]; + u_int8_t quality[2]; }; +#endif #define ARLAN_SET_name 0x0001 #define ARLAN_SET_sid 0x0002 @@ -270,8 +274,10 @@ struct arl_softc { int tx_len; u_char arl_rx[2048]; int rx_len; - - struct arl_quality quality[ARLAN_MAX_QUALITY]; + +#ifdef ARLCACHE + struct arl_sigcache arl_sigcache[MAXARLCACHE]; +#endif }; #endif @@ -280,7 +286,6 @@ struct arl_softc { #define ar sc->arl_mem #define arcfg sc->arl_cfg -#define aqual sc->quality #define ARDELAY 10000 #define ARDELAY1 50000 |