A router can, through misconfiguration, have an advertise address that points a different router. This can result in a router trying to establish a link to the wrong router, or multiple links to the same router, thinking that it's dialing two different routers.
To address this:
- Add the id of the router being dialed to the dial request
- If this value is provided to the listening router, it can verify that the id matches its own id
- If the ids don't match, reject the connection and log an error.
This will ensure that we don't end up with flip-flopping links due to duplicate link rejection.
Longer term we could also generate an alert.