netifd: fix IPv4 route target masking
authorJo-Philipp Wich <jo@mein.io>
Tue, 14 Nov 2023 13:38:11 +0000 (14:38 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 14 Nov 2023 13:38:11 +0000 (14:38 +0100)
commit842932a63d8993150ff339f11f0cd0d5dc45e6cc
tree5dcaf446c7440558da648fb828b684164b52f456
parent51bb178824f937b1f1988c9351e3586f81c18b74
netifd: fix IPv4 route target masking

A previous commit supposed to mask out excess host bits in route targets
failed to correctly calculate the mask value, causing it to produce
improper results for certain mask lengths.

Fixes: https://github.com/openwrt/netifd/issues/17
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
package/network/config/netifd/Makefile
package/network/config/netifd/patches/0001-interface-ip-fix-IPv4-route-target-masking.patch [new file with mode: 0644]