network: add sd_dhcp_route_get_option() accessor
authorThomas Haller <thaller@redhat.com>
Tue, 27 Nov 2018 11:09:52 +0000 (12:09 +0100)
committerThomas Haller <thaller@redhat.com>
Tue, 27 Nov 2018 11:20:19 +0000 (12:20 +0100)
commitcf6f5bb5584382732b6c5abdabd4d8519e6352c0
treee630bc8575abc4e180882ab873baf537d84bcb70
parentde38f06f52fb172c60485376b8648d7208bb5a90
network: add sd_dhcp_route_get_option() accessor

Since sd_dhcp_lease_get_routes() returns the list of all routes,
the caller may need to differenciate whether the route was option
33 (static-routes) or 121 (classless-static-route).

Add an accessor for the internal field.
src/libsystemd-network/sd-dhcp-lease.c
src/systemd/sd-dhcp-lease.h