diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2012-12-27 12:56:23 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2012-12-27 12:56:23 +0100 |
commit | 79b4e12e6032faf6bb1f3feac385bd36ee53019e (patch) | |
tree | 0509f66417bbaf3429594ac7c359971d75b3ec49 /proto/ospf | |
parent | a92cf57dd6ba021a495fe7268c86dc8e6aeecbb2 (diff) |
Implements interface masks for choosing router id.
Router ID could be automatically determined based of subset of
ifaces/addresses specified by 'router id from' option. The patch also
does some minor changes related to router ID reconfiguration.
Thanks to Alexander V. Chernikov for most of the work.
Diffstat (limited to 'proto/ospf')
-rw-r--r-- | proto/ospf/ospf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index 6654e107..a3b6b2e7 100644 --- a/proto/ospf/ospf.c +++ b/proto/ospf/ospf.c @@ -729,6 +729,9 @@ ospf_reconfigure(struct proto *p, struct proto_config *c) struct ospf_iface *ifa, *ifx; struct ospf_iface_patt *ip; + if (proto_get_router_id(c) != po->router_id) + return 0; + if (po->rfc1583 != new->rfc1583) return 0; |