PERFORCE change 101082 for review

Clément Lecigne clem1 at FreeBSD.org
Sun Jul 9 08:48:59 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=101082

Change 101082 by clem1 at 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);
 


More information about the p4-projects mailing list