debian/0000755000000000000000000000000012176735073007201 5ustar debian/compat0000644000000000000000000000000212140054600010354 0ustar 9 debian/copyright0000644000000000000000000000212312131661147011121 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: bittwist Source: http://bittwist.sf.net Files: * Copyright: 2006-2012 Addy Yeow Chin Heng License: GPL-2.0+ Files: debian/* Copyright: 2007-2013 Joao Eriberto Mota Filho License: GPL-2.0+ License: GPL-2.0+ This package 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; either version 2 of the License, or (at your option) any later version. . This package 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, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/patches/0000755000000000000000000000000012132272054010613 5ustar debian/patches/bittwist.1.patch0000644000000000000000000000151512131656622013654 0ustar Description: fix hyphens in bittwist.1. Author: Joao Eriberto Mota Filho Last-Update: 2013-04-11 --- a/doc/bittwist.1 +++ b/doc/bittwist.1 @@ -74,7 +74,7 @@ .br 0 to send the actual packet length. This is the default. .br --1 to send the captured length. +\-1 to send the captured length. .IP or any other value from 14 to 1514. .TP @@ -89,7 +89,7 @@ .TP .B \-r \fIrate\fP Limit the sending to \fIrate\fP Mbps. Value for \fIrate\fP must be between 1 to 1000. This option is meant to limit the maximum packet throughput. -If you want to send packets at line rate of 100Mbps, try -m 0 -r 100 +If you want to send packets at line rate of 100Mbps, try \-m 0 \-r 100 .TP .B \-p \fIsleep\fP Set interval to \fIsleep\fP (in seconds), ignoring the actual interval. Value for \fIsleep\fP must be between 1 to 2146. debian/patches/series0000644000000000000000000000006212132272054012026 0ustar bittwiste.1.patch bittwist.1.patch Makefile.patch debian/patches/bittwiste.1.patch0000644000000000000000000000072312131657110014012 0ustar Description: fix hyphens in bittwiste.1. Author: Joao Eriberto Mota Filho Last-Update: 2013-04-11 --- a/doc/bittwiste.1 +++ b/doc/bittwiste.1 @@ -92,7 +92,7 @@ .B \-M \fIlinktype\fP Replace the \fIlinktype\fP stored in the pcap file header. Typically, value for \fIlinktype\fP is 1 for Ethernet. .br -Example: -M 12 (for raw IP), -M 51 (for PPPoE) +Example: \-M 12 (for raw IP), \-M 51 (for PPPoE) .IP For the complete list, see: .br debian/patches/Makefile.patch0000644000000000000000000000224512131655302013354 0ustar Description: Makes Makefile compliant with Debian and implements hardening. Author: Joao Eriberto Mota Filho Last-Update: 2013-04-11 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ SHELL = /bin/sh -prefix = /usr +prefix = $(DESTDIR)/usr exec_prefix = ${prefix} bindir = ${exec_prefix}/bin mandir = ${prefix}/share/man/man1 @@ -9,6 +9,10 @@ DEBUG = -g CFLAGS ?= -O2 CFLAGS += $(DEBUG) +CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS) +CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) +LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) + SRC = src DOC = doc @@ -19,10 +23,10 @@ all: bittwist bittwiste bittwist: - $(CC) $(CFLAGS) $(SRC)/bittwist.c -o $(SRC)/bittwist -I/usr/local/include -L/usr/local/lib -lpcap + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(SRC)/bittwist.c -o $(SRC)/bittwist -I/usr/local/include -L/usr/local/lib -lpcap bittwiste: - $(CC) $(CFLAGS) $(SRC)/bittwiste.c -o $(SRC)/bittwiste -I/usr/local/include -L/usr/local/lib -lpcap + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(SRC)/bittwiste.c -o $(SRC)/bittwiste -I/usr/local/include -L/usr/local/lib -lpcap clean: rm -f $(SRC)/bittwist $(SRC)/bittwiste debian/source/0000755000000000000000000000000012131653415010467 5ustar debian/source/format0000644000000000000000000000001412131653423011674 0ustar 3.0 (quilt) debian/control0000644000000000000000000000362212176735073010607 0ustar Source: bittwist Section: net Priority: optional Maintainer: Joao Eriberto Mota Filho Build-Depends: debhelper (>= 9), libpcap-dev Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/git/collab-maint/bittwist.git Vcs-Git: git://anonscm.debian.org/collab-maint/bittwist.git Homepage: http://bittwist.sourceforge.net Package: bittwist Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Suggests: tcpdump | wireshark Description: libpcap based Ethernet packet generator bittwist (or Bit-Twist) is designed to complement tcpdump, which by itself has done a great job in capturing network traffic. Bit-Twist can regenerate the captured traffic onto a live network (the packets are generated from tcpdump trace file, generating a .pcap file). . Bit-Twist also comes with a comprehensive trace file editor to allow to change the contents of a trace file. . Generally, a packet generator is useful in simulating networking traffic or scenario, testing firewall, IDS, and IPS, and troubleshooting various network problems. . The Bit-Twist features are: . * runs on Mac OS X (and *BSD), Linux, and Windows; * send multiple trace files at a time; * send packets at a specific speed or line rate in Mbps; * comprehensive trace file editor with control over most fields in Ethernet, ARP, IP, ICMP, TCP, and UDP headers with automatic header checksum correction; * append user payload to existing packets after a specific header; * select a specific range of packets and save them in another trace file; * highly scriptable - with proper manipulation you can turn Bit-Twist into an extremely flexible packet generator tool; * if you are teaching Computer Networks classes, you may find Bit-Twist useful as a practical teaching material. It gives your students a hands-on experience to learn various networking protocols etc. debian/changelog0000644000000000000000000000603312176734314011052 0ustar bittwist (2.0-3) unstable; urgency=low * debian/control: updated VCS (migrated from svn to git). -- Joao Eriberto Mota Filho Fri, 02 Aug 2013 10:47:25 -0300 bittwist (2.0-2) unstable; urgency=low * Bump debhelper level to 9. * debian/control: readded VCS fields. * debian/rules: - Added --parallel to DH. - Removed some comments. -- Joao Eriberto Mota Filho Tue, 30 Apr 2013 20:42:31 -0300 bittwist (2.0-1) unstable; urgency=low * New upstream release. * Reintroduced in Debian (Closes: #705352). * Added GCC hardening in Makefile.patch. * Migrations: - debian format from 1.0 to 3.0. - debhelper version from 7 to 8. - patch system from dpatch to quilt. * debian/control: - Changed tcpdump from Recommends to Suggests. - Updated Standards-Version from 3.8.4 to 3.9.4. - Updated long description. - Removed Vcs-Svn and Vcs-Browser fields. * debian/copyright: updated to new format. * debian/README.source: removed because it useless now. * debian/rules: updated to new (reduced) format. -- Joao Eriberto Mota Filho Thu, 11 Apr 2013 20:58:40 -0300 bittwist (1.1-1) unstable; urgency=low * New upstream release. * Added 02 patch to fix hyfen used as minus signal in manpages. * Removed extra blank spaces in debian/{copyright,rules}. * Updated debhelper version from 5 to 7. * debian/control: - Added ${misc:Depends} in Depends field. - Changed libpcap0.8-dev to libpcap-dev in Build-Depends. - Removed XS from two Vcs lines. - Updated information about SVN (Vcs lines). - Updated Standards-Version from 3.7.2 to 3.8.4. * debian/copyright: - Added the "copyright" word in packaging announce. - Changed the point to GPL from "/usr/share/common-licenses/GPL" to "/usr/share/common-licenses/GPL-2". * debian/rules: - Changed from dh_clean -k to dh_prep. - Made empty binary-indep target. - Removed build redundancy from binary-arch target. - Removed binary-indep from binary target. * debian/watch: fixed the version check. -- Joao Eriberto Mota Filho Sat, 27 Feb 2010 21:49:15 -0300 bittwist (1.0-1) unstable; urgency=low * New upstream release. * Added year 2007 in debian/copyright. * Fixed a typo in long description in debian/control. Thanks to Gunnar Wolf . (Closes: #449063) -- Joao Eriberto Mota Filho Fri, 02 Nov 2007 18:25:56 -0200 bittwist (0.80-2) UNRELEASED; urgency=low * Added Homepage field in debian/control. * Removed debian/docs. The BUGS file instructs users to report bugs to upstream, however, Debian users should use Debian Bug Tracking System (BTS). -- Joao Eriberto Mota Filho Sat, 27 Oct 2007 21:07:07 -0200 bittwist (0.80-1) unstable; urgency=low * Initial release. (Closes: #432724) -- Joao Eriberto Mota Filho Fri, 27 Jul 2007 09:49:34 -0300 debian/watch0000644000000000000000000000007612131647060010222 0ustar version=3 http://sf.net/bittwist/bittwist-linux-(.*)\.tar\.gz debian/rules0000755000000000000000000000015112140054717010244 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --parallel