--- icmpush-2.2.orig/cuenta.c +++ icmpush-2.2/cuenta.c @@ -3,7 +3,7 @@ /*****************************************/ #include #include -void main(int argc, char *argv[]) +int main(int argc, char *argv[]) { register int i; int final, princ; @@ -15,7 +15,7 @@ { for ( i = princ; i <= final; i++ ) printf("%d ", i); - return; + return 0; } } #ifdef SPANISH @@ -23,4 +23,5 @@ #else printf("Use: %s begin# end#\n", argv[0]); #endif + return 1; } --- icmpush-2.2.orig/debian/changelog +++ icmpush-2.2/debian/changelog @@ -0,0 +1,63 @@ +icmpush (2.2-6.2) unstable; urgency=medium + + * Non-maintainer upload. + * debian/rules: Add build-{arch,indep} (Closes: #999158). + + -- Marcos Talau Wed, 02 Nov 2022 20:19:02 -0300 + +icmpush (2.2-6.1) unstable; urgency=medium + + * Non-maintainer upload. + * Update DH level to 9 to avoid a FTBFS. (Closes: #800282) + * debian/compat: created. + * debian/control: + - Added the ${misc:Depends} variable to provide the + right install dependencies. + - Bumped Standards-Version to 3.9.6. + * debian/rules: commented the line "export DH_COMPAT=2" to + avoid the conflict with the new DH level. + + -- Raphael Mota Ramos Tue, 05 Jan 2016 11:00:47 -0200 + +icmpush (2.2-6) unstable; urgency=low + + * New maintainer, closes: #189625. + * Changed standards version 2.5.3-3.5.8. + + -- Ola Lundqvist Sun, 15 Jun 2003 23:04:01 +0200 + +icmpush (2.2-5) unstable; urgency=low + + * Recompiled with the new libc6 and a recent libnet0 which uses + PF_PACKET interface to build packages. + + -- Domenico Andreoli Tue, 5 Nov 2002 23:11:02 +0100 + +icmpush (2.2-4) unstable; urgency=low + + * Any occurrence of sys_errlist has been changed to strerror, this + makes icmpush compile under hurd. Patch courtesy of + James Morrison (Closes: #112501). + * Removed emacs cruft at the botton of (this) changelog. + + -- Domenico Andreoli Tue, 18 Sep 2001 11:36:26 +0200 + +icmpush (2.2-3) unstable; urgency=low + + * Added versioned Build-Depend for debhelper. + + -- Domenico Andreoli Tue, 6 Mar 2001 15:17:43 +0100 + +icmpush (2.2-2) unstable; urgency=low + + * Switched to debhelper compatibilty version 2. + * Added some missing includes for headers (time.h) which made icmpush + sources uncompilable on recently upgraded unstable boxes. + + -- Domenico Andreoli Wed, 28 Feb 2001 17:11:44 +0100 + +icmpush (2.2-1) unstable; urgency=low + + * Initial Release. + + -- Domenico Andreoli Thu, 14 Sep 2000 15:44:13 +0200 --- icmpush-2.2.orig/debian/compat +++ icmpush-2.2/debian/compat @@ -0,0 +1 @@ +9 --- icmpush-2.2.orig/debian/control +++ icmpush-2.2/debian/control @@ -0,0 +1,21 @@ +Source: icmpush +Section: net +Priority: extra +Maintainer: Ola Lundqvist +Standards-Version: 3.9.6 +Build-Depends: debhelper (>= 9) + +Package: icmpush +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: ICMP packet builder + icmpush is a tool that builds ICMP packets fully customized + from command line. + . + It supports the following ICMP error types: Redirect, Source + Quench, Time Exceeded, Destination Unreach and Parameter + Problem. + . + And the following ICMP information types: Address Mask Request, + Timestamp, Information Request, Echo Request, Router Solicitation + and Router Advertisement. --- icmpush-2.2.orig/debian/copyright +++ icmpush-2.2/debian/copyright @@ -0,0 +1,11 @@ +This package was debianized by Domenico Andreoli on +Thu, 14 Sep 2000 15:44:13 +0200. + +It was downloaded from http://www.securityfocus.com/data/tools/icmpush22.tar.gz + +Upstream Author: Slayer + +Copyright: GNU GPL 2 + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. --- icmpush-2.2.orig/debian/icmpush.dirs +++ icmpush-2.2/debian/icmpush.dirs @@ -0,0 +1 @@ +usr/bin --- icmpush-2.2.orig/debian/icmpush.docs +++ icmpush-2.2/debian/icmpush.docs @@ -0,0 +1,3 @@ +BUGS +README + --- icmpush-2.2.orig/debian/icmpush.files +++ icmpush-2.2/debian/icmpush.files @@ -0,0 +1 @@ +usr/bin/icmpush --- icmpush-2.2.orig/debian/rules +++ icmpush-2.2/debian/rules @@ -0,0 +1,60 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +#export DH_COMPAT=2 + +build: build-stamp +build-stamp: + dh_testdir + $(MAKE) linuz + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp. + cp icmpush `pwd`/debian/icmpush/usr/bin + +# 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_installmanpages + dh_installchangelogs CHANGES + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch + +build-arch: build +build-indep: build + +.PHONY: build build-arch build-indep clean binary-indep binary-arch binary install --- icmpush-2.2.orig/icmpush.c +++ icmpush-2.2/icmpush.c @@ -49,6 +49,7 @@ #include #include #include +#include #include "compat.h" #include "misc.h" @@ -290,17 +291,17 @@ if ( setsockopt( sock, SOL_SOCKET, SO_BROADCAST, (char *)&on, sizeof(on) ) == -1 ) if ( more_verbose) - fprintf(stderr,"%s: SO_BROADCAST -> %s\n", prog, sys_errlist[errno] ); + fprintf(stderr,"%s: SO_BROADCAST -> %s\n", prog, strerror(errno) ); if ( setsockopt( sock, SOL_SOCKET, SO_RCVBUF, (char *)&tam_sock_buf, sizeof(tam_sock_buf) ) == -1 ) if ( more_verbose ) - fprintf(stderr,"%s: SO_RCVBUF -> %s\n", prog, sys_errlist[errno] ); + fprintf(stderr,"%s: SO_RCVBUF -> %s\n", prog, strerror(errno) ); if (setsockopt( sock, SOL_SOCKET, SO_SNDBUF, (char *)&tam_sock_buf, sizeof(tam_sock_buf) ) == -1 ) if ( more_verbose ) - fprintf(stderr,"%s: SO_SNDBUF -> %s\n", prog, sys_errlist[errno] ); + fprintf(stderr,"%s: SO_SNDBUF -> %s\n", prog, strerror(errno) ); } @@ -887,7 +888,7 @@ else fprintf(stdout, "%-2d= %s ", entry, inet_ntoa(data_rdisc->router_addr)); - fprintf(stdout, " Prefer. -> %ld\n", + fprintf(stdout, " Prefer. -> %i\n", ntohl(data_rdisc->pref_level.s_addr) ); } @@ -1044,7 +1045,7 @@ void salir_con_error( int num_error ) { fprintf(stderr,"%s: %s -> %s\n", prog, mensaje_err[num_error][LNG], - sys_errlist[errno] ); + strerror(errno) ); exit(num_error); } --- icmpush-2.2.orig/mtu.c +++ icmpush-2.2/mtu.c @@ -76,7 +76,7 @@ == -1 ) { if ( more_verbose ) - fprintf(stderr, "setsockopt -> %s\n", sys_errlist[errno] ); + fprintf(stderr, "setsockopt -> %s\n", strerror(errno) ); return 1; } @@ -84,7 +84,7 @@ == -1 ) { if ( more_verbose ) - fprintf( stderr,"connect -> %s\n", sys_errlist[errno] ); + fprintf( stderr,"connect -> %s\n", strerror(errno) ); return 1; } @@ -92,7 +92,7 @@ if ( getsockname( sock_rt, (struct sockaddr *)&iface_out, &len ) == -1 ) { if ( more_verbose ) - fprintf(stderr,"getsockname -> %s\n", sys_errlist[errno] ); + fprintf(stderr,"getsockname -> %s\n", strerror(errno) ); return 1; } @@ -134,7 +134,7 @@ { if ( more_verbose ) fprintf(stderr, "When trying socket() to kernel -> %s", - sys_errlist[errno]); + strerror(errno)); return MTU_DFL; } @@ -143,7 +143,7 @@ if (ioctl( sock_disp, SIOCGIFCONF, &ifc) < 0) { if ( more_verbose ) - fprintf(stderr, "SIOCGIFCONF -> %s", sys_errlist[errno]); + fprintf(stderr, "SIOCGIFCONF -> %s", strerror(errno)); return MTU_DFL; } ifaz = ifc.ifc_req; @@ -190,7 +190,7 @@ if (ioctl( sock_disp, SIOCGIFADDR, &if_aux) < 0) { if ( more_verbose ) - fprintf(stderr,"SIOCGIFADDR -> %s\n", sys_errlist[errno]); + fprintf(stderr,"SIOCGIFADDR -> %s\n", strerror(errno)); return 1; } @@ -201,7 +201,7 @@ if (ioctl(sock_disp, SIOCGIFMTU, &if_aux) < 0) { if ( more_verbose ) - fprintf(stderr,"SIOCGIFMTU -> %s\n", sys_errlist[errno]); + fprintf(stderr,"SIOCGIFMTU -> %s\n", strerror(errno)); return 1; } @@ -216,7 +216,7 @@ if ( ioctl( sock_disp, SIOCGIFFLAGS, &if_aux ) < 0 ) { if ( more_verbose ) - fprintf(stderr,"SIOCGIFFLAGS -> %s\n", sys_errlist[errno]); + fprintf(stderr,"SIOCGIFFLAGS -> %s\n", strerror(errno)); return 1; } mi_interfaz->ifaz_flags = if_aux.ifr_flags; --- icmpush-2.2.orig/parser.c +++ icmpush-2.2/parser.c @@ -296,7 +296,7 @@ add_router( packet, router_addr, preference ); } else - fprintf(stderr, "strtok() error -> %s\n", sys_errlist[errno]); + fprintf(stderr, "strtok() error -> %s\n", strerror(errno)); args++; continue; } @@ -513,7 +513,7 @@ init->router = (struct router *)malloc(sizeof(struct router)); if ( init->router == NULL ) { - fprintf(stderr, "Malloc error -> %s\n", sys_errlist[errno]); + fprintf(stderr, "Malloc error -> %s\n", strerror(errno)); exit(0); } init->num_routers++; @@ -537,7 +537,7 @@ cursor->next = (struct router *)malloc(sizeof(struct router)); if (!cursor) { - fprintf(stderr, "Malloc error -> %s\n", sys_errlist[errno]); + fprintf(stderr, "Malloc error -> %s\n", strerror(errno)); return; } init->num_routers++;