From 7fbda683e5a38a80b32ddfe1c24ee6ad69647d55 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Mon, 7 Apr 2014 22:52:53 +0200 Subject: [PATCH] netsniff-ng: Added netsniff-ng 0.5.8-rc5 - A free Linux networking toolkit --- .../0001-include-sys_types.h.patch | 23 +++++++ .../0002-built_in-DEFFILEMODE.patch | 27 ++++++++ network/netsniff-ng/0003-add-DESTDIR.patch | 61 +++++++++++++++++++ .../netsniff-ng/0004-fix-include-poll.h.patch | 52 ++++++++++++++++ network/netsniff-ng/netsniff-ng.conf | 18 ++++++ network/netsniff-ng/netsniff-ng.desc | 48 +++++++++++++++ 6 files changed, 229 insertions(+) create mode 100644 network/netsniff-ng/0001-include-sys_types.h.patch create mode 100644 network/netsniff-ng/0002-built_in-DEFFILEMODE.patch create mode 100644 network/netsniff-ng/0003-add-DESTDIR.patch create mode 100644 network/netsniff-ng/0004-fix-include-poll.h.patch create mode 100644 network/netsniff-ng/netsniff-ng.conf create mode 100644 network/netsniff-ng/netsniff-ng.desc diff --git a/network/netsniff-ng/0001-include-sys_types.h.patch b/network/netsniff-ng/0001-include-sys_types.h.patch new file mode 100644 index 000000000..597464780 --- /dev/null +++ b/network/netsniff-ng/0001-include-sys_types.h.patch @@ -0,0 +1,23 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../netsniff-ng/0001-include-sys_types.h.patch +# Copyright (C) 2014 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +--- ./link.c.orig 2014-04-07 14:39:56.297637200 +0200 ++++ ./link.c 2014-04-07 14:40:16.478105452 +0200 +@@ -1,3 +1,4 @@ ++#include /* caddr_t */ + #include + #include + #include diff --git a/network/netsniff-ng/0002-built_in-DEFFILEMODE.patch b/network/netsniff-ng/0002-built_in-DEFFILEMODE.patch new file mode 100644 index 000000000..d8a875518 --- /dev/null +++ b/network/netsniff-ng/0002-built_in-DEFFILEMODE.patch @@ -0,0 +1,27 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../netsniff-ng/0002-built_in-DEFFILEMODE.patch +# Copyright (C) 2014 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +--- ./built_in.h.orig 2014-04-07 14:51:03.521071557 +0200 ++++ ./built_in.h 2014-04-07 14:51:43.097982438 +0200 +@@ -398,4 +398,8 @@ + # define ARPHRD_NETLINK 824 + #endif + ++#ifndef DEFFILEMODE ++# define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) /* 0666*/ ++#endif ++ + #endif /* BUILT_IN_H */ diff --git a/network/netsniff-ng/0003-add-DESTDIR.patch b/network/netsniff-ng/0003-add-DESTDIR.patch new file mode 100644 index 000000000..e2fd2283c --- /dev/null +++ b/network/netsniff-ng/0003-add-DESTDIR.patch @@ -0,0 +1,61 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../netsniff-ng/0003-add-DESTDIR.patch +# Copyright (C) 2014 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +--- a/Makefile 2014-04-07 19:02:33.730426413 +0200 ++++ b/Makefile 2014-04-07 19:03:49.340188075 +0200 +@@ -28,6 +28,9 @@ + # Disable if you don't want it + CCACHE ?= $(CONFIG_CCACHE) + ++# Location of installation destination directory ++DESTDIR= ++ + # Location of installation paths. + SBINDIR = $(PREFIX)/usr/sbin + INCDIR = $(PREFIX)/usr/include +--- a/Template 2014-04-07 18:59:00.501491038 +0200 ++++ b/Template 2014-04-07 19:00:37.507754557 +0200 +@@ -8,14 +8,14 @@ + $(1)_clean: $(1)_clean_custom + $(Q)$$(call RM,$(1)/*.o $(1)/$(1) $(1)/*.gz) + $(1)_do_install: +- $(Q)$$(call INSTX,$(1)/$(1),$$(SBINDIR)) ++ $(Q)$$(call INSTX,$(1)/$(1),$$(DESTDIR)$$(SBINDIR)) + $(Q)$(GZIP) $(1).8 > $(1)/$(1).8.gz +- $(Q)$$(call INSTX,$(1)/$(1).8.gz,$$(MAN8DIR)) +- $(Q)$$(foreach file,$$($(1)-confs),$$(call INST,$$(file),$$(ETCDIRE));) ++ $(Q)$$(call INSTX,$(1)/$(1).8.gz,$$(DESTDIR)$$(MAN8DIR)) ++ $(Q)$$(foreach file,$$($(1)-confs),$$(call INST,$$(file),$$(DESTDIR)$$(ETCDIRE));) + $(1)_install: $(1)_do_install $(1)_post_install + $(1)_uninstall: $(1)_uninstall_custom +- $(Q)$$(call RM,$$(SBINDIR)/$(1)) +- $(Q)$$(call RM,$$(MAN8DIR)/$(1).8.gz) ++ $(Q)$$(call RM,$$(DESTDIR)$$(SBINDIR)/$(1)) ++ $(Q)$$(call RM,$$(DESTDIR)$$(MAN8DIR)/$(1).8.gz) + $(1)/%.yy.o: $(1)/%.yy.c + $$(CC) $$(CFLAGS) -o $$@ -c $$< + $(1)/%.tab.o: $(1)/%.tab.c +--- a/trafgen/Makefile 2014-04-07 20:02:43.197995226 +0200 ++++ b/trafgen/Makefile 2014-04-07 20:03:13.946689298 +0200 +@@ -31,7 +31,7 @@ + trafgen-confs = trafgen_stddef.h + + trafgen_post_install: +- $(Q)mv $(ETCDIRE)/trafgen_stddef.h $(ETCDIRE)/stddef.h ++ $(Q)mv $(DESTDIR)$(ETCDIRE)/trafgen_stddef.h $(DESTDIR)$(ETCDIRE)/stddef.h + + trafgen_clean_custom: + $(Q)$(call RM,$(BUILD_DIR)/*.h $(BUILD_DIR)/*.c) diff --git a/network/netsniff-ng/0004-fix-include-poll.h.patch b/network/netsniff-ng/0004-fix-include-poll.h.patch new file mode 100644 index 000000000..53a1bf4c2 --- /dev/null +++ b/network/netsniff-ng/0004-fix-include-poll.h.patch @@ -0,0 +1,52 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../netsniff-ng/0004-fix-include-poll.h.patch +# Copyright (C) 2014 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +The standard defines and not + +http://pubs.opengroup.org/onlinepubs/009696799/basedefs/poll.h.html + +--- a/ring.h 2014-04-07 22:03:43.038037257 +0200 ++++ b/ring.h 2014-04-07 22:04:06.298592881 +0200 +@@ -20,7 +20,6 @@ + #include + #include + #include +-#include + + #include "built_in.h" + #include "die.h" +--- a/curvetun_client.c 2014-04-07 22:05:50.841029712 +0200 ++++ b/curvetun_client.c 2014-04-07 22:06:21.713719262 +0200 +@@ -20,7 +20,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include +--- a/curvetun_server.c 2014-04-07 22:05:56.921159753 +0200 ++++ b/curvetun_server.c 2014-04-07 22:06:34.045997332 +0200 +@@ -20,7 +20,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include diff --git a/network/netsniff-ng/netsniff-ng.conf b/network/netsniff-ng/netsniff-ng.conf new file mode 100644 index 000000000..eb24fed45 --- /dev/null +++ b/network/netsniff-ng/netsniff-ng.conf @@ -0,0 +1,18 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../netsniff-ng/netsniff-ng.conf +# Copyright (C) 2014 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# 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. A copy of the +# GNU General Public License can be found in the file COPYING. +# --- SDE-COPYRIGHT-NOTE-END --- + +if atstage cross; then + var_append makeopt ' ' "LD=$CC" + var_append makeopt ' ' "CROSS_COMPILE=${arch_target}-" +fi diff --git a/network/netsniff-ng/netsniff-ng.desc b/network/netsniff-ng/netsniff-ng.desc new file mode 100644 index 000000000..1ab9aa003 --- /dev/null +++ b/network/netsniff-ng/netsniff-ng.desc @@ -0,0 +1,48 @@ +[COPY] --- SDE-COPYRIGHT-NOTE-BEGIN --- +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] +[COPY] Filename: package/.../netsniff-ng/netsniff-ng.desc +[COPY] Copyright (C) 2014 The OpenSDE Project +[COPY] +[COPY] More information can be found in the files COPYING and README. +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; version 2 of the License. A copy of the +[COPY] GNU General Public License can be found in the file COPYING. +[COPY] --- SDE-COPYRIGHT-NOTE-END --- + +[I] A free Linux networking toolkit + +[T] netsniff-ng is a free Linux networking toolkit, a Swiss army knife for your +[T] daily Linux network plumbing if you will. +[T] Its gain of performance is reached by zero-copy mechanisms, so that on +[T] packet reception and transmission the kernel does not need to copy packets +[T] from kernel space to user space and vice versa. +[T] The netsniff-ng toolkit can be used for network development and analysis, +[T] debugging, auditing or network reconnaissance. +[T] It consists of the following utilities: +[T] - netsniff-ng, a fast zero-copy analyzer, pcap capturing and replaying tool +[T] - trafgen, a multithreaded low-level zero-copy network packet generator +[T] - mausezahn, high-level packet generator for HW/SW appliances with Cisco-CLI* +[T] - bpfc, a Berkeley Packet Filter compiler, Linux BPF JIT disassembler +[T] - ifpps, a top-like kernel networking statistics tool +[T] - flowtop, a top-like netfilter connection tracking tool +[T] - curvetun, a lightweight curve25519-based IP tunnel +[T] - astraceroute, an autonomous system (AS) trace route utility + +[U] http://netsniff-ng.org/ +[U] https://github.com/netsniff-ng/ + +[A] Daniel Borkmann +[A] Tobias Klauser +[M] Christian Wiese + +[C] extra/network + +[L] GPL +[S] Beta +[V] 0.5.8-rc5 +[P] X -?---5---9 800.000 + +[D] 2577550788 netsniff-ng-0.5.8-rc5.tar.gz !https://github.com/netsniff-ng/netsniff-ng/archive/v0.5.8-rc5.tar.gz