Accepts a change of OSPFv3 neighbor's IP address.
Thanks to Pierre Pfister for the patch.
This commit is contained in:
parent
a15dab76f9
commit
33be3ba713
1 changed files with 8 additions and 0 deletions
|
@ -152,6 +152,14 @@ ospf_hello_receive(struct ospf_packet *ps_i, struct ospf_iface *ifa,
|
||||||
n->iface_id = ntohl(ps->iface_id);
|
n->iface_id = ntohl(ps->iface_id);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#ifdef OSPFv3 /* NOTE: this could also be relevant for OSPFv2 on PtP ifaces */
|
||||||
|
else if (!ipa_equal(faddr, n->ip))
|
||||||
|
{
|
||||||
|
OSPF_TRACE(D_EVENTS, "Neighbor address changed from %I to %I", n->ip, faddr);
|
||||||
|
n->ip = faddr;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
ospf_neigh_sm(n, INM_HELLOREC);
|
ospf_neigh_sm(n, INM_HELLOREC);
|
||||||
|
|
||||||
pnrid = (u32 *) ((struct ospf_hello_packet *) (ps + 1));
|
pnrid = (u32 *) ((struct ospf_hello_packet *) (ps + 1));
|
||||||
|
|
Loading…
Reference in a new issue