kopia lustrzana https://github.com/espressif/esp-idf
42 wiersze
989 B
C
42 wiersze
989 B
C
/* cmd_sniffer example — declarations of command registration functions.
|
|
|
|
This example code is in the Public Domain (or CC0 licensed, at your option.)
|
|
|
|
Unless required by applicable law or agreed to in writing, this
|
|
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
CONDITIONS OF ANY KIND, either express or implied.
|
|
*/
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief Supported Sniffer Interface
|
|
*
|
|
*/
|
|
typedef enum {
|
|
SNIFFER_INTF_WLAN = 0, /*!< WLAN interface */
|
|
} sniffer_intf_t;
|
|
|
|
/**
|
|
* @brief WLAN Sniffer Filter
|
|
*
|
|
*/
|
|
typedef enum {
|
|
SNIFFER_WLAN_FILTER_MGMT = 0, /*!< MGMT */
|
|
SNIFFER_WLAN_FILTER_CTRL, /*!< CTRL */
|
|
SNIFFER_WLAN_FILTER_DATA, /*!< DATA */
|
|
SNIFFER_WLAN_FILTER_MISC, /*!< MISC */
|
|
SNIFFER_WLAN_FILTER_MPDU, /*!< MPDU */
|
|
SNIFFER_WLAN_FILTER_AMPDU, /*!< AMPDU */
|
|
SNIFFER_WLAN_FILTER_MAX
|
|
} sniffer_wlan_filter_t;
|
|
|
|
void register_sniffer(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|