summaryrefslogtreecommitdiff
path: root/pcap-rpcap.h
diff options
context:
space:
mode:
authorCheoleun Moon <chleun.moon@samsung.com>2019-10-17 19:20:32 +0900
committerCheoleun Moon <chleun.moon@samsung.com>2019-10-17 19:22:32 +0900
commit5ba315c303f1b918aecaf290de2428eb0a1116ba (patch)
tree3e7f0fbfafdf260490332e028fb07a8a903b4081 /pcap-rpcap.h
parenta2db57476cfba84fc739ff1c5d907f03c7058257 (diff)
downloadlibpcap-5ba315c303f1b918aecaf290de2428eb0a1116ba.tar.gz
libpcap-5ba315c303f1b918aecaf290de2428eb0a1116ba.tar.bz2
libpcap-5ba315c303f1b918aecaf290de2428eb0a1116ba.zip
Imported Upstream version 1.9.1upstream/1.9.1upstream
Change-Id: I8ccc371679c730299ebe8068ed5af0ae033c4f7d Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
Diffstat (limited to 'pcap-rpcap.h')
-rw-r--r--pcap-rpcap.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/pcap-rpcap.h b/pcap-rpcap.h
new file mode 100644
index 0000000..6ad6d98
--- /dev/null
+++ b/pcap-rpcap.h
@@ -0,0 +1,49 @@
+/*
+ * Copyright (c) 1994, 1995, 1996
+ * The Regents of the University of California. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by the Computer Systems
+ * Engineering Group at Lawrence Berkeley Laboratory.
+ * 4. Neither the name of the University nor of the Laboratory may be used
+ * to endorse or promote products derived from this software without
+ * specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+#ifndef pcap_rpcap_h
+#define pcap_rpcap_h
+
+/*
+ * Internal interfaces for "pcap_open()".
+ */
+pcap_t *pcap_open_rpcap(const char *source, int snaplen, int flags,
+ int read_timeout, struct pcap_rmtauth *auth, char *errbuf);
+
+/*
+ * Internal interfaces for "pcap_findalldevs_ex()".
+ */
+int pcap_findalldevs_ex_remote(const char *source,
+ struct pcap_rmtauth *auth, pcap_if_t **alldevs, char *errbuf);
+
+#endif