ifa->up = 1;
+ if (ifa->cf->passive)
+ return;
+
rip_send_request(p, ifa);
rip_send_table(p, ifa, ifa->addr, 0);
}
ifa->tx_pending = 0;
ifa->req_pending = 0;
- if (ifa->cf->demand_circuit)
+ if (ifa->cf->demand_circuit && !ifa->cf->passive)
rip_send_flush(p, ifa);
WALK_LIST_FIRST(n, ifa->neigh_list)
(ifa->next_regular > (current_time() + new->update_time)))
ifa->next_regular = current_time() + (random() % new->update_time) + 100 MS;
+ if (ifa->up && new->demand_circuit && (new->passive != old->passive))
+ {
+ if (new->passive)
+ rip_send_flush(p, ifa);
+ else
+ {
+ rip_send_request(p, ifa);
+ rip_send_table(p, ifa, ifa->addr, 0);
+ }
+ }
+
if (new->check_link != old->check_link)
rip_iface_update_state(ifa);