#18357: Adding a source to a static route doesn't work
-----------------------+------------------------
Reporter: peterv@… | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: packages | Version: Trunk
Resolution: | Keywords:
-----------------------+------------------------
Comment (by peterv@…):
So this looks like either a bug in netifd or a missing feature and bad
documentation. netifd uses the source option to set a routing message
attibute of type RTA_SRC (see
http://git.openwrt.org/?p=project/netifd.git;a=blob;f=system-
linux.c;h=02574fcbeea6f5ab77ad0493c0ccb7d3840d9366;hb=HEAD#l1404). The
documentation claims that the source option sets the "preferred source
address when sending to destinations covered by the target" (see
http://wiki.openwrt.org/doc/uci/network#ipv4.routes), but that means
netifd should set a routing message attribute of type RTA_PREFSRC. The
intention in netifd certainly seems to be to enable source-based routing
through the source option (see the comment at
http://git.openwrt.org/?p=project/netifd.git;a=blob;f=interface-
ip.c;h=6659f8bac16dc0a3ad974250103e0201e7272034;hb=HEAD#l338), so maybe it
makes more sense to add a new option for the preferred source?
--
Ticket URL: <https://dev.openwrt.org/ticket/18357#comment:1>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets