patch-2.2.4 linux/net/ipv6/ip6_fib.c

Next file: linux/net/ipv6/ip6_output.c
Previous file: linux/net/ipv6/icmp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.3/linux/net/ipv6/ip6_fib.c linux/net/ipv6/ip6_fib.c
@@ -5,7 +5,7 @@
  *	Authors:
  *	Pedro Roque		<roque@di.fc.ul.pt>	
  *
- *	$Id: ip6_fib.c,v 1.15 1998/08/26 12:04:55 davem Exp $
+ *	$Id: ip6_fib.c,v 1.16 1999/03/21 05:22:52 davem Exp $
  *
  *	This program is free software; you can redistribute it and/or
  *      modify it under the terms of the GNU General Public License
@@ -103,8 +103,8 @@
 static __inline__ u32 fib6_new_sernum(void)
 {
 	u32 n = ++rt_sernum;
-	if (n == 0)
-		n = ++rt_sernum;
+	if ((__s32)n <= 0)
+		rt_sernum = n = 1;
 	return n;
 }
 
@@ -1157,7 +1157,6 @@
 			return -1;
 		}
 		gc_args.more++;
-		return 0;
 	}
 
 	/*
@@ -1171,7 +1170,6 @@
 			return -1;
 		}
 		gc_args.more++;
-		return 0;
 	}
 
 	return 0;

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