]> git.puffer.fish Git - mirror/frr.git/commit
if: fix same connected address 15944/head
authorLoïc Sang <loic.sang@6wind.com>
Mon, 6 May 2024 15:30:01 +0000 (17:30 +0200)
committerLoïc Sang <loic.sang@6wind.com>
Mon, 6 May 2024 16:16:03 +0000 (18:16 +0200)
commit9eda89a244d4c11d5285ba20707d5e87ebcb33ed
treee981a592d2f8fa9c160dd02bd0fd102e0cec94f2
parent216bac2826d60c47615cf50df1833c5c8543c75e
if: fix same connected address

Using the same address with a different prefix length is not supported.
If we configure two identical addresses with different
netmasks 192.168.1.1/30 and then 192.168.1.1/29. Zebra sends
'192.168.1.1' with a prefix length of 29. However, the function
'zebra_interface_address_read()' reads '192.168.1.1/30' because the
prefix length is not checked.

Using 'same_prefix()' is more convenient.

Signed-off-by: Loïc Sang <loic.sang@6wind.com>
lib/if.c