debian/0000755000000000000000000000000011773517030007172 5ustar debian/compat0000644000000000000000000000000211570604774010377 0ustar 7 debian/watch0000644000000000000000000000015411570604774010232 0ustar version=3 opts=dversionmangle=s/~// \ http://www.netsniff-ng.org/pub/netsniff-ng/netsniff-ng-(.*)\.tar\.gz debian/docs0000644000000000000000000000030211773507576010056 0ustar AUTHORS README Documentation/Ashunt Documentation/Bpfc Documentation/Curvetun Documentation/Flowtop Documentation/Ifpps Documentation/Netsniff-ng Documentation/Performance Documentation/Trafgen debian/rules0000755000000000000000000000225711773517024010263 0ustar #!/usr/bin/make -f # # debian/rules for netsniff-ng # by Daniel Borkmann # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: dh_testdir mkdir -p src/build; cd src/build; \ cmake -DCMAKE_INSTALL_PREFIX=/usr ..; \ $(MAKE) DESTDIR=$(CURDIR)/debian/netsniff-ng all touch $@ clean: dh_testdir dh_testroot rm -f build-stamp rm -rf src/build dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs cd src/build; $(MAKE) install DESTDIR=$(CURDIR)/debian/netsniff-ng # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installdocs dh_installexamples dh_installman dh_installchangelogs -k Documentation/RelNotes/Notes-0.5.7 dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-arch binary-indep .PHONY: build build-arch build-indep clean binary-indep binary-arch binary install debian/copyright0000644000000000000000000000266311773507214011137 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: netsniff-ng Upstream-Contact: Daniel Borkmann Source: http://www.netsniff-ng.org/ Files: * Copyright: 2009-2012, Daniel Borkmann 2019-2012, Emmanuel Roullit License: GPL-2 Files: src/proto*.h src/proto*.c Copyright: 2009-2010, Daniel Borkmann 2012, Markus Amend. License: GPL-2 Files: debian/* Copyright: 2009-2012, Daniel Borkmann 2011-2012, Kartik Mistry License: GPL-2 License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/control0000644000000000000000000000305511773515154010605 0ustar Source: netsniff-ng Section: net Priority: optional Build-Depends: bison, cmake, debhelper (>= 7), dpkg-dev (>= 1.16.1~), flex, libcli-dev, libgeoip-dev, libnacl-dev, libncurses5-dev, libnetfilter-conntrack-dev, libnl-dev, liburcu-dev Maintainer: Daniel Borkmann Uploaders: Kartik Mistry Standards-Version: 3.9.3 Homepage: http://www.netsniff-ng.org/ Package: netsniff-ng Architecture: amd64 i386 powerpc sparc Depends: ${misc:Depends}, ${shlibs:Depends} Recommends: ntp Description: packet sniffing beast netsniff-ng is a high performance Linux network sniffer for packet inspection. It can be used for protocol analysis, reverse engineering or network debugging. The gain of performance is reached by 'zero-copy' mechanisms, so that the kernel does not need to copy packets from kernelspace to userspace. . netsniff-ng toolkit currently consists of the following utilities: . * netsniff-ng: the zero-copy sniffer, pcap capturer and replayer itself. * trafgen: a high performance zero-copy network packet generator. * ifpps: a top-like kernel networking and system statistics tool. * curvetun: a lightweight curve25519-based multiuser IP tunnel. * ashunt: an autonomous system trace route and ISP testing utility. * flowtop: a top-like netfilter connection tracking tool. * bpfc: a tiny Berkeley Packet Filter compiler supporting Linux extensions. debian/source/0000755000000000000000000000000011570604774010501 5ustar debian/source/format0000644000000000000000000000001411570604774011707 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000001065211773515473011061 0ustar netsniff-ng (0.5.7-1) unstable; urgency=low * New upstream release * debian/copyright: + License is GPL-2, not GPL-2+ * debian/control: + Added Build-Depends: libcli-dev, libnl-dev for trafgen, netsniff-ng binaries. + Updated maintainer email address. * debian/patches/cflags_notune.patch: + Added patch to fix CFLAGS from upstream. * debian/docs: + Removed THANKS, not provided by upstream now. * debian/rules: + Provides upstream changelogs. -- Kartik Mistry Sat, 30 Jun 2012 11:52:47 +0530 netsniff-ng (0.5.6-2) unstable; urgency=low * debian/control: + Set archs to: i386, amd64, powerpc and sparc only as dependencies are not available or missing on other than these archs. + Added Recommends: ntp. Thanks to Carlos Alberto Lopez Perez . + Build-Depends on libncurses5-dev for missing flowtop and ifpps binaries. * debian/copyright: + Removed duplicate copyright fields. + Added Debian packaging copyright section. * Added hardening support. -- Kartik Mistry Thu, 21 Jun 2012 16:36:41 +0530 netsniff-ng (0.5.6-1) unstable; urgency=low * New upstream release (Closes: #667609) * debian/patches: + 01_manpage_fix.diff: Removed, merge upstream. + nacl_path_fix: Added patch to fix Nacl header and library paths. + manpage_path.patch: Added patch to fix manpage installation path from upstream. * debian/rules: + Upstream moved to CMake. Changes related to it. + Added missing build targets. * debian/control: + Added Build-Deps needed for CMake build system and libs. + Updated Standards-Version to 3.9.3 + Updated long description. * debian/copyright: + Updated to copyright-format 1.0 + Updated copyright for some files. * debian/docs: + Updated as per upstream changes. -- Kartik Mistry Sun, 01 Apr 2012 11:05:41 +0530 netsniff-ng (0.5.5.0-3) unstable; urgency=low * debian/control: + Updated Standards-Version to 3.9.2 + Fixed short description synopsis * debian/copyright: + Updated for DEP-5 format specification * Added patch to fix spelling mistake in manpage -- Kartik Mistry Mon, 30 May 2011 08:49:15 +0530 netsniff-ng (0.5.5.0-2) unstable; urgency=low * Upload to unstable * debian/control: + Added armhf support, closes wishlist bug. Closes: #604540 + Excluded non-linux systems in architectures + Added Kartik as Uploader -- Daniel Borkmann Mon, 07 Feb 2011 16:26:17 +0200 netsniff-ng (0.5.5.0-1) unstable; urgency=low * New upstream release * debian/control: + Updated to new standards version 3.9.1 + Updated description * debian/watch: + Updated URL to public directory of netsniff-ngs website * Switch to dpkg-source 3.0 (quilt) format -- Daniel Borkmann Sun, 10 Oct 2010 12:57:11 +0200 netsniff-ng (0.5.4.2-1) unstable; urgency=low * Another minor upstream release with fixes within the ring traversal method (packet look-ahead on the receive ring) and some basic BPF filter check. * Changed installation path from /sbin into /usr/sbin * debian/control: + Updated to new standards version 3.8.4 + Added ${misc:Depends} in order to fix the 'debhelper-but-no-misc-depends' warning -- Daniel Borkmann Sun, 14 Feb 2010 13:58:40 +0200 netsniff-ng (0.5.4.1-1) unstable; urgency=medium * New (minor) upstream release with security fix in netsniff-ng.c: A memset with a 4 Byte length overhead on 32-Bit systems could run into a possible buffer overflow. Relevant sections have been fixed. * debian/control: + Changed architecture, because netsniff-ng is not written for non-linux archs as kfreebsd-* -- Daniel Borkmann Sat, 02 Jan 2010 11:18:03 +0200 netsniff-ng (0.5.4.0-1) unstable; urgency=low * New upstream release * debian/control: + Corrected package description * debian/watchfile: + Changed URL to watch for, because the googlecode site denies access, mirrored tarball archive at htwk-leipzig.de -- Daniel Borkmann Fri, 01 Jan 2010 19:07:23 +0200 netsniff-ng (0.5.3.1-1) unstable; urgency=low * Initial release for Debian, closes ITP bug. Closes: #561528 -- Daniel Borkmann Thu, 17 Dec 2009 22:55:51 +0200 debian/patches/0000755000000000000000000000000011773507035010625 5ustar debian/patches/nacl_path_fix0000644000000000000000000000036311735762434013355 0ustar Description: Fix for nacl headers and libs Author: Kartik Mistry Last-Update: 2012-04-01 --- /dev/null +++ b/src/curvetun/nacl_path.cmake @@ -0,0 +1,2 @@ +SET(NACL_INCLUDE_DIR /usr/include/nacl) +SET(NACL_LIB_DIR /usr/lib) debian/patches/manpage_path.patch0000644000000000000000000000063411735762374014304 0ustar Description: Man page path fix Author: Emmanuel Roullit Last-Update: 2012-04-01 --- a/src/cmake/modules/Pod2Man.cmake +++ b/src/cmake/modules/Pod2Man.cmake @@ -47,7 +47,7 @@ INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/${MANFILE}.${SECTION}.gz - DESTINATION share/man/man${SECTION} + DESTINATION /usr/share/man/man${SECTION} ) ENDMACRO(POD2MAN PODFILE MANFILE SECTION) debian/patches/series0000644000000000000000000000006511773507045012044 0ustar nacl_path_fix manpage_path.patch cflags_notune.patch debian/patches/cflags_notune.patch0000644000000000000000000000065211773507035014500 0ustar Description: Make build without tuning Author: Daniel Borkmann Last-Update: 2012-04-01 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -15,15 +15,13 @@ INCLUDE(CheckTxRing) INCLUDE(Pod2Man) ADD_DEFINITIONS( - -O3 + -O2 -fstack-protector -fpie -std=gnu99 -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -D_REENTRANT - -march=native - -mtune=native -Wall -Wundef -Wstrict-prototypes