View | Details | Raw Unified | Return to bug 80161
Collapse All | Expand All

(-)dnshijacker/files/dnshijacker.c.patch (+11 lines)
Line 0 Link Here
1
--- dnshijacker.c.orig	Thu Mar 31 15:00:10 2005
2
+++ dnshijacker.c	Thu Mar 31 15:01:43 2005
3
@@ -733,7 +733,7 @@ void spoof_dns (int socket)   {
4
      *  source and destination are swapped here because we are spoofing a reply
5
      */
6
 
7
-    libnet_build_ip(LIBNET_UDP_H + LIBNET_DNS_H,
8
+    libnet_build_ip(packet_size - LIBNET_IP_H,
9
             0,                                   /* ip tos              */
10
             0,                                   /* ip id               */
11
             0,                                   /* fragmentation bits  */

Return to bug 80161