diff options
author | Kristian Evensen <kristian.evensen@gmail.com> | 2014-11-26 10:16:05 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-11-27 08:25:12 +0100 |
commit | 25289c946427db676d41c0fa4e6c01ade2f43b66 (patch) | |
tree | 3a47c494108eb4e127433a87311dca44eeedb8d5 /macvlan.c | |
parent | 3c570d03d747f6835bfecbf8a43e0b7092015fad (diff) |
netifd v2: Fix source routing for IPv4
According to the OpenWRT Network documentation for route, the 'source' option is
"The preferred source address when sending to destinations covered by the
target". However, netifd currently stores this value in RTA_SRC on
NEWROUTE/DELROUTE.
RTA_SRC is not used by kernel when handling NEWROUTE nor DELROUTE for IPv4
routes. When adding a new IPv4 route, the source is stored in RTA_PREFSRC and
the option works as specified in documentation. For IPv6, the address is still
stored in RTA_SRC as to not break source-destination routing for IPv6.
v2: Limit patch to IPv4, to prevent breaking IPv6 configurations (thanks Steven
Barth)
Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>
Diffstat (limited to 'macvlan.c')
0 files changed, 0 insertions, 0 deletions