[netfilter-cvslog] r3351 - trunk/nfsim/core/ipv4

rusty at netfilter.org rusty at netfilter.org
Mon Dec 13 13:19:57 CET 2004


Author: rusty at netfilter.org
Date: 2004-12-13 13:19:56 +0100 (Mon, 13 Dec 2004)
New Revision: 3351

Modified:
   trunk/nfsim/core/ipv4/ipv4.c
Log:
2.6 doesn't have pmtu: #ifdef it.


Modified: trunk/nfsim/core/ipv4/ipv4.c
===================================================================
--- trunk/nfsim/core/ipv4/ipv4.c	2004-12-13 12:15:55 UTC (rev 3350)
+++ trunk/nfsim/core/ipv4/ipv4.c	2004-12-13 12:19:56 UTC (rev 3351)
@@ -232,7 +232,9 @@
 				rth->u.dst.output = ip_output;
 				rth->u.dst.input  = ip_local_deliver;
 				rth->u.dst.dev    = &loopback_dev;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
 				rth->u.dst.pmtu	  = 1500;
+#endif
 				rth->rt_src       = rth->fl.fl4_src
 				                  = flp->fl4_src;
 				rth->rt_dst       = rth->fl.fl4_dst
@@ -266,7 +268,9 @@
 			rth->u.dst.dev    =  route->interface;
 			rth->u.dst.output = ip_output;
 			rth->u.dst.input  = NULL;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
 			rth->u.dst.pmtu	  = 1500;
+#endif
 			rth->rt_src       = rth->fl.fl4_src = flp->fl4_src;
 			if (!rth->rt_src)
 				rth->rt_src




More information about the netfilter-cvslog mailing list