Make it compile again (stupid makefiles!), make quiet option work
(multicast/broadcast options are currently unimplemented).
This commit is contained in:
parent
77cedad1f6
commit
663683a575
2 changed files with 5 additions and 2 deletions
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue