0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-18 00:58:42 +00:00
bird/proto/ospf
Ondrej Zajicek (work) c1632ad0f3 OSPF: Fix handling of unnumbered PtPs
This issue has a long history. In 2012, we changed data field for
unnumbered PtP links from iface id (specified by RFC) to IP address based
on reports of bugs in Quagga that required it, and we used out-of-band
information to distinquish unnumberred PtPs with the same local IP
address.

Then with OSPF graceful restart implementation, we found that we can no
longer use out-of-band information, and we need to use only LSAdb info
for routing table calculation, but i forgot to finish handling of this
case, so multiple unnumbered PtPs with the same local IP addresses were
broken.

Considering that even recent Mikrotik RouterOS has broken next hop
calculation that depends on IP address in PtP link data field, we
cannot just switch back to the iface id for unnumbered PtP links.

The patch makes two changes: First, it goes back to use out-of-band
(position) info for distinguishing local interfaces in SPF when graceful
restart is not enabled, while still uses LSAdb-only approach for SPF
calculation when graceful restart is enabled.

Second, it adds OSPF interface option 'ptp address', which controls
whether IP address or iface id is used in data field. It is enabled
by default except for unnumbered PtP links with enabled graceful
restart.

Thanks to Kenth Eriksson for the bugreport and Joakim Tjernlund for
suggestions.
2020-05-26 18:21:43 +02:00
..
config.Y OSPF: Fix handling of unnumbered PtPs 2020-05-26 18:21:43 +02:00
dbdes.c OSPF: Fix handling of NSSA option flags 2019-07-10 18:25:36 +02:00
Doc Doc: Rename code documentation files back to Doc 2018-12-14 02:03:42 +01:00
hello.c OSPF: Fix handling of NSSA option flags 2019-07-10 18:25:36 +02:00
iface.c OSPF: Fix handling of unnumbered PtPs 2020-05-26 18:21:43 +02:00
lsack.c OSPF: Send direct acknowledgements as unicast 2019-02-03 20:22:40 +01:00
lsalib.c OSPF: Fix handling of NSSA option flags 2019-07-10 18:25:36 +02:00
lsalib.h OSPF: Support for graceful restart 2019-06-30 21:30:41 +02:00
lsreq.c OSPF: Opaque LSAs and Router Information LSA 2019-01-24 22:45:27 +01:00
lsupd.c OSPF: Support for graceful restart 2019-06-30 21:30:41 +02:00
Makefile Unit Testing for BIRD 2016-11-09 16:36:34 +01:00
neighbor.c OSPF: Zero-initialization of a temporary neighbor 2020-05-01 15:19:12 +02:00
ospf.c Nest: Added const to ea_show just to declare that this shouldn't really change anything 2020-05-01 15:19:12 +02:00
ospf.h OSPF: Fix handling of unnumbered PtPs 2020-05-26 18:21:43 +02:00
packet.c No more warnings ... 2018-09-18 14:21:11 +02:00
rt.c OSPF: Fix handling of unnumbered PtPs 2020-05-26 18:21:43 +02:00
rt.h OSPF: Support for graceful restart 2019-06-30 21:30:41 +02:00
topology.c OSPF: Fix handling of unnumbered PtPs 2020-05-26 18:21:43 +02:00
topology.h OSPF: Fix handling of external routes on graceful restart 2019-07-09 03:39:19 +02:00