From 6723999b5e78060c31dc57ed4d38b6e1805d55d6 Mon Sep 17 00:00:00 2001 From: Joerg Koenig Date: Thu, 1 Jun 2017 15:53:37 +0200 Subject: Initial added libpcap/winpcap Change-Id: I51ecb3ccaac6ee08f2f9bbb2e118b0aa9e4e52ea --- Makefile | 56 ++++++++++++ README.txt | 9 ++ SOURCES/Makefile | 15 ++++ SOURCES/WinPcap_4_1_3.exe | Bin 0 -> 915128 bytes SOURCES/WpcapSrc_4_1_3.zip | Bin 0 -> 3834716 bytes SOURCES/WpdPack_4_1_2.zip | Bin 0 -> 775788 bytes license.txt | 208 +++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 288 insertions(+) create mode 100644 Makefile create mode 100644 README.txt create mode 100644 SOURCES/Makefile create mode 100644 SOURCES/WinPcap_4_1_3.exe create mode 100644 SOURCES/WpcapSrc_4_1_3.zip create mode 100644 SOURCES/WpdPack_4_1_2.zip create mode 100644 license.txt diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7995883 --- /dev/null +++ b/Makefile @@ -0,0 +1,56 @@ +TOP = $(shell readlink -f .) + +CC = gcc +ARCH = x86-linux64 + +ifeq ($(ARCH),x86-linux32) +CFLAGS = -m32 +endif + +INSTALLDIR = $(TOP)/inst.$(ARCH) + +all: sources build pack + +sources: + cd $(TOP)/SOURCES && make + +build: + rm -Rf $(TOP)/build.$(ARCH) && mkdir $(TOP)/build.$(ARCH) +ifneq (,$(findstring x86-mingw,$(ARCH))) + cd $(TOP)/build.$(ARCH) && \ + unzip $(TOP)/SOURCES/WpdPack_4_1_2.zip + mkdir -p $(INSTALLDIR)/include + mkdir -p $(INSTALLDIR)/lib + cp -rf $(TOP)/build.$(ARCH)/WpdPack/Include/* $(INSTALLDIR)/include/ +ifeq ($(ARCH),x86-mingw32) + cp -f $(TOP)/build.$(ARCH)/WpdPack/Lib/*.a $(INSTALLDIR)/lib/ + cp -f $(TOP)/build.$(ARCH)/WpdPack/Lib/*.lib $(INSTALLDIR)/lib/ +else + cp -f $(TOP)/build.$(ARCH)/WpdPack/Lib/*.a $(INSTALLDIR)/lib/ + cp -f $(TOP)/build.$(ARCH)/WpdPack/Lib/x64/*.lib $(INSTALLDIR)/lib/ +endif +else + cd $(TOP)/build.$(ARCH) && \ + unzip $(TOP)/SOURCES/WpcapSrc_4_1_3.zip + cd $(TOP)/build.$(ARCH)/winpcap/wpcap/libpcap && \ + mkdir -p $(INSTALLDIR)/bin && \ + chmod a+x ./configure && \ + CC=$(CC) CFLAGS=$(CFLAGS) \ + ./configure --prefix=$(INSTALLDIR) && \ + make && make install +endif + +pack: + cd $(INSTALLDIR) && \ + tar -zcvf $(TOP)/libpcap-$(ARCH).tgz . + +clean: + find $(INSTALLDIR) -name "pcap*" | xargs rm -Rf + find $(INSTALLDIR) -type f -name "libpcap*" | xargs rm -f + rm -Rf build.$(ARCH) + +fullclean: + rm -Rf $(TOP)/inst.* + rm -Rf $(TOP)/build.* + rm -f $(TOP)/*.tgz + diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..2305b2f --- /dev/null +++ b/README.txt @@ -0,0 +1,9 @@ +WinPcap Library +=============== + +winpcap 4.1.3 + +based on: +libpcap 1.0.0 + + diff --git a/SOURCES/Makefile b/SOURCES/Makefile new file mode 100644 index 0000000..dfdb1b8 --- /dev/null +++ b/SOURCES/Makefile @@ -0,0 +1,15 @@ +CWD = $(shell readlink -f .) + +SOURCES = \ + $(PWD)/WpdPack_4_1_2.zip \ + $(PWD)/WinPcap_4_1_3.exe \ + $(PWD)/WpcapSrc_4_1_3.zip + +all: $(SOURCES) + +$(PWD)/WinPcap_4_1_3.exe: + wget -c https://www.winpcap.org/install/bin/WinPcap_4_1_3.exe +$(PWD)/WpcapSrc_4_1_3.zip: + wget -c https://www.winpcap.org/install/bin/WpcapSrc_4_1_3.zip +$(PWD)/WpdPack_4_1_2.zip: + wget -c https://www.winpcap.org/install/bin/WpdPack_4_1_2.zip diff --git a/SOURCES/WinPcap_4_1_3.exe b/SOURCES/WinPcap_4_1_3.exe new file mode 100644 index 0000000..a7f353e Binary files /dev/null and b/SOURCES/WinPcap_4_1_3.exe differ diff --git a/SOURCES/WpcapSrc_4_1_3.zip b/SOURCES/WpcapSrc_4_1_3.zip new file mode 100644 index 0000000..8271f46 Binary files /dev/null and b/SOURCES/WpcapSrc_4_1_3.zip differ diff --git a/SOURCES/WpdPack_4_1_2.zip b/SOURCES/WpdPack_4_1_2.zip new file mode 100644 index 0000000..3bbdcd9 Binary files /dev/null and b/SOURCES/WpdPack_4_1_2.zip differ diff --git a/license.txt b/license.txt new file mode 100644 index 0000000..64a5038 --- /dev/null +++ b/license.txt @@ -0,0 +1,208 @@ +Copyright (c) 1999 - 2005 NetGroup, Politecnico di Torino (Italy). +Copyright (c) 2005 - 2010 CACE Technologies, Davis (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. Neither the name of the Politecnico di Torino, CACE Technologies nor the +names of its contributors may be used to endorse or promote products derived +from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 COPYRIGHT OWNER 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. + +This product includes software developed by the University of California, +Lawrence Berkeley Laboratory and its contributors. +This product includes software developed by the Kungliga Tekniska Högskolan +and its contributors. +This product includes software developed by Yen Yen Lim and North Dakota State +University. + + + +Portions Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 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 University of California, Berkeley and its contributors." +4. Neither the name of the University nor the names of its contributors may be +used to endorse or promote products derived from this software without specific +prior written permission. +THIS SOFTWARE IS PROVIDED BY THE INSTITUTE 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. +Portions Copyright (c) 1983 Regents of the University of California. All rights +reserved. + +Redistribution and use in source and binary forms are permitted provided that +the above copyright notice and this paragraph are duplicated in all such forms +and that any documentation, advertising materials, and other materials related +to such distribution and use acknowledge that the software was developed by the +University of California, Berkeley. The name of the University may not be used +to endorse or promote products derived from this software without specific +prior written permission. THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED +WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. +Portions Copyright (c) 1995, 1996, 1997 Kungliga Tekniska Högskolan (Royal +Institute of Technology, Stockholm, Sweden). 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 Kungliga Tekniska Högskolan and its contributors." +4. Neither the name of the University nor the names of its contributors may be +used to endorse or promote products derived from this software without specific +prior written permission. +THIS SOFTWARE IS PROVIDED BY THE INSTITUTE 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 INSTITUTE 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. +Portions Copyright (c) 1997 Yen Yen Lim and North Dakota State University. 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 Yen Yen Lim and North Dakota State University" +4. The name of the author may not be used to endorse or promote products +derived from this software without specific prior written permission. +THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. +Portions Copyright (c) 1993 by Digital Equipment Corporation. + +Permission to use, copy, modify, and distribute this software for any purpose +with or without fee is hereby granted, provided that the above copyright notice +and this permission notice appear in all copies, and that the name of Digital +Equipment Corporation not be used in advertising or publicity pertaining to +distribution of the document or software without specific, written prior +permission. +THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL +WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL DIGITAL EQUIPMENT CORPORATION BE +LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY +DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +Portions Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project. 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. Neither the name of the project nor the names of its contributors may be +used to endorse or promote products derived from this software without specific +prior written permission. +THIS SOFTWARE IS PROVIDED BY THE PROJECT 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 PROJECT 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. +Portions Copyright (c) 1996 Juniper Networks, Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that: (1) source code distributions retain +the above copyright notice and this paragraph in its entirety, (2) +distributions including binary code include the above copyright notice and this +paragraph in its entirety in the documentation or other materials provided with +the distribution. The name of Juniper Networks may not be used to endorse or +promote products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +Portions Copyright (c) 2001 Daniel Hartmeier All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: +- Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. +- 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. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTOR "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 COPYRIGHT HOLDERS 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. +Portions Copyright 1989 by Carnegie Mellon. + +Permission to use, copy, modify, and distribute this program for any purpose +and without fee is hereby granted, provided that this copyright and permission +notice appear on all copies and supporting documentation, the name of Carnegie +Mellon not be used in advertising or publicity pertaining to distribution of +the program without specific prior permission, and notice be given in +supporting documentation that copying and distribution is by permission of +Carnegie Mellon and Stanford University. Carnegie Mellon makes no +representations about the suitability of this software for any purpose. It is +provided "as is" without express or implied warranty. -- cgit v0.12