1 /* SPDX-License-Identifier: GPL-2.0 */
8 * pcap_init() - Initialize PCAP memory buffer
10 * @paddr physicaly memory address to store buffer
11 * @size maximum size of capture file in memory
13 * Return: 0 on success, -ERROR on error
15 int pcap_init(phys_addr_t paddr, unsigned long size);
18 * pcap_start_stop() - start / stop pcap capture
20 * @start if true, start capture if false stop capture
22 * Return: 0 on success, -ERROR on error
24 int pcap_start_stop(bool start);
27 * pcap_clear() - clear pcap capture buffer and statistics
29 * Return: 0 on success, -ERROR on error
34 * pcap_print_status() - print status of pcap capture
36 * Return: 0 on success, -ERROR on error
38 int pcap_print_status(void);
41 * pcap_active() - check if pcap is enabled
43 * Return: TRUE if active, FALSE if not.
45 bool pcap_active(void);
48 * pcap_post() - Post a packet to PCAP file
50 * @packet: packet to post
51 * @len: packet length in bytes
52 * @outgoing packet direction (outgoing/incoming)
53 * Return: 0 on success, -ERROR on error
55 int pcap_post(const void *packet, size_t len, bool outgoing);