Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jul 2006 08:48:55 GMT
From:      Clément Lecigne <clem1@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 101082 for review
Message-ID:  <200607090848.k698mtxi080237@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607090848.k698mtxi080237>