debian/0000775000000000000000000000000011767404177007206 5ustar debian/control0000664000000000000000000000142511767403632010606 0ustar Source: sendip Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Jonathan McDowell Priority: optional Section: net Standards-Version: 3.9.3 Build-Depends: debhelper (>= 8) Homepage: http://www.earth.li/projectpurple/progs/sendip.html Package: sendip Architecture: any Priority: optional Section: net Depends: ${shlibs:Depends}, ${misc:Depends} Description: Commandline tool to allow sending arbitrary IP packets SendIP has a large number of command line options to specify the content of every header of a RIP, TCP, UDP, ICMP or raw IPv4 and IPv6 packet. It also allows any data to be added to the packet. Checksums can be calculated automatically, but if you wish to send out wrong checksums, that is supported too. debian/compat0000664000000000000000000000000211764022133010365 0ustar 8 debian/rules0000775000000000000000000000262511764022105010253 0ustar #!/usr/bin/make -f # -*- Makefile -*- # Set our build directory b := $(shell pwd)/debian/sendip arrange: arrange-stamp arrange-stamp: install dh_testdir touch arrange-stamp binary: binary-stamp binary-stamp: binary-indep binary-arch dh_testdir touch binary-stamp binary-arch: binary-arch-stamp binary-arch-stamp: arrange dh_testdir dh_testroot dh_installdocs README TODO contrib/ dh_installchangelogs CHANGES dh_fixperms dh_installdeb dh_perl dh_strip dh_shlibdeps dh_link dh_compress dh_gencontrol dh_builddeb touch binary-arch-stamp binary-indep: binary-indep-stamp binary-indep-stamp: arrange dh_testdir touch binary-indep-stamp build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: config dh_testdir $(MAKE) PREFIX=/usr LDLOADLIBS=-lc touch build-stamp clean: dh_testdir if [ -e Makefile ]; then $(MAKE) -i veryclean; fi dh_clean arrange-stamp binary-stamp binary-arch-stamp binary-indep-stamp build-stamp config-stamp install-stamp config: config-stamp config-stamp: dh_testdir touch config-stamp install: install-stamp install-stamp: build dh_testdir install -d $(b)/usr/bin install -d $(b)/usr/lib/sendip install -d $(b)/usr/share/man/man1 install -c -m 755 sendip $(b)/usr/bin install -c -m 755 *.so $(b)/usr/lib/sendip install -c -m 644 sendip.1 $(b)/usr/share/man/man1 touch install-stamp .PHONY: binary binary-arch binary-indep clean debian/patches/0000775000000000000000000000000011767404153010627 5ustar debian/patches/03-spelling-fix.diff0000664000000000000000000000064011764023004014267 0ustar --- sendip-2.5.orig/ipv4.h +++ sendip-2.5/ipv4.h @@ -63,7 +63,7 @@ */ sendip_option ip_opts[] = { {"s",1,"Source IP address (see README)","127.0.0.1"}, - {"d",1,"Desitnation IP address","Correct"}, + {"d",1,"Destination IP address","Correct"}, {"h",1,"IP header length (see README)","Correct"}, {"v",1,"IP version (you almost definately don't want to change this)","4"}, {"y",1,"IP type of service","0"}, debian/patches/series0000664000000000000000000000013611767403617012050 0ustar 01-hurd+kfreebsd.diff 02-fix-gcc4.diff 03-spelling-fix.diff 04-hardening.diff as-needed.patch debian/patches/01-hurd+kfreebsd.diff0000664000000000000000000000075511764022562014426 0ustar --- sendip-2.5/Makefile.orig 2012-06-07 03:50:58.000000000 +0000 +++ sendip-2.5/Makefile 2012-06-07 03:51:41.000000000 +0000 @@ -31,7 +31,7 @@ #there has to be a nice way to do this sendip: sendip.o gnugetopt.o gnugetopt1.o compact.o - sh -c "if [ `uname` = Linux ] ; then \ + sh -c "if [ `uname` = Linux -o `uname` = GNU/kFreeBSD -o `uname` = GNU ] ; then \ $(CC) -o $@ $(LDFLAGS_LINUX) $(CFLAGS) $+ ; \ elif [ `uname` = SunOS ] ; then \ $(CC) -o $@ $(LDFLAGS_SOLARIS) $(CFLAGS) $+ ;\ debian/patches/02-fix-gcc4.diff0000664000000000000000000000335111764022757013311 0ustar --- sendip-2.5.orig/ipv4.c +++ sendip-2.5/ipv4.c @@ -209,8 +209,8 @@ fprintf(stderr,"Out of memory!\n"); return FALSE; } - sprintf(data,"0x%s",arg); - len = compact_string(data); + sprintf((char*)data,"0x%s",arg); + len = compact_string((char*)data); cp=(*data&0x80)>>7; cls=(*data&0x60)>>5; num=(*data&0x1F); @@ -237,7 +237,7 @@ free(data); return FALSE; } else { - addoption(0,0,7,len+2,data,pack); + addoption(0,0,7,len+2,(unsigned char*)data,pack); free(data); } } else if(!strcmp(opt+2, "ts")) { @@ -352,7 +352,7 @@ data_in = next; } - addoption(0,2,4,data_out-data+2,data,pack); + addoption(0,2,4,data_out-data+2,(unsigned char*)data,pack); free(data); /* End of timestamp parsing */ @@ -377,7 +377,7 @@ free(data); return FALSE; } else { - addoption(1,0,3,len+2,data,pack); + addoption(1,0,3,len+2,(unsigned char*)data,pack); free(data); } } else if(!strcmp(opt+2, "sid")) { @@ -399,7 +399,7 @@ free(data); return FALSE; } else { - addoption(1,0,9,len+2,data,pack); + addoption(1,0,9,len+2,(unsigned char*)data,pack); free(data); } } else { --- sendip-2.5.orig/tcp.c +++ sendip-2.5/tcp.c @@ -204,8 +204,8 @@ fprintf(stderr,"Out of memory!\n"); return FALSE; } - sprintf(data,"0x%s",arg); - len = compact_string(data); + sprintf((char*)data,"0x%s",arg); + len = compact_string((char*)data); if(len==1) addoption(*data,1,NULL,pack); else @@ -230,7 +230,7 @@ addoption(4,2,NULL,pack); } else if (!strcmp(opt+2, "sack")) { /* Selective Acknowledge rfc1323 */ - unsigned char *next; + char *next; u_int32_t le, re; u_int8_t *comb, *c; int count=0; debian/patches/04-hardening.diff0000664000000000000000000000167711764024366013655 0ustar --- sendip-2.5/Makefile.orig 2012-06-07 04:06:09.000000000 +0000 +++ sendip-2.5/Makefile 2012-06-07 04:07:13.000000000 +0000 @@ -8,15 +8,17 @@ #For Solaris, you may need #INSTALL=/usr/ucb/install -CFLAGS= -fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings \ - -Wstrict-prototypes -Wnested-externs -Winline -Werror -g -Wcast-align \ - -DSENDIP_LIBS=\"$(LIBDIR)\" +include /usr/share/dpkg/buildflags.mk + +CFLAGS += -fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings \ + -Wstrict-prototypes -Wnested-externs -Winline -Werror -g -Wcast-align \ + -DSENDIP_LIBS=\"$(LIBDIR)\" #-Wcast-align causes problems on solaris, but not serious ones -LDFLAGS= -g -rdynamic -lm +#LDFLAGS= -g -rdynamic -lm #LDFLAGS_SOLARIS= -g -lsocket -lnsl -lm LDFLAGS_SOLARIS= -g -lsocket -lnsl -lm -ldl -LDFLAGS_LINUX= -g -rdynamic -ldl -lm -LIBCFLAGS= -shared +LDFLAGS_LINUX = $(LDFLAGS) -ldl +LIBCFLAGS= -shared $(LDFLAGS) CC= gcc PROGS= sendip debian/patches/as-needed.patch0000664000000000000000000000210511767404153013473 0ustar Description: place libraries after object files in linker call Author: Ilya Barygin --- sendip-2.5.orig/Makefile +++ sendip-2.5/Makefile @@ -16,8 +16,9 @@ CFLAGS += -fPIC -fsigned-char -pipe -Wal #-Wcast-align causes problems on solaris, but not serious ones #LDFLAGS= -g -rdynamic -lm #LDFLAGS_SOLARIS= -g -lsocket -lnsl -lm -LDFLAGS_SOLARIS= -g -lsocket -lnsl -lm -ldl -LDFLAGS_LINUX = $(LDFLAGS) -ldl +LDFLAGS_SOLARIS= -g +LIBS_SOLARIS= -lsocket -lnsl -lm -ldl +LIBS_LINUX= -ldl LIBCFLAGS= -shared $(LDFLAGS) CC= gcc @@ -34,9 +35,9 @@ all: $(GLOBALOBJS) sendip $(PROTOS) send #there has to be a nice way to do this sendip: sendip.o gnugetopt.o gnugetopt1.o compact.o sh -c "if [ `uname` = Linux -o `uname` = GNU/kFreeBSD -o `uname` = GNU ] ; then \ -$(CC) -o $@ $(LDFLAGS_LINUX) $(CFLAGS) $+ ; \ +$(CC) -o $@ $(LDFLAGS) $(CFLAGS) $+ $(LIBS_LINUX) ; \ elif [ `uname` = SunOS ] ; then \ -$(CC) -o $@ $(LDFLAGS_SOLARIS) $(CFLAGS) $+ ;\ +$(CC) -o $@ $(LDFLAGS_SOLARIS) $(CFLAGS) $+ $(LIBS_SOLARIS) ;\ else \ $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $+ ; \ fi" debian/copyright0000664000000000000000000000120711764022105011121 0ustar This is Debian GNU/Linux's prepackaged version of sendip, a program to allow the sending of arbitrary IP packets. This package was put together by Jonathan McDowell It can be obtained from http://www.earth.li/projectpurple/progs/sendip.html Upstream author: Mike Ricketts Copyright 2000-2005 Mike Ricketts You are free to distribute this software under the terms of the GNU General Public License. The full text of this license can be found in the file /usr/share/common-licenses/GPL-2 The Debian packaging is (C) 2000-2011, Jonathan McDowell and is licensed under the GPLv2, see above. debian/source/0000775000000000000000000000000011764022151010467 5ustar debian/source/format0000664000000000000000000000001411764022151011675 0ustar 3.0 (quilt) debian/watch0000664000000000000000000000011411764022105010213 0ustar version=2 http://www.earth.li/projectpurple/files/sendip-([\d.]+)\.tar\.gz debian/changelog0000664000000000000000000000621511767404177011064 0ustar sendip (2.5-5ubuntu1) quantal; urgency=low * Fix FTBFS with --as-needed linker option. -- Ilya Barygin Sun, 17 Jun 2012 20:40:17 +0400 sendip (2.5-5) unstable; urgency=low * Switch to source format 3.0 (quilt). * Bump debhelper compat level to 8. * Fix compilation under GNU/Hurd (patch from Barry deFreese). (closes: #674968) * Enable hardening flags. * Bump policy version to 3.9.3 -- Jonathan McDowell Thu, 07 Jun 2012 03:50:37 +0000 sendip (2.5-4) unstable; urgency=low * Fix FTBFS with ld --as-needed (LP: #832954). Thanks to Angel Abad for forwarding. (closes: #641425) * Lintian/updated policy inspired cleanups: * Add ${misc:Depends} to binary deps. * Add build-arch + build-indep targets. * Point to GPLv2, not bare GPL. * Drop leading "A" from package description. * Bump policy version to 3.9.2 -- Jonathan McDowell Sun, 27 Nov 2011 19:39:08 +0000 sendip (2.5-3) unstable; urgency=low * Fix compilation under GNU/kFreeBSD by correcting linker flags (patch from Cyril Brulebois). (closes: 559410) * Bump debhelper compat level to 7. * Clean up debian/copyright a bit. * Bump Standards-Version to 3.8.3: * Add Homepage field to control file. -- Jonathan McDowell Sat, 26 Dec 2009 10:25:53 +0000 sendip (2.5-2) unstable; urgency=low * Fix gcc 4.0 compilation (patch from Andreas Jochens). (closes: #300776) * Add watch file. -- Jonathan McDowell Wed, 23 Mar 2005 17:05:07 +0000 sendip (2.5-1) unstable; urgency=low * New upstream release. -- Jonathan McDowell Sun, 13 Jun 2004 11:38:50 +0100 sendip (2.4-1) unstable; urgency=low * New upstream release. * Fixed spelling mistake in man page. (closes: #182594) -- Jonathan McDowell Sat, 31 May 2003 10:47:10 +0100 sendip (2.3-2) unstable; urgency=low * Fix stupid prefix bug. (closes: #173979) -- Jonathan McDowell Sun, 22 Dec 2002 23:20:06 +0000 sendip (2.3-1) unstable; urgency=low * New upstream release. (closes: #168879) -- Jonathan McDowell Wed, 11 Dec 2002 20:39:36 +0000 sendip (2.2-1) unstable; urgency=low * New upstream release. -- Jonathan McDowell Tue, 12 Nov 2002 19:57:55 +0000 sendip (2.1-1) unstable; urgency=low * New upstream release. (closes: Bug#135070) -- Jonathan McDowell Wed, 27 Feb 2002 00:17:12 +0000 sendip (2.0-1) unstable; urgency=low * New upstream release. * Added contrib directory. * Updated standards-version. -- Jonathan McDowell Sun, 17 Feb 2002 20:15:03 +0000 sendip (1.5-1) unstable; urgency=low * New upstream release. (closes: Bug#94448) -- Jonathan McDowell Fri, 27 Apr 2001 21:35:12 +0100 sendip (1.4-1) unstable; urgency=low * New upstream release. (closes: Bug#81480) -- Jonathan McDowell Sun, 7 Jan 2001 18:04:15 +0000 sendip (1.2-1) unstable; urgency=low * Initial Debianization. (closes: Bug#78155) -- Jonathan McDowell Mon, 27 Nov 2000 14:45:50 +0000