]> git.ipfire.org Git - thirdparty/systemd.git/commit
networkd: route - allow routes without a gateway
authorGavin Li <git@thegavinli.com>
Mon, 24 Nov 2014 23:51:31 +0000 (15:51 -0800)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 27 Nov 2014 05:24:52 +0000 (00:24 -0500)
commit59580681f5f950335b5ec40bb4c4a70dca6b2830
treeb10899ee0dbb38ea2d261b7f43061d541d1b3d74
parentbedd083aaedb3bbb14ef579a047bf4b4fed56d9b
networkd: route - allow routes without a gateway

For IPv6, the kernel returns EINVAL if a route is added with the
RTA_GATEWAY attribute set to in6addr_any (::). A route without a
gateway is useful in some situations, such as layer 3 tunneling
(sit, gre, etc.).

This patch prevents the RTA_GATEWAY attribute from being added
when route.in_addr is ip6addr_any (::).
src/network/networkd-route.c