[uboot] create uboot from github:
repo: https://github.com/u-boot/u-boot commit: d80bb749fab53da72c4a0e09b8c2d2aaa3103c91 Change-Id: Ie6434426e1ec15bc08bb1832798e371f3fd5fb29
This commit is contained in:
55
u-boot-2021.10/include/net/pcap.h
Normal file
55
u-boot-2021.10/include/net/pcap.h
Normal file
@ -0,0 +1,55 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/*
|
||||
* Copyright 2019
|
||||
* Ramon Fried <rfried.dev@gmail.com>
|
||||
*/
|
||||
|
||||
/**
|
||||
* pcap_init() - Initialize PCAP memory buffer
|
||||
*
|
||||
* @paddr physicaly memory address to store buffer
|
||||
* @size maximum size of capture file in memory
|
||||
*
|
||||
* @return 0 on success, -ERROR on error
|
||||
*/
|
||||
int pcap_init(phys_addr_t paddr, unsigned long size);
|
||||
|
||||
/**
|
||||
* pcap_start_stop() - start / stop pcap capture
|
||||
*
|
||||
* @start if true, start capture if false stop capture
|
||||
*
|
||||
* @return 0 on success, -ERROR on error
|
||||
*/
|
||||
int pcap_start_stop(bool start);
|
||||
|
||||
/**
|
||||
* pcap_clear() - clear pcap capture buffer and statistics
|
||||
*
|
||||
* @return 0 on success, -ERROR on error
|
||||
*/
|
||||
int pcap_clear(void);
|
||||
|
||||
/**
|
||||
* pcap_print_status() - print status of pcap capture
|
||||
*
|
||||
* @return 0 on success, -ERROR on error
|
||||
*/
|
||||
int pcap_print_status(void);
|
||||
|
||||
/**
|
||||
* pcap_active() - check if pcap is enabled
|
||||
*
|
||||
* @return TRUE if active, FALSE if not.
|
||||
*/
|
||||
bool pcap_active(void);
|
||||
|
||||
/**
|
||||
* pcap_post() - Post a packet to PCAP file
|
||||
*
|
||||
* @packet: packet to post
|
||||
* @len: packet length in bytes
|
||||
* @outgoing packet direction (outgoing/incoming)
|
||||
* @return 0 on success, -ERROR on error
|
||||
*/
|
||||
int pcap_post(const void *packet, size_t len, bool outgoing);
|
||||
Reference in New Issue
Block a user