Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pcmcia Add encryption structure definitions -- it's ...



details:   https://anonhg.NetBSD.org/src/rev/fe6a01a6c49f
branches:  trunk
changeset: 481697:fe6a01a6c49f
user:      explorer <explorer%NetBSD.org@localhost>
date:      Fri Feb 04 02:03:02 2000 +0000

description:
Add encryption structure definitions -- it's interesting tht the gold card
has 128 bit encryption, but the key space is 14 * 8 bits, or 112 bits...
I wonder where the other 16 bits comes from?

diffstat:

 sys/dev/pcmcia/if_wireg.h |  59 +++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 52 insertions(+), 7 deletions(-)

diffs (94 lines):

diff -r 478c3e995bf3 -r fe6a01a6c49f sys/dev/pcmcia/if_wireg.h
--- a/sys/dev/pcmcia/if_wireg.h Fri Feb 04 01:27:12 2000 +0000
+++ b/sys/dev/pcmcia/if_wireg.h Fri Feb 04 02:03:02 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wireg.h,v 1.2 1999/07/15 14:33:51 sommerfeld Exp $  */
+/*     $NetBSD: if_wireg.h,v 1.3 2000/02/04 02:03:02 explorer Exp $    */
 
 /*
  * Copyright (c) 1997, 1998, 1999
@@ -31,7 +31,7 @@
  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  * THE POSSIBILITY OF SUCH DAMAGE.
  *
- *     $Id: if_wireg.h,v 1.2 1999/07/15 14:33:51 sommerfeld Exp $
+ *     $Id: if_wireg.h,v 1.3 2000/02/04 02:03:02 explorer Exp $
  */
 
 /*
@@ -382,11 +382,9 @@
 struct wi_ltv_pcf {
        u_int16_t               wi_len;
        u_int16_t               wi_type;
-       u_int16_t               wi_energy_detect;
-       u_int16_t               wi_carrier_detect;
-       u_int16_t               wi_defer;
-       u_int16_t               wi_cell_search;
-       u_int16_t               wi_range;
+       u_int16_t               wi_medium_occupancy_limit;
+       u_int16_t               wi_cfp_period;
+       u_int16_t               wi_cfp_max_duration;
 };
 
 /*
@@ -453,6 +451,26 @@
 };
 
 /*
+ * Select de/encryption of tx/rx frames.
+ */
+#define WI_RID_ENCRYPTIONSELECT        0xFC20
+struct wi_ltv_encryptionselect {
+       u_int16_t               wi_len;
+       u_int16_t               wi_type;
+       u_int16_t               wi_encryption_enabled;
+};
+
+/*
+ * Select de/encryption of tx/rx frames.
+ */
+#define WI_RID_AUTHSELECT      0xFC21
+struct wi_ltv_authselect {
+       u_int16_t               wi_len;
+       u_int16_t               wi_type;
+       u_int16_t               wi_auth_type;
+};
+
+/*
  * Multicast addresses to be put in filter. We're
  * allowed up to 16 addresses in the filter.
  */
@@ -485,6 +503,33 @@
 #define WI_RID_PROMISC         0xFC85
 
 /*
+ * Set default keys.
+ */
+#define WI_RID_KEYS            0xFCB0
+struct wi_ltv_keys {
+       u_int16_t               wi_len;
+       u_int16_t               wi_type;
+       u_int16_t               wi_keylen_0;
+       u_int8_t                wi_key_0[14];
+       u_int16_t               wi_keylen_1;
+       u_int8_t                wi_key_1[14];
+       u_int16_t               wi_keylen_2;
+       u_int8_t                wi_key_2[14];
+       u_int16_t               wi_keylen_3;
+       u_int8_t                wi_key_3[14];
+};
+
+/*
+ * Select key for tx
+ */
+#define WI_RID_TXKEY           0xFCB1
+struct wi_ltv_txkey {
+       u_int16_t               wi_len;
+       u_int16_t               wi_type;
+       u_int16_t               wi_txkeyid;
+};
+
+/*
  * Auxiliary Timer tick interval
  */
 #define WI_RID_TICK_TIME       0xFCE0



Home | Main Index | Thread Index | Old Index