xref: /aosp_15_r20/external/libpcap/pcap-dpdk.h (revision 8b26181f966a6af5cf6981a6f474313de533bb28)
1*8b26181fSAndroid Build Coastguard Worker /*
2*8b26181fSAndroid Build Coastguard Worker  * Copyright (C) 2018 jingle YANG. All rights reserved.
3*8b26181fSAndroid Build Coastguard Worker  *
4*8b26181fSAndroid Build Coastguard Worker  * Redistribution and use in source and binary forms, with or without
5*8b26181fSAndroid Build Coastguard Worker  * modification, are permitted provided that the following conditions
6*8b26181fSAndroid Build Coastguard Worker  * are met:
7*8b26181fSAndroid Build Coastguard Worker  *
8*8b26181fSAndroid Build Coastguard Worker  *   1. Redistributions of source code must retain the above copyright
9*8b26181fSAndroid Build Coastguard Worker  *      notice, this list of conditions and the following disclaimer.
10*8b26181fSAndroid Build Coastguard Worker  *   2. Redistributions in binary form must reproduce the above copyright
11*8b26181fSAndroid Build Coastguard Worker  *      notice, this list of conditions and the following disclaimer in the
12*8b26181fSAndroid Build Coastguard Worker  *      documentation and/or other materials provided with the distribution.
13*8b26181fSAndroid Build Coastguard Worker  *
14*8b26181fSAndroid Build Coastguard Worker  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS''AND
15*8b26181fSAndroid Build Coastguard Worker  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16*8b26181fSAndroid Build Coastguard Worker  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17*8b26181fSAndroid Build Coastguard Worker  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18*8b26181fSAndroid Build Coastguard Worker  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19*8b26181fSAndroid Build Coastguard Worker  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20*8b26181fSAndroid Build Coastguard Worker  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21*8b26181fSAndroid Build Coastguard Worker  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22*8b26181fSAndroid Build Coastguard Worker  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23*8b26181fSAndroid Build Coastguard Worker  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24*8b26181fSAndroid Build Coastguard Worker  * SUCH DAMAGE.
25*8b26181fSAndroid Build Coastguard Worker  */
26*8b26181fSAndroid Build Coastguard Worker 
27*8b26181fSAndroid Build Coastguard Worker pcap_t *pcap_dpdk_create(const char *, char *, int *);
28*8b26181fSAndroid Build Coastguard Worker int pcap_dpdk_findalldevs(pcap_if_list_t *devlistp, char *errbuf);
29