📄 smoid2.h
字号:
/* * src/smoid2.h * * Copyright (C) 2003 Conexant Americas Inc. All Rights Reserved. * Copyright (C) 2004, 2005, 2006 Nokia Corporation * Author: Samuel Ortiz <samuel.ortiz@nokia.com> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * */#ifndef __SMOID2_H__#define __SMOID2_H__/* WARNING WARNING: This header file is automatically generated. Changes made to this will be discarded when the file is generated from its source! *//* MIB API *//* Generic objects *//* Device objects The device objects contain objects that configure the device's properties example the MAC address, LED modes), reflect the device's state (for link state) and UMAC version information, and configure generic UMAC properties. */#define HAVE_DATA_MEMBER 1/* UMAC Mode */#define DOT11_MODE_CLIENT 0x00#define DOT11_MODE_AP 0x01#define MODE_PROMISCUOUS 0x02/* Offloadable operations */#define OFFLOAD_WEP_ENCRYPT 0x00000001#define OFFLOAD_WEP_DECRYPT 0x00000002#define OFFLOAD_TKIP_ENCRYPT 0x00000004#define OFFLOAD_TKIP_DECRYPT 0x00000008#define OFFLOAD_MICHAEL_CALC 0x00000010#define OFFLOAD_CCMP_ENCRYPT 0x00000020#define OFFLOAD_CCMP_DECRYPT 0x00000040/* Debug Levels */#define DEBUG_LEVEL_NONE 0x00#define DEBUG_LEVEL_FATAL 0x01#define DEBUG_LEVEL_ERROR 0x02#define DEBUG_LEVEL_WARNING 0x04#define DEBUG_LEVEL_INFO 0x08#define DEBUG_LEVEL_DEBUG 0x10#define DEBUG_LEVEL_ENTRY 0x20#define DEBUG_LEVEL_EXIT 0x40#define DEBUG_LEVEL_STATE 0x80#define DEBUG_LEVEL_ALL 0xfftypedef struct obj_interfaceid{ uint16_t role; uint16_t if_id; uint16_t variant;} obj_interfaceid;typedef struct obj_debug{ uint8_t package; uint8_t level;} obj_debug;/* Device */#define GEN_OID_MACADDRESS 0x00000000#define GEN_OID_LINKSTATE 0x00000001#define GEN_OID_LEDCONFIG 0x00000005#define GEN_OID_MODE 0x00000006#define GEN_OID_COMPONENT_NR 0x00000007#define GEN_OID_VERSION 0x00000008#define GEN_OID_INTERFACE_ID 0x00000009#define GEN_OID_COMPONENT_ID 0x0000000a#define GEN_OID_HIBERNATE 0x0000000b#define GEN_OID_FAA 0x0000000c#define GEN_OID_COMMIT 0x0000000d#define GEN_OID_OFFLOAD 0x0000000e#define GEN_OID_EFFECTIVETHROUGHPUT 0x0000000f#define GEN_OID_DIRECTLINKSTATE 0x0000000f#define GEN_OID_RESET 0x00000010#define GEN_OID_INTRABSSRELAY 0x00000011#define GEN_OID_DEBUG 0x00000012/* Statistics objects The Statistics objects contain statistics of the device's behavior on MSDU MPDU level statistics are available from implementation specific group, for example the 802.11 MPDU statistics group. *//* Statistics */#define GEN_OID_MSDUTXSUCCESSFUL 0x01000000#define GEN_OID_MSDUTXMULTICAST 0x01000001#define GEN_OID_MSDUTXDROPPED 0x01000002#define GEN_OID_MSDUTXFAILED 0x01000003#define GEN_OID_MSDURXSUCCESSFUL 0x01000004#define GEN_OID_MSDURXMULTICAST 0x01000005#define GEN_OID_MSDURXDROPPED 0x01000006#define GEN_OID_MSDURXFAILED 0x01000007/* Miscellaneous objects *//* Tunnel operations */#define TUNNEL_OGET 0#define TUNNEL_OSET 1#define TUNNEL_ORESPONSE 2#define TUNNEL_OERROR 3#define TUNNEL_OTRAP 4/* Tunnel Operations */#define TUNNEL_FRAW 0x01#define TUNNEL_FLE 0x02typedef struct obj_tunnel{ uint8_t version; uint8_t operation; uint8_t oid[4]; uint8_t device_id; uint8_t flags; uint32_t length;} obj_tunnel;/* Miscellaneous */#define GEN_OID_TUNNEL 0x02000000/* 802.11 objects *//* Service Set objects The Service Set objects configure the Basic Service Set properties like of BSS, Service Set Identifier, etc... These objects determine the BSS's when setting up a BSS or which BSS to join. *//* BSS Types */#define DOT11_BSSTYPE_NONE 0#define DOT11_BSSTYPE_INFRA 1#define DOT11_BSSTYPE_IBSS 2#define DOT11_BSSTYPE_ANY 3/* States */#define DOT11_STATE_NONE 0#define DOT11_STATE_AUTHING 1#define DOT11_STATE_AUTH 2#define DOT11_STATE_ASSOCING 3#define DOT11_STATE_ASSOC 5#define DOT11_STATE_IBSS 6#define DOT11_STATE_WDS 7#define DOT11_STATE_DL 8#define DOT11_STATE_MCDL 9/* SSID Offsets */#define DOT11_SSID_LENGTH 0#define DOT11_SSID_STRING 1/* VSS control bitmasks */#define DOT11_VSS_MERGE 0x00000001#define DOT11_VSS_ANNOUNCE 0x00000002typedef struct obj_ssid{ uint8_t length; uint8_t octets[33]; uint8_t pad[2];} obj_ssid;typedef struct obj_wpa{ uint16_t unicast; uint16_t multicast; uint16_t authtype; uint16_t capabilities;} obj_wpa;typedef struct obj_serviceset{ uint8_t bssid[6]; uint16_t ext; obj_ssid ssid; uint32_t policies; uint16_t authenable; uint8_t privinvoked; uint8_t exunencrypted; obj_wpa wpa; obj_wpa rsn; uint16_t exclusive; uint16_t total; uint16_t associated; uint16_t pad1; uint32_t mc_msdu_tx; uint32_t mc_msdu_rx; uint64_t mc_octets_tx; uint64_t mc_octets_rx;} obj_serviceset;/* Service Set */#define DOT11_OID_BSSTYPE 0x10000000#define DOT11_OID_BSSID 0x10000001#define DOT11_OID_SSID 0x10000002#define DOT11_OID_STATE 0x10000003#define DOT11_OID_AID 0x10000004#define DOT11_OID_SSIDOVERRIDE 0x10000006#define DOT11_OID_SERVICESET0 0x10000008#define DOT11_OID_VSSCONTROL 0x10000109/* Superframe objects The Superframe objects manage the superframe structure properties of the The superframe is the structure of the period of time between two or more Prominant properties are the beacon period and DTIM period. The superframe determine (amongst others) the frequency of broadcast delivery and power efficiency of clients. */typedef struct obj_sequential{ uint16_t frequency; uint8_t ssid[34]; uint16_t timeslice; uint16_t mcast_window;} obj_sequential;/* Superframe */#define DOT11_OID_BEACONPERIOD 0x11000001#define DOT11_OID_DTIMPERIOD 0x11000002#define DOT11_OID_ATIMWINDOW 0x11000003#define DOT11_OID_LISTENINTERVAL 0x11000004#define DOT11_OID_SEQUENTIALBSS 0x11000007/* Security objects The Security objects configure the authentication and privacy aspects of BSS. Note that security mechanisms like WPA and CCX rely on external that handle the high-layer aspects of the security mechanism. *//* Authentication Enable */#define DOT11_AUTH_NONE 0x0000#define DOT11_AUTH_OS 0x0001#define DOT11_AUTH_SK 0x0002#define DOT11_AUTH_BOTH 0x0003/* Authentication Algorithm */#define DOT11_AUTHALG_NONE 0#define DOT11_AUTHALG_OS 1#define DOT11_AUTHALG_SK 2#define DOT11_AUTHALG_LEAP 3#define DOT11_AUTHALG_WPA 4#define DOT11_AUTHALG_WPAPSK 5#define DOT11_AUTHALG_WPANONE 6#define DOT11_AUTHALG_CCKM 7#define DOT11_AUTHALG_WPA2 8#define DOT11_AUTHALG_WPA2PSK 9/* 802.11 Authentication Algorithm Number */#define DOT11_AUTHALGNR_OS 0x00#define DOT11_AUTHALGNR_SK 0x01#define DOT11_AUTHALGNR_LEAP 0x80/* Privacy Invoked */#define DOT11_PRIV_INV_NONE 0#define DOT11_PRIV_INV_WEP 1#define DOT11_PRIV_INV_WEP40 1#define DOT11_PRIV_INV_TKIP 2#define DOT11_PRIV_INV_AES_CCMP 3#define DOT11_PRIV_INV_WEP128 4#define DOT11_PRIV_INV_ENABLE 1/* Privacy Key Type */#define DOT11_PRIV_WEP 0#define DOT11_PRIV_TKIP 1#define DOT11_PRIV_CCX_KP 2#define DOT11_PRIV_CCX_KP_MIC 3#define DOT11_PRIV_CCX_MIC 4#define DOT11_PRIV_AES_CCMP 5#define DOT11_PRIV_KRK 7#define DOT11_PRIV_PMKID 8/* Privacy Types */#define DOT11_PRIVTYPE_WEP 0x00000001#define DOT11_PRIVTYPE_TKIP 0x00000002#define DOT11_PRIVTYPE_AES_CCMP 0x00000020#define DOT11_PRIVTYPE_WEP_104 0x00000040/* WPA Authentication Types */#define DOT11_AUTH_WPA 0x0001#define DOT11_AUTH_WPAPSK 0x0002/* WPA Capabilities */#define DOT11_WPA_CAP_PREAUTH 0x0001typedef struct obj_key{ uint8_t type; uint8_t length; uint8_t key[16]; uint8_t pad[2];} obj_key;typedef struct obj_stakey{ uint8_t address[6]; uint16_t ext; uint16_t keyid; uint8_t type; uint8_t length; uint8_t key[32];} obj_stakey;typedef struct obj_ssmckey{ uint8_t address[6]; uint16_t ext; uint8_t keyid; uint8_t ssnr; uint8_t type; uint8_t length; uint8_t key[32];} obj_ssmckey;typedef struct obj_stasc{ uint8_t address[6]; uint16_t ext; uint8_t keyid; uint8_t tx_sc; uint8_t ssnr; uint8_t pad0; uint32_t sc_high; uint16_t sc_low; uint8_t pad1[2];} obj_stasc;/* Security */#define DOT11_OID_AUTHENABLE 0x12000000#define DOT11_OID_PRIVACYINVOKED 0x12000001#define DOT11_OID_EXUNENCRYPTED 0x12000002#define DOT11_OID_DEFKEYID 0x12000003#define DOT11_OID_DEFKEY1 0x12000004#define DOT11_OID_DEFKEY2 0x12000005#define DOT11_OID_DEFKEY3 0x12000006#define DOT11_OID_DEFKEY4 0x12000007#define DOT11_OID_STAKEY 0x12000008#define DOT11_OID_STASC 0x1200000a#define DOT11_OID_AUTHORDER 0x1200000b#define DOT11_OID_WPA 0x1200000d#define DOT11_OID_RSN 0x1200000e#define DOT11_OID_SSMCKEY 0x1200000f#define DOT11_OID_SSMCSC 0x12000010/* Privacy Statistics objects The Privacy Statistics objects contain privacy related counters. *//* Privacy Statistics */#define DOT11_OID_PRIVTXREJECTED 0x1a000000#define DOT11_OID_PRIVRXPLAIN 0x1a000001#define DOT11_OID_PRIVRXFAILED 0x1a000002#define DOT11_OID_PRIVRXNOKEY 0x1a000003/* MAC Configuration objects The MAC Configuration objects configure the 802.11 MAC frame transmission reception properties. *//* MAC Configuration */#define DOT11_OID_RTSTHRESH 0x13000000#define DOT11_OID_FRAGTHRESH 0x13000001#define DOT11_OID_SHORTRETRIES 0x13000002#define DOT11_OID_LONGRETRIES 0x13000003#define DOT11_OID_MAXTXLIFETIME 0x13000004#define DOT11_OID_MAXRXLIFETIME 0x13000005#define DOT11_OID_AUTHRESPTIMEOUT 0x13000006#define DOT11_OID_ASSOCRESPTIMEOUT 0x13000007/* ALOFt Objects The ALOFt objects configure the Automatic Link Optimization Function's properties. *//* ALOFt array definitions */#define DOT11_ALOFT_RATEMASK 0x00ff#define DOT11_ALOFT_SP 0x1000#define DOT11_ALOFT_CTS 0x2000#define DOT11_ALOFT_RTS 0x4000/* ALOFt */#define DOT11_OID_ALOFT_TABLE 0x1d000000#define DOT11_OID_ALOFT_CTRL_TABLE 0x1d000001#define DOT11_OID_ALOFT_RETREAT 0x1d000002#define DOT11_OID_ALOFT_PROGRESS 0x1d000003#define DOT11_OID_ALOFT_FIXEDRATE 0x1d000004#define DOT11_OID_ALOFT_RSSIGRAPH 0x1d000005#define DOT11_OID_ALOFT_CONFIG 0x1d000006/* QoS Objects The QoS objects configure the Quality of Service properties of the MAC. that these objects are preliminary, pending support by firmware and of the standard. *//* ACK Policies */#define DOT11_ACKPOLICY_ALWAYS 0#define DOT11_ACKPOLICY_NEVER 1#define DOT11_ACKPOLICY_DYNAMIC 2typedef struct obj_vdcf{ uint16_t cwmin; uint16_t cwmax; uint16_t txop; uint16_t aifs;} obj_vdcf;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -