]> arthur.barton.de Git - netatalk.git/commitdiff
split horizon on router tables, wihout it poisoned routes are never deleted
authordidg <didg>
Sun, 13 Dec 2009 00:33:58 +0000 (00:33 +0000)
committerdidg <didg>
Sun, 13 Dec 2009 00:33:58 +0000 (00:33 +0000)
etc/atalkd/main.c

index b8080c29150a56646de93a5f2b167911a9e1578e..6c9aeb2c627926b6ce79546831fdbd1b32deb777 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: main.c,v 1.22 2009-10-14 02:24:05 didg Exp $
+ * $Id: main.c,v 1.23 2009-12-13 00:33:58 didg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved. See COPYRIGHT.
@@ -582,6 +582,11 @@ static void as_timer(int sig _U_)
                        continue;
                    }
 
+                   /* split horizon */
+                   if (rtmp->rt_iface == iface) {
+                       continue;
+                   }
+
                    if ((( rtmp->rt_flags & RTMPTAB_EXTENDED ) &&
                            data + 2 * SZ_RTMPTUPLE > end ) ||
                            data + SZ_RTMPTUPLE > end ) {