Code looks reasonable (though I won't claim to understand the nuances of Netlink :-) ) - took me a bit to remember what is done here with the callback function for matching, but yeah, seems to do what it says on the lid. Did some very basic testing on a system with just a single route table and nothing breaks :-)
Your patch has been applied to the master and release/2.5 branch (bugfix). commit c7f95891a4a0aabb64e7d4f3200525c1a2fcf433 (master) commit 48ba0b059138dec7a94d2368375344d39c4e05e9 (release/2.5) Author: Vladislav Grishenko Date: Fri Apr 16 17:07:07 2021 +0500 Fix IPv4 default gateway with multiple route tables Signed-off-by: Vladislav Grishenko <themi...@yandex-team.ru> Acked-by: Antonio Quartulli <anto...@openvpn.net> Message-Id: <20210416120708.1532-1-themi...@yandex-team.ru> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22130.html Signed-off-by: Gert Doering <g...@greenie.muc.de> -- kind regards, Gert Doering _______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel