linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / net / ipv6 / ip6_fib.c
index 7642212..1bf6d9a 100644 (file)
@@ -19,6 +19,7 @@
  *                             remove ip6_null_entry from the top of
  *                             routing table.
  */
+#include <linux/config.h>
 #include <linux/errno.h>
 #include <linux/types.h>
 #include <linux/net.h>
@@ -1104,6 +1105,7 @@ static int fib6_age(struct rt6_info *rt, void *arg)
        if (rt->rt6i_flags&RTF_EXPIRES && rt->rt6i_expires) {
                if (time_after(now, rt->rt6i_expires)) {
                        RT6_TRACE("expiring %p\n", rt);
+                       rt6_reset_dflt_pointer(rt);
                        return -1;
                }
                gc_args.more++;