debian/0000755000000000000000000000000011401147603007163 5ustar debian/compat0000644000000000000000000000000211374147277010401 0ustar 7 debian/changelog0000644000000000000000000000706011401147602011037 0ustar ipgrab (0.9.10-1ubuntu1) maverick; urgency=low * Fix FTBFS caused by implicit pointer conversion on 64bit architectures. -- Michael Bienia Tue, 01 Jun 2010 11:14:16 +0200 ipgrab (0.9.10-1) unstable; urgency=low * New upstream release + Fixed manpage (Closes: #385173) * New maintainer (Closes: #547245) * Added watch file * Updated build-depends for dh7 * Added misc:depends * Updated standard versions to 3.8.4 * Updated source-format to 3.0 (quilt) * Removed dh_clean -k in rules install * Removed export DH_COMPAT=3 in rules * Added upstream in copyright * Fixed segfault on amd64 * Fixed spelling errors in binary -- Dennis Krzyzaniak Sun, 04 Apr 2010 11:18:36 +0200 ipgrab (0.9.9-1) unstable; urgency=low * New upstream version * Recompile should fix 257858 (closes: #257858) * Bumped Standards-Version to 3.6.1.1 -- Guillaume Morin Sun, 8 Aug 2004 20:44:51 -0400 ipgrab (0.9.8-1) unstable; urgency=low * New upstream release (closes: #146386) * Bumped Standards-Version to 3.5.6.1 -- Guillaume Morin Sun, 28 Jul 2002 22:49:57 +0200 ipgrab (0.9.5-3) unstable; urgency=low * Fixed spelling error in description (closes: #124759) -- Guillaume Morin Sun, 30 Dec 2001 17:23:09 +0100 ipgrab (0.9.5-2) unstable; urgency=low * Added makeinfo in Build-Depends (closes: #114755) -- Guillaume Morin Sun, 7 Oct 2001 20:57:35 +0200 ipgrab (0.9.5-1) unstable; urgency=low * New upstream version (closes: #111403) -- Guillaume Morin Sat, 8 Sep 2001 01:26:41 +0200 ipgrab (0.9.4-1) unstable; urgency=low * New maintainer * New upstream release (closes: #109363, #109365, #109377) * control: added Build-Depends * control: raised Standards-Version to 3.5.2 * copyright: fixed copyright statement to fit current license (GPL) * Added the manpage from 0.8.2 * Added a @dircategory entry to doc/ipgrab.texi -- Guillaume Morin Sat, 8 Sep 2001 01:26:36 +0200 ipgrab (0.8.2-1) unstable; urgency=low * New upstream * Updated to standards version 3.0.1 including FHS -- Craig Small Wed, 8 Sep 1999 11:34:12 +1000 ipgrab (0.8-1) unstable; urgency=low * New upstream -- Craig Small Mon, 2 Aug 1999 11:39:17 +1000 ipgrab (0.7-1) unstable; urgency=low * New upstream version (Bug #36172 ) -- Craig Small Mon, 19 Apr 1999 12:14:56 +1000 ipgrab (0.6-1) unstable; urgency=low * New upstream version -- Craig Small Thu, 5 Nov 1998 08:33:19 +1100 ipgrab (0.5.2-1) unstable; urgency=low * New maintainer * New upstream * Has a man page (Bug #23633 ) * Fixed copyright file -- Craig Small Mon, 2 Nov 1998 10:52:23 +1100 ipgrab (0.5-3) unstable; urgency=low * Fixed -c option -- Mike Borella Tue, 7 Apr 1998 15:28:18 -0500 ipgrab (0.5-2) unstable; urgency=low * Added link to undocumented. Fixed README.debian. Put executable into * /usr/sbin, stopped creating /usr/bin. Got rid of extra libpcap0 dependecy. -- Mike Borella Thu, 12 Mar 1998 12:00:49 -0600 ipgrab (0.5-1) unstable; urgency=low * * Remade from upstream source -- Mike Borella Tue, 10 Mar 1998 09:51:13 -0600 ipgrab (0.4a1-1) unstable; urgency=low * Initial Release. -- Mike Borella Wed, 10 Dec 1997 09:11:29 -0600 Local variables: mode: debian-changelog End: debian/watch0000644000000000000000000000014111374147411010216 0ustar # Compulsory line, this is a version 3 file version=3 http://sf.net/ipgrab/ipgrab-(.+)\.tar\.gz debian/copyright0000644000000000000000000000172511374147317011136 0ustar This package was debianized by Mike Borella cathmike@xnet.com on Tue, 7 Apr 1998 15:19:22 -0500. It has been modified by Craig small and Guillaume Morin and Dennis Krzyzaniak Copyright: © by 2007 Mike Borella cathmike@xnet.com 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; either version 2 of the License, or (at your option) any later version. 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 Library 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 For more details see /usr/share/common-licenses/GPL debian/rules0000755000000000000000000000327211374147360010260 0ustar #!/usr/bin/make -f # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This is the debhelper compatability version to use. #export DH_COMPAT=3 configure: configure-stamp configure-stamp: dh_testdir # Add here commands to configure the package. ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info touch configure-stamp build: configure-stamp build-stamp build-stamp: dh_testdir # Add here commands to compile the package. $(MAKE) touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp doc/stamp-vti doc/version.texi # Add here commands to clean up after the build process. [ ! -f Makefile ] || $(MAKE) distclean dh_clean install: build dh_testdir dh_testroot dh_installdirs # Add here commands to install the package into debian/ipgrab. install -m 755 src/ipgrab $(CURDIR)/debian/ipgrab/usr/sbin # 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_installdebconf dh_installdocs # dh_installexamples # dh_installmenu # dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime # dh_installinit # dh_installcron dh_installman debian/ipgrab.8 dh_installinfo # dh_undocumented dh_installchangelogs ChangeLog dh_link dh_strip dh_compress dh_fixperms # dh_makeshlibs dh_installdeb # dh_perl dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure debian/patches/0000755000000000000000000000000011401147712010613 5ustar debian/patches/series0000644000000000000000000000007211401147675012037 0ustar segfault_amd64.patch spelling.patch missing_include.patch debian/patches/segfault_amd64.patch0000644000000000000000000000157711374154012014453 0ustar Description: Fix segfault on amd64 Upstream is not active. Author: Dennis Krzyzaniak Last-Update: 2010-05-17 --- ipgrab-0.9.10.orig/src/datalink.c +++ ipgrab-0.9.10/src/datalink.c @@ -35,6 +35,7 @@ #include "payload.h" #include "stats.h" #include "dynports.h" +#include "time.h" extern struct arg_t * my_args; extern int packet_displayed; @@ -158,9 +159,15 @@ void datalink(int linktype, struct timev /* * Print time stamp is human readable format. */ - +#if 0 + /* This results in a segfault on amd64. + Changed to thread-safe ctime_r call. + Dennis Krzyzaniak 2010-05-17 */ snprintf(packet.timestamp, PACKET_TIMESTAMP_LEN, "%s", ctime ( ( const time_t * ) &ts.tv_sec ) ); +#else + ctime_r((const time_t*) &(ts.tv_sec), packet.timestamp); +#endif /* * If we're in minimal mode, start off with the count number debian/patches/spelling.patch0000644000000000000000000000201611374155251013456 0ustar Description: Fix spelling errors Upstream is not active. Author: Dennis Krzyzaniak Last-Update: 2010-05-17 --- ipgrab-0.9.10.orig/src/mobileip.c +++ ipgrab-0.9.10/src/mobileip.c @@ -398,7 +398,7 @@ void dump_mobileip_ext_cvse(packet_t * p } else { - display_strmap("Extention type", cvse.type, mobileip_ext_map); + display_strmap("Extension type", cvse.type, mobileip_ext_map); display(" Reserved", &cvse.reserved, 1, DISP_DEC); display(" Length", (u_int8_t *) &cvse.length, 2, DISP_DEC); display(" Vendor ID", (u_int8_t *) &cvse.vendor, 4, DISP_DEC); --- ipgrab-0.9.10.orig/src/icmp.c +++ ipgrab-0.9.10/src/icmp.c @@ -107,7 +107,7 @@ strmap_t icmp_du_map[] = { ICMP_DU_HOSTTOS, "host unreachable for TOS"}, { ICMP_DU_ADMIN, "admin prohibited"}, { ICMP_DU_HOSTPRECVIOL, "host precedence violation"}, - { ICMP_DU_PRECCUTOFF, "precendence cutoff"}, + { ICMP_DU_PRECCUTOFF, "precedence cutoff"}, { 0, "" } }; debian/patches/missing_include.patch0000644000000000000000000000067011401147541015013 0ustar Index: ipgrab-0.9.10/src/parse_cl.c =================================================================== --- ipgrab-0.9.10.orig/src/parse_cl.c 2010-06-01 11:13:40.000000000 +0200 +++ ipgrab-0.9.10/src/parse_cl.c 2010-06-01 11:13:56.000000000 +0200 @@ -20,6 +20,7 @@ #include #include #include "parse_cl.h" +#include "utilities.h" /*---------------------------------------------------------------------------- ** debian/control0000644000000000000000000000111611401147610010563 0ustar Source: ipgrab Section: net Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Dennis Krzyzaniak Build-Depends: debhelper(>=7), libpcap-dev(>=0.3), texinfo Standards-Version: 3.8.4 Package: ipgrab Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: tcpdump-like utility that prints detailed header information ipgrab is a network debugging utility not unlike tcpdump except that it prints out detailed header field information for data link, network and transport layers. debian/info0000644000000000000000000000002011374147343010043 0ustar doc/ipgrab.info debian/dirs0000644000000000000000000000001111374147326010052 0ustar usr/sbin debian/docs0000644000000000000000000000002111374147335010042 0ustar NEWS README TODO debian/ipgrab.80000644000000000000000000000572511374151466010544 0ustar .TH IPGRAB 8 "07 March 2007" .SH NAME ipgrab \- A Verbose Packet Sniffer .SH SYNOPSIS \fBipgrab\fP [ -ablmnPprTtwx ] [ -c \fIcnt\fP ] [ -i \fIif\fP ] [ \fiexpr\fP ] .SH DESCRIPTION \fIipgrab\fP reads and parses packets from the link layer through the application layer, dumping explicit header information along the way. It is a lot like \fItcpdump\fP except that it prints almost every header field. .SS Options .TP \fB-a\fP Do not display application layer data. .TP \fB-b\fP Buffer standard output. Useful when you're redirecting output to a file. .TP \fB-c \fIcnt\fR, \fB--count \fIcnt\fR Terminate after receiving \fIcnt\fP packets. .TP \fB-C \fIproto\fR, \fB--CCP \fIproto\fR Assume a particular CCP protocol, such as MPPC. MPPC is the only one supported as yet. .TP \fB-d\fP Dump extra padding in packets. For example, according to an IP header, the packet ends at a certain point, but the link layer may have padded it beyond that. This option displays the padding. Not valid in minimal mode. .TP \fB-h, --help\fP Display usage screen with a brief description of the command line options. .TP \fB-i \fIif\fR, \fB--interface \fIif\fR Makes ipgrab listen to packets on interface \fIif\fP, e.g., eth0. If this option is not used, the default interface will be assumed. .TP \fB-l\fP Don't display link-layer headers. The following protocols are considered to be link layer: ARP, CHAP, Ethernet, IPCP, LCP, LLC, Loopback, PPP, PPPoE, Raw, Slip. .TP \fB-m\fP Minimal mode output. When operating in this mode, ipgrab displays only brief header information. .TP \fB-n\fP Don't display network-layer headers. The following protocols are considered to be network layer: AH, ESP, GRE, ICMP, ICMPv6, IGMP, IP, IPv6, IPX, IPXRIP. .TP \fB-P \fIstring\fR Initiate a dynamic port mapping. This option must be followed by a string of the form `=', such as `http=8080'. .TP \fB-p\fP Dump packet payloads beyond what IPgrab parses. In other words, if IPgrab does not parse a particular application, this option will dump application data in hex and text format. .TP \fB-r\fP FILE Read packets from a file, rather than an interface. The file shoule be created in "raw" format, such as with '-w' option. .TP \fB-T\fP Do not display timestamps in minimal mode. .TP \fB-t\fP Don't display transport layer headers. The following protocols are considered to be transport layer: SPX, TCP, UDP. .TP \fB-v, --version\fP Display version number and then quit. .TP \fB-w\fP FILE Write the raw packets to a file, rather than the screen. The packets will not be parsed. The file can be read with the '-r' option. .TP \fB-x\fP Hex dump mode. After processing each layer, dump out the contents of that layer in hex and text. Only valid in main mode. .TP \fBexpr\fP Berkeley packet filter expression. See tcpdump(8) man page for details and examples. .SH SEE ALSO tcpdump(8) .SH NOTES Requires libpcap version 0.3 or greater to be installed. .SH AUTHOR Michael S. Borella .br http://www.borella.net/mike/ .br mike@borella.net debian/source/0000755000000000000000000000000011374147401010470 5ustar debian/source/format0000644000000000000000000000001411374147401011676 0ustar 3.0 (quilt)