ae6d19b4fb
Based on app-trace component, it's able to send sniffer packets to host via JTAG interface.
41 lines
985 B
C
41 lines
985 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();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|