patch-2.4.9 linux/net/ipv6/icmp.c

Next file: linux/net/ipv6/ipv6_sockglue.c
Previous file: linux/net/ipv4/tcp_timer.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.8/linux/net/ipv6/icmp.c linux/net/ipv6/icmp.c
@@ -5,7 +5,7 @@
  *	Authors:
  *	Pedro Roque		<roque@di.fc.ul.pt>
  *
- *	$Id: icmp.c,v 1.32 2001/06/10 09:20:07 davem Exp $
+ *	$Id: icmp.c,v 1.35 2001/08/13 18:56:13 davem Exp $
  *
  *	Based on net/ipv4/icmp.c
  *
@@ -365,7 +365,7 @@
 	msg.daddr = &hdr->saddr;
 
 	len = skb->len - msg.offset + sizeof(struct icmp6hdr);
-	len = min(len, IPV6_MIN_MTU - sizeof(struct ipv6hdr));
+	len = min(unsigned int, len, IPV6_MIN_MTU - sizeof(struct ipv6hdr));
 
 	if (len < 0) {
 		printk(KERN_DEBUG "icmp: len problem\n");

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)