From owner-p4-projects@FreeBSD.ORG Mon Jul 3 09:42:45 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 463FF16A55E; Mon, 3 Jul 2006 09:42:45 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E82EA16A55C for ; Mon, 3 Jul 2006 09:42:44 +0000 (UTC) (envelope-from clem1@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C5DB43D5E for ; Mon, 3 Jul 2006 09:42:39 +0000 (GMT) (envelope-from clem1@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k639gdSx065529 for ; Mon, 3 Jul 2006 09:42:39 GMT (envelope-from clem1@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k639gcbG065525 for perforce@freebsd.org; Mon, 3 Jul 2006 09:42:38 GMT (envelope-from clem1@FreeBSD.org) Date: Mon, 3 Jul 2006 09:42:38 GMT Message-Id: <200607030942.k639gcbG065525@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to clem1@FreeBSD.org using -f From: Clément Lecigne To: Perforce Change Reviews Cc: Subject: PERFORCE change 100478 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jul 2006 09:42:45 -0000 http://perforce.freebsd.org/chv.cgi?CH=100478 Change 100478 by clem1@clem1_ipv6vulns on 2006/07/03 09:42:25 ISIC port to IPv6... almost done, icmpsicng needs more improvements. Affected files ... .. //depot/projects/soc2006/clem1_ipv6vulns/fuzzers/isicng/ChangeLog#1 add .. //depot/projects/soc2006/clem1_ipv6vulns/fuzzers/isicng/Makefile.in#1 add .. //depot/projects/soc2006/clem1_ipv6vulns/fuzzers/isicng/TODO#1 add .. //depot/projects/soc2006/clem1_ipv6vulns/fuzzers/isicng/configure#1 add .. //depot/projects/soc2006/clem1_ipv6vulns/fuzzers/isicng/configure.in#1 add .. //depot/projects/soc2006/clem1_ipv6vulns/fuzzers/isicng/icmpsicng.c#1 add .. //depot/projects/soc2006/clem1_ipv6vulns/fuzzers/isicng/isicng.c#3 edit .. //depot/projects/soc2006/clem1_ipv6vulns/fuzzers/isicng/tcpsicng.c#1 add .. //depot/projects/soc2006/clem1_ipv6vulns/fuzzers/isicng/udpsicng.c#1 add Differences ... ==== //depot/projects/soc2006/clem1_ipv6vulns/fuzzers/isicng/isicng.c#3 (text+ko) ==== @@ -214,7 +214,7 @@ } printf("Compiled against Libnet %s\n", LIBNET_VERSION); - puts("Installing Signal Handlers.\n"); + puts("Installing Signal Handlers."); if (signal(SIGTERM, &sighandler) == SIG_ERR) puts("Failed to install signal handler for SIGTERM"); if (signal(SIGINT, &sighandler) == SIG_ERR) @@ -425,25 +425,15 @@ (u_int16_t) payload[cx] = rand() & 0xffff; (u_int16_t) payload[payload_s] = rand() & 0xffff; - - /* - if (printout) { - printf("%s ->", - inet_ntoa(*((struct in_addr*) &src_ip ))); - printf(" %s tos[%i] id[%i] ver[%i] frag[%i]\n", - inet_ntoa(*((struct in_addr*) &dst_ip )), tos, - id, ver, frag_off); - } - */ if (skip <= acx) { for (cx = 0; cx < repeat; cx++) { #ifdef LIBNET_BSDISH_OS - c = libnet_write_link(l, buf, 0xe + 0x28 + payload_s); + c = libnet_write_link(l, buf, off + payload_s); #else /* !BSD */ - c = libnet_write_raw_ipv6(l, buf, 0xe + 0x28 + payload_s); + c = libnet_write_raw_ipv6(l, buf, off + payload_s); #endif if (c != -1) datapushed += c; @@ -490,9 +480,9 @@ fprintf(stderr, "usage: %s [-v] -s -d " #ifdef LIBNET_BSDISH_OS - "-D \n [-S ]" + "-i -D \n [-S ]" #else /* !BSD */ - "\n " + "\n[-i ] " #endif "[-p ] [-k ]\n" " [-x ] [-r ]\n" @@ -505,9 +495,9 @@ " [-v] causes packet info to be printed out -- DEBUGGING\n\n" " ex: -s a.b.c.d -d a.b.c.d -D a:b:c:d:e:f -F100\n" " 100%% of the packets will have fragments header\n" - " ex: -s a.b.c.d -d a.b.c.d -D a:b:c:d:e:f -p 100 -r 103334\n" + " ex: -s a:b:c::d -d b:d:c::d -D a:b:c:d:e:f -p 100 -r 103334\n" " ex: -s rand -d rand -D a:b:c:d:e:f -r 23342\n" - " ^^^^ causes random source addr\n" + " ^^^^ causes random source addr and dst addr\n" " ex: -s rand -d rand -D a:b:c:d:e:f -k 10000 -p 10001 -r 666\n" " Will only send the 10001 packet with random seed 666\n" " this is especially useful if you suspect that packet is\n"