From owner-p4-projects@FreeBSD.ORG Sun Jul 9 08:48:59 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 E8DAC16A4E1; Sun, 9 Jul 2006 08:48:58 +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 C42D416A4DD for ; Sun, 9 Jul 2006 08:48:58 +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 E5B1043D46 for ; Sun, 9 Jul 2006 08:48:55 +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 k698mtLN080240 for ; Sun, 9 Jul 2006 08:48:55 GMT (envelope-from clem1@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k698mtxi080237 for perforce@freebsd.org; Sun, 9 Jul 2006 08:48:55 GMT (envelope-from clem1@FreeBSD.org) Date: Sun, 9 Jul 2006 08:48:55 GMT Message-Id: <200607090848.k698mtxi080237@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 101082 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: Sun, 09 Jul 2006 08:48:59 -0000 http://perforce.freebsd.org/chv.cgi?CH=101082 Change 101082 by clem1@clem1_ipv6vulns on 2006/07/09 08:48:19 Under Linux, we can use IP_HDRINCL on an IPv6 socket. daddos.c - tool that replies with a Neighbor Advertisement to all DAD messages. (DOS) Affected files ... .. //depot/projects/soc2006/clem1_ipv6vulns/attacking-tools/daddos/DESCRIPTION#1 add .. //depot/projects/soc2006/clem1_ipv6vulns/attacking-tools/daddos/daddos.c#1 add .. //depot/projects/soc2006/clem1_ipv6vulns/libnet/src/libnet_raw.c#2 edit Differences ... ==== //depot/projects/soc2006/clem1_ipv6vulns/libnet/src/libnet_raw.c#2 (text+ko) ==== @@ -236,6 +236,13 @@ strerror(errno)); goto bad; } + if (setsockopt (l->fd, IPPROTO_IPV6, IP_HDRINCL, oneptr, sizeof(one)) == -1) + { + snprintf(l->err_buf, LIBNET_ERRBUF_SIZE, + "%s(): set IP_HDRINCL failed: %s\n", __func__, + strerror(errno)); + goto bad; + } #endif /* __linux__ */ return (l->fd);