]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Make it compile again (stupid makefiles!), make quiet option work
authorPavel Machek <pavel@ucw.cz>
Tue, 12 Jan 1999 16:50:38 +0000 (16:50 +0000)
committerPavel Machek <pavel@ucw.cz>
Tue, 12 Jan 1999 16:50:38 +0000 (16:50 +0000)
(multicast/broadcast options are currently unimplemented).

proto/rip/rip.c
proto/rip/rip.h

index 68d294974e99163965f2868fdd9f5b80503bb1c3..82c7d9aea42b4a443408f200bef15fc1a327b489 100644 (file)
@@ -362,6 +362,9 @@ rip_timer(timer *t)
     WALK_LIST( rif, P->interfaces ) {
       struct iface *iface = rif->iface;
 
+      if (rif->patt->mode == IM_QUIET)
+       continue;
+
       if (!iface) continue;
       if (!(iface->flags & IF_UP)) continue;
       if (iface->flags & (IF_IGNORE | IF_LOOPBACK)) continue;
@@ -507,7 +510,7 @@ rip_if_notify(struct proto *p, unsigned c, struct iface *old, struct iface *new)
     if (!k) return; /* We are not interested in this interface */
     DBG("adding interface %s\n", new->name );
     rif = new_iface(p, new, new->flags);
-    rif->metric = k->u.rip.metric;
+    rif->patt = k;
     add_head( &P->interfaces, NODE rif );
   }
 }
index 0fcda20dae997cadf02bc3a4bab62b62edaa206e..4839016d7dc9c5d44903ed5cf05c36fe21e2fbc4 100644 (file)
@@ -65,7 +65,7 @@ struct rip_interface {
   struct iface *iface;
   sock *sock;
   struct rip_connection *busy;
-  
+  struct rip_patt *patt;  
 
   int metric;          /* User configurable data */
   int mode;