kernel-netlink: Use RTA_SRC to specify route source in kernel-based lookups
authorMartin Willi <martin@strongswan.org>
Thu, 19 Jan 2017 10:23:45 +0000 (11:23 +0100)
committerMartin Willi <martin@strongswan.org>
Mon, 13 Feb 2017 14:11:20 +0000 (15:11 +0100)
commit395500b8c1be03a3f2201f7d66e595d13ffcc299
tree34caefe77101b092e2d08ad3b367d3e4f1ee7b58
parent558691b3b04b82db56a1522360e62bbd6547aa26
kernel-netlink: Use RTA_SRC to specify route source in kernel-based lookups

For table dumps the kernel accepts RTA_PREFSRC to filter the routes, which is
what we do when doing userspace route calculations. For kernel-based route
lookups, however, the RTA_PREFSRC attribute is ignored and we must specify
RTA_SRC for policy based route lookups.
src/libcharon/plugins/kernel_netlink/kernel_netlink_net.c