xref: /dflybsd-src/contrib/libpcap/pcap-airpcap.h (revision e75ef36f1332e115895388cede9dfd24ca1a806c)
1*ea16f64eSAntonio Huete Jimenez /*
2*ea16f64eSAntonio Huete Jimenez  * Copyright (c) 1999 - 2005 NetGroup, Politecnico di Torino (Italy)
3*ea16f64eSAntonio Huete Jimenez  * Copyright (c) 2005 - 2010 CACE Technologies, Davis (California)
4*ea16f64eSAntonio Huete Jimenez  * All rights reserved.
5*ea16f64eSAntonio Huete Jimenez  *
6*ea16f64eSAntonio Huete Jimenez  * Redistribution and use in source and binary forms, with or without
7*ea16f64eSAntonio Huete Jimenez  * modification, are permitted provided that the following conditions
8*ea16f64eSAntonio Huete Jimenez  * are met:
9*ea16f64eSAntonio Huete Jimenez  *
10*ea16f64eSAntonio Huete Jimenez  * 1. Redistributions of source code must retain the above copyright
11*ea16f64eSAntonio Huete Jimenez  * notice, this list of conditions and the following disclaimer.
12*ea16f64eSAntonio Huete Jimenez  * 2. Redistributions in binary form must reproduce the above copyright
13*ea16f64eSAntonio Huete Jimenez  * notice, this list of conditions and the following disclaimer in the
14*ea16f64eSAntonio Huete Jimenez  * documentation and/or other materials provided with the distribution.
15*ea16f64eSAntonio Huete Jimenez  * 3. Neither the name of the Politecnico di Torino, CACE Technologies
16*ea16f64eSAntonio Huete Jimenez  * nor the names of its contributors may be used to endorse or promote
17*ea16f64eSAntonio Huete Jimenez  * products derived from this software without specific prior written
18*ea16f64eSAntonio Huete Jimenez  * permission.
19*ea16f64eSAntonio Huete Jimenez  *
20*ea16f64eSAntonio Huete Jimenez  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21*ea16f64eSAntonio Huete Jimenez  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22*ea16f64eSAntonio Huete Jimenez  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23*ea16f64eSAntonio Huete Jimenez  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24*ea16f64eSAntonio Huete Jimenez  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25*ea16f64eSAntonio Huete Jimenez  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26*ea16f64eSAntonio Huete Jimenez  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27*ea16f64eSAntonio Huete Jimenez  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28*ea16f64eSAntonio Huete Jimenez  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29*ea16f64eSAntonio Huete Jimenez  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30*ea16f64eSAntonio Huete Jimenez  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31*ea16f64eSAntonio Huete Jimenez  *
32*ea16f64eSAntonio Huete Jimenez  */
33*ea16f64eSAntonio Huete Jimenez 
34*ea16f64eSAntonio Huete Jimenez pcap_t *airpcap_create(const char *, char *, int *);
35*ea16f64eSAntonio Huete Jimenez int airpcap_findalldevs(pcap_if_list_t *devlistp, char *errbuf);
36*ea16f64eSAntonio Huete Jimenez int device_is_airpcap(const char *device, char *ebuf);
37