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