Systemd/src/systemd
Dan Williams 28cc555d85 networkd: set route protocol
All routes added by networkd are currently set RTPROT_BOOT, which according
to the kernel means "Route installed during boot" (rtnetlink.h).  But this
is not always the case as networkd changes routing after boot too.  Since
the kernel gives more detailed protocols, use them.

With this patch, user-configured static routes now use RTPROT_STATIC (which
they are) and DHCP routes use RTPROT_DHCP.  There is no define for IPv4LL
yet, so those are installed as RTPROT_STATIC (though perhaps RTPROT_RA is
better?).

[tomegun: fixup
src/network/networkd-link.c:972:33: error: too few arguments to function 'route_new_dynamic']
2014-07-23 09:19:32 +02:00
..
_sd-common.h src/systemd: fix grammar and spelling errors in comments 2014-03-25 20:23:33 +01:00
Makefile build-sys: add stub makefiles to subdirs 2012-01-05 16:29:21 +01:00
sd-bus-protocol.h driverd: implement AddMatch/RemoveMatch logic 2013-12-19 04:40:56 +01:00
sd-bus-vtable.h bus: introduce concept of "const" properties 2013-12-22 03:50:52 +01:00
sd-bus.h sd-bus: introduce sd_bus_slot objects encapsulating callbacks or vtables attached to a bus connection 2014-05-15 01:15:30 +02:00
sd-daemon.h sd-daemon: introduce sd_pid_notify() and sd_pid_notifyf() 2014-06-05 17:05:18 +02:00
sd-dhcp-client.h sd-dhcp-client: make request broadcasts opt-in 2014-07-15 18:55:31 +02:00
sd-dhcp-lease.h sd-network: remove redundant array size parameter from functions that return arrays 2014-07-17 01:42:26 +02:00
sd-dhcp-server.h networkd/sd-dhcp-server: only start dhcp server when necessary 2014-06-29 15:18:21 +02:00
sd-dhcp6-client.h sd-dhcp6-client: Add Option Request Option support 2014-06-26 16:10:11 +03:00
sd-dhcp6-lease.h sd-dhcp6-lease: Add functions for accessing lease and addresses 2014-06-19 15:44:44 +03:00
sd-event.h sd-event: reorder header slightly 2014-05-15 00:44:29 +02:00
sd-icmp6-nd.h sd-icmp6-nd: Add function to stop ongoing ICMPv6 discovery 2014-06-26 16:09:40 +03:00
sd-id128.h src/systemd: fix grammar and spelling errors in comments 2014-03-25 20:23:33 +01:00
sd-ipv4ll.h sd-ipv4ll: Add reference counting for IPv4LL 2014-04-11 10:53:52 +03:00
sd-journal.h api: in constructor function calls, always put the returned object pointer first (or second) 2014-02-20 00:03:10 +01:00
sd-login.h sd-login: always use "indices" as plural of "index" 2014-07-17 01:48:40 +02:00
sd-memfd.h api: in constructor function calls, always put the returned object pointer first (or second) 2014-02-20 00:03:10 +01:00
sd-messages.h logind: detect whether the system is docked, and if it is inhibit lid switch processing 2014-02-24 16:22:23 +01:00
sd-network.h sd-network: drop get_ifindices 2014-07-21 13:32:27 +02:00
sd-path.h path: add new "systemd-path" utility for querying paths described in file-hierarchy(7) 2014-07-02 12:23:36 +02:00
sd-readahead.h src/systemd: fix grammar and spelling errors in comments 2014-03-25 20:23:33 +01:00
sd-resolve.h sd-resolve: rework sd-resolve to be callback based, similar in style to sd-bus and sd-event 2014-04-29 15:45:16 +02:00
sd-rtnl.h networkd: set route protocol 2014-07-23 09:19:32 +02:00
sd-shutdown.h src/systemd: fix grammar and spelling errors in comments 2014-03-25 20:23:33 +01:00
sd-utf8.h bus: export utf8 validator calls as pure functions 2013-11-12 00:12:44 +01:00