patch-2.2.0-pre8 linux/net/ipv4/ip_masq.c

Next file: linux/net/ipv4/ipconfig.c
Previous file: linux/net/ipv4/ip_input.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre7/linux/net/ipv4/ip_masq.c linux/net/ipv4/ip_masq.c
@@ -4,7 +4,7 @@
  *
  * 	Copyright (c) 1994 Pauline Middelink
  *
- *	$Id: ip_masq.c,v 1.32 1999/01/04 20:37:05 davem Exp $
+ *	$Id: ip_masq.c,v 1.33 1999/01/15 06:45:17 davem Exp $
  *
  *
  *	See ip_fw.c for original log
@@ -1678,7 +1678,8 @@
 			return -1;
 		}
 		ciph = (struct iphdr *) (icmph + 1);
-
+		cicmph = (struct icmphdr *)((char *)ciph + 
+					    (ciph->ihl<<2));
 		/* Now we do real damage to this packet...! */
 		/* First change the dest IP address, and recalc checksum */
 		iph->daddr = ms->saddr;
@@ -1753,6 +1754,7 @@
 		return -1;
 	}
 	ciph = (struct iphdr *) (icmph + 1);
+	pptr = (__u16 *)&(((char *)ciph)[ciph->ihl*4]);
 
 	/* Now we do real damage to this packet...! */
 	/* First change the dest IP address, and recalc checksum */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov