📄 network_protocol802_11instanceobject.h
字号:
/*
Copyright (c) 2008, Intel Corporation.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.
* Neither the name of Intel Corporation nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
OF SUCH DAMAGE.
*/#ifndef _NETWORK_PROTOCOL802_11INSTANCEOBJECT_H#define _NETWORK_PROTOCOL802_11INSTANCEOBJECT_H#include "inc/network/network_LinkProtocolInstanceObject.h"class ServerProtocol802_11InstanceObject;struct SApStruct { IntelMobileProtocol802_11AuthenticationModeEnum byAuthenticationMode; IntelMobileString szSsid; IntelMobileInt iRssi; IntelMobileByte abyBssid[6]; IntelMobileProtocol802_11BandEnum byBand; IntelMobileProtocol802_11OperatingModeEnum byOperatingMode; IntelMobileBool bEncrypted; IntelMobileUInt uiChannel; IntelMobileProtocol802_11EncryptionModeEnum byEncryptionMode;};//CLASSARRAYEXPANSION ( RadioMacAddressClass, IntelMobileByte, "MacAddress", false, false, 5000 );//CLASSARRAYEXPANSION ( RadioMulticastAddressClass, IntelMobileString, "MulticastAddress", false, false, 5000 );// Override from parentCLASSEXPANSION ( Protocol80211_TxPowerClass, IntelMobileUInt, "TxPower", false, false, 5000 );CLASSARRAYEXPANSION ( Protocol80211_DataRatesTxClass, IntelMobileUInt64, "DataRatesTx", false, true, 5000 );CLASSARRAYEXPANSION ( Protocol80211_DataRatesRxClass, IntelMobileUInt64, "DataRatesRx", false, true, 5000 );CLASSEXPANSION ( Protocol80211_DataRateRxClass, IntelMobileUInt64, "DataRateRx", false, false, 5000 );CLASSEXPANSION ( Protocol80211_DataRateTxClass, IntelMobileUInt64, "DataRateTx", false, false, 5000 );// 802_11 specificCLASSEXPANSION ( Protocol80211_AtimWindowClass, IntelMobileUInt, "AtimWindow", false, false, 5000 );CLASSEXPANSION ( Protocol80211_BeaconPeriodClass, IntelMobileUInt, "BeaconPeriod", false, false, 5000 );CLASSARRAYEXPANSION ( Protocol80211_BssidClass, IntelMobileByte, "Bssid", false, false, 5000 ); // Mac onlyCLASSEXPANSION ( Protocol80211_FrequencyClass, IntelMobileUInt, "Frequency", false, false, 5000 );CLASSEXPANSION ( Protocol80211_DwellTimeClass, IntelMobileUInt, "DwellTime", false, false, 5000 );CLASSEXPANSION ( Protocol80211_FailedCountClass, IntelMobileUInt64, "FailedCount", false, false, 5000 );CLASSEXPANSION ( Protocol80211_FcsErrorCountClass, IntelMobileUInt64, "FcsErrorCount", false, false, 5000 );CLASSEXPANSION ( Protocol80211_FrameDuplicateCountClass, IntelMobileUInt64, "FrameDuplicateCount", false, false, 5000 );CLASSEXPANSION ( Protocol80211_HopPatternClass, IntelMobileUInt, "HopPattern", false, false, 5000 );CLASSEXPANSION ( Protocol80211_HopSetClass, IntelMobileUInt, "HopSet", false, false, 5000 );CLASSEXPANSION ( Protocol80211_OperatingModeClass, IntelMobileProtocol802_11OperatingModeEnum, "OperatingMode", false, false, 5000 );CLASSEXPANSION ( Protocol80211_MulticastReceivedFrameCountClass, IntelMobileUInt64, "MulticastReceivedFrameCount", false, false, 5000 );CLASSEXPANSION ( Protocol80211_MulticastTransmittedFrameCountClass, IntelMobileUInt64, "MulticastTransmittedFrameCount", false, false, 5000 );CLASSEXPANSION ( Protocol80211_MultipleRetryCountClass, IntelMobileUInt64, "MultipleRetryCount", false, false, 5000 );CLASSARRAYEXPANSION ( Protocol80211_ModulationTypesClass, IntelMobileProtocol802_11ModulationTypeEnum, "ModulationTypes", false, true, 5000 );CLASSEXPANSION ( Protocol80211_ModulationTypeClass, IntelMobileProtocol802_11ModulationTypeEnum, "ModulationType", false, false, 5000 );CLASSEXPANSION ( Protocol80211_ReceivedFragmentCountClass, IntelMobileUInt64, "ReceivedFragmentCount", false, false, 5000 );CLASSEXPANSION ( Protocol80211_RetryCountClass, IntelMobileUInt64, "RetryCount", false, false, 5000 );CLASSEXPANSION ( Protocol80211_RssiClass, IntelMobileInt, "Rssi", false, false, 5000 );CLASSEXPANSION ( Protocol80211_RtsFailureCountClass, IntelMobileUInt64, "RtsFailureCount", false, false, 5000 );CLASSEXPANSION ( Protocol80211_RtsSuccessCountClass, IntelMobileUInt64, "RtsSuccessCount", false, false, 5000 );CLASSEXPANSION ( Protocol80211_TransmittedFragmentCountClass, IntelMobileUInt64, "TransmittedFragmentCount", false, false, 5000 );CLASSEXPANSION_SET ( Protocol80211_PowerModeClass, IntelMobileProtocol802_11PowerModeEnum, "PowerMode", true, false, 5000 );CLASSEXPANSION_SET ( Protocol80211_SsidClass, IntelMobileString, "Ssid", true, false, 5000 );CLASSEXPANSION_SET ( Protocol80211_RxAntennaIdClass, IntelMobileUInt, "RxAntennaId", true, false, 5000 );CLASSEXPANSION_SET ( Protocol80211_TxAntennaIdClass, IntelMobileUInt, "TxAntennaId", true, false, 5000 );CLASSEXPANSION_SET ( Protocol80211_FragmentationThresholdClass, IntelMobileUInt, "FragmentationThreshold", false, false, 5000 );//======================Extension Properties===========================CLASSEXPANSION ( Protocol80211_ChannelClass, IntelMobileUInt, "Channel", false, false, 5000 );CLASSEXPANSION ( Protocol80211_AuthenticationModeClass, IntelMobileProtocol802_11AuthenticationModeEnum, "AuthenticationMode", false, false, 5000 );CLASSEXPANSION ( Protocol80211_BandClass, IntelMobileProtocol802_11BandEnum, "Band", false, false, 5000 );//CLASSEXPANSION ( Protocol80211_OpModeClass, IntelMobileByte, "OpMode", false, false, 5000 );//CLASSEXPANSION ( Protocol80211_RateClass, IntelMobileUInt64, "Rate", false, false, 5000 );CLASSEXPANSION ( Protocol80211_EncryptionModeClass, IntelMobileProtocol802_11EncryptionModeEnum, "EncryptionMode", false, false, 5000 );CLASSARRAYEXPANSION ( Protocol80211_EncryptionModesClass, IntelMobileProtocol802_11EncryptionModeEnum, "EncryptionModes", false, true, 5000 );//CLASSEXPANSION_SET ( Protocol80211_IBSSTxPowerClass, IntelMobileUInt, "IBSSTxPower", true, false, 5000 );CLASSEXPANSION ( Protocol80211_AssociationStateClass, IntelMobileProtocol802_11AssociationStateEnum, "AssociationState", false, false, 5000 );CLASSARRAYEXPANSION ( Protocol80211_SecurityModesClass, IntelMobileProtocol802_11SecurityModeEnum, "SecurityModes", false, false, 5000 );CLASSEXPANSION ( Protocol80211_QosClass, IntelMobileProtocol802_11QosEnum, "Qos", false, false, 5000 );CLASSEXPANSION ( Protocol80211_DataTxPacketsClass, IntelMobileUInt64, "DataTxPackets", false, false, 5000 );CLASSEXPANSION ( Protocol80211_DataRxPacketsClass, IntelMobileUInt64, "DataRxPackets", false, false, 5000 );CLASSEXPANSION ( Protocol80211_DataTxBytesClass, IntelMobileUInt64, "DataTxBytes", false, false, 5000 );CLASSEXPANSION ( Protocol80211_DataRxBytesClass, IntelMobileUInt64, "DataRxBytes", false, false, 5000 );CLASSEXPANSION ( Protocol80211_LinkQualityClass, IntelMobileLinkProtocolLinkQualityEnum, "LinkQuality", false, false, 5000 );//CLASSEXPANSION_SET ( Protocol80211_ConnectionPreferenceClass, IntelMobileByte, "ConnectionPreference", true, false, 5000 );//CLASSEXPANSION_SET ( Protocol80211_BandPreferenceClass, IntelMobileByte, "BandPreference", true, false, 5000 );//=======================Review Existing....====================================//CLASSEXPANSION ( Protocol80211_WepStateClass, IntelMobileByte, "WepState", false, false, 5000 );//CLASSEXPANSION ( Protocol80211_RTSThresholdClass, IntelMobileUInt64, "RTSThreshold", false, false, 5000 );//CLASSEXPANSION ( Protocol80211_NumAntennasClass, IntelMobileUInt64, "NumAntennas", false, false, 5000 );//CLASSEXPANSION ( Protocol80211_ACKFailureCountClass, IntelMobileUInt64, "ACKFailureCount", false, false, 5000 );//CLASSEXPANSION ( Protocol80211_WepUndecryptableCountClass, IntelMobileUInt64, "WepUndecryptableCount", false, false, 5000 );//CLASSEXPANSION ( Protocol80211_DecryptSuccessCountClass, IntelMobileUInt64, "DecryptSuccessCount", false, false, 5000 );//CLASSEXPANSION ( Protocol80211_DecryptFailureCountClass, IntelMobileUInt64, "DecryptFailureCount", false, false, 5000 );//CLASSEXPANSION ( Protocol80211_PrivacyFilterClass, IntelMobileByte, "PrivacyFilter", false, false, 5000 );class ServerProtocol802_11InstanceObject : public ServerLinkProtocolInstanceObject{public: // Server Methods //virtual bool Is80211a() = 0; //virtual bool Is80211b() = 0; //virtual bool Is80211g() = 0; //Extension Methods //virtual bool ResetStatistics() = 0; //virtual std::vector<SApStruct> ScanAps() = 0; virtual bool ResetStatistics() {printf("\n");}; virtual std::vector<SApStruct> ScanAps() {printf("\n");};public: ServerProtocol802_11InstanceObject( const IntelMobileString& szKey, CLog& theLog ); virtual ~ServerProtocol802_11InstanceObject() {} ;public: //RadioMacAddressClass MacAddress; //RadioMulticastAddressClass MulticastAddress; Protocol80211_TxPowerClass TxPower; Protocol80211_DataRatesTxClass DataRatesTx; Protocol80211_DataRatesRxClass DataRatesRx; Protocol80211_DataRateTxClass DataRateTx; Protocol80211_DataRateRxClass DataRateRx; Protocol80211_BssidClass Bssid; // LOOK AT: NDIS_WLAN_BSSID!!! Protocol80211_AtimWindowClass AtimWindow; Protocol80211_BeaconPeriodClass BeaconPeriod; Protocol80211_FrequencyClass Frequency; Protocol80211_DwellTimeClass DwellTime; Protocol80211_HopPatternClass HopPattern; Protocol80211_HopSetClass HopSet; Protocol80211_FailedCountClass FailedCount; Protocol80211_FcsErrorCountClass FcsErrorCount; Protocol80211_FrameDuplicateCountClass FrameDuplicateCount; Protocol80211_MulticastReceivedFrameCountClass MulticastReceivedFrameCount; Protocol80211_MulticastTransmittedFrameCountClass MulticastTransmittedFrameCount; Protocol80211_MultipleRetryCountClass MultipleRetryCount; Protocol80211_ReceivedFragmentCountClass ReceivedFragmentCount; Protocol80211_RetryCountClass RetryCount; Protocol80211_RtsFailureCountClass RtsFailureCount; Protocol80211_RtsSuccessCountClass RtsSuccessCount; Protocol80211_TransmittedFragmentCountClass TransmittedFragmentCount; Protocol80211_OperatingModeClass OperatingMode; Protocol80211_RssiClass Rssi; Protocol80211_ModulationTypesClass ModulationTypes; Protocol80211_ModulationTypeClass ModulationType; // NEW Protocol80211_SsidClass Ssid; Protocol80211_RxAntennaIdClass RxAntennaId; Protocol80211_TxAntennaIdClass TxAntennaId; Protocol80211_PowerModeClass PowerMode; Protocol80211_FragmentationThresholdClass FragmentationThreshold; //Extension Properties Protocol80211_ChannelClass Channel; Protocol80211_AuthenticationModeClass AuthenticationMode; Protocol80211_BandClass Band;// Protocol80211_OpModeClass OpMode; //Protocol80211_RateClass Rate; Protocol80211_EncryptionModeClass EncryptionMode; Protocol80211_EncryptionModesClass EncryptionModes; //Protocol80211_IBSSTxPowerClass IBSSTxPower; Protocol80211_AssociationStateClass AssociationState; Protocol80211_SecurityModesClass SecurityModes; Protocol80211_QosClass Qos; Protocol80211_DataTxPacketsClass DataTxPackets; Protocol80211_DataRxPacketsClass DataRxPackets; Protocol80211_DataTxBytesClass DataTxBytes; Protocol80211_DataRxBytesClass DataRxBytes; Protocol80211_LinkQualityClass LinkQuality; //Protocol80211_ConnectionPreferenceClass ConnectionPreference; //Protocol80211_BandPreferenceClass BandPreference; //Review Existing... //Protocol80211_WepStateClass WepState; //Protocol80211_RTSThresholdClass RTSThreshold; //Protocol80211_NumAntennasClass NumAntennas; //Protocol80211_ACKFailureCountClass ACKFailureCount; //Protocol80211_WepUndecryptableCountClass WepUndecryptableCount; //Protocol80211_DecryptSuccessCountClass DecryptSuccessCount; //Protocol80211_DecryptFailureCountClass DecryptFailureCount; //Protocol80211_PrivacyFilterClass PrivacyFilter;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -