summaryrefslogtreecommitdiff
path: root/lib/command_graph.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-10-12 16:05:23 -0400
committerDonald Sharp <sharpd@nvidia.com>2022-10-12 16:20:30 -0400
commit5136e6729464c57353be1ad4a55fcbdbbfc7779d (patch)
tree2d597a6df29ba1b84754681411d32cd7b4802af5 /lib/command_graph.c
parent84600693264c6bafc02a21b4445a464ec9f8385a (diff)
ospfd: Allow unnumbered and numbered addresses to co-exist better
When forming a neighbor relationship on an interface, ospf is currently evaluating unnumbered as highest priority, without any consideration for if you have /32's and non /32's on the interface. Effectively if I have something like this: int foo0 ip address 192.168.119.1/24 ! router ospf network 0.0.0.0/0 area 0 ! ospf will form a neighbor on foo0 if it exists. Now suppose someone does this: int foo0 ip address 192.168.120.1/32 This will create the unnumbered interface on foo0 and the peering will come down immediately. The problem here is that the original designers of the unnumbered code for ospf didn't envision end operators mixing and matching addresses on an interface like this ( for perfectly legitimate reasons I might add ). So if ospf has both numbered and unnumbered let's match against the numbered first and then unnumbered. This solves the problem Fixes: #6823 Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/command_graph.c')
0 files changed, 0 insertions, 0 deletions