patch-2.3.37 linux/net/ipv4/ipmr.c

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

diff -u --recursive --new-file v2.3.36/linux/net/ipv4/ipmr.c linux/net/ipv4/ipmr.c
@@ -9,7 +9,7 @@
  *	as published by the Free Software Foundation; either version
  *	2 of the License, or (at your option) any later version.
  *
- *	Version: $Id: ipmr.c,v 1.48 1999/12/15 22:39:16 davem Exp $
+ *	Version: $Id: ipmr.c,v 1.49 2000/01/06 00:41:56 davem Exp $
  *
  *	Fixes:
  *	Michael Chastain	:	Incorrect size of copying.
@@ -1095,7 +1095,7 @@
 	iph->protocol	=	IPPROTO_IPIP;
 	iph->ihl	=	5;
 	iph->tot_len	=	htons(skb->len);
-	iph->id		=	htons(ip_id_count++);
+	ip_select_ident(iph, skb->dst);
 	ip_send_check(iph);
 
 	skb->h.ipiph = skb->nh.iph;

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