diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-12-03 21:42:58 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-12-03 21:48:45 +0100 |
commit | e9140aff750e4f251f5f09b67412fed995fe9c47 (patch) | |
tree | 30f2c292e0154cfee8ce91bdf2c47674030255e9 /src/libsystemd/sd-rtnl/local-addresses.h | |
parent | 144232a8e0ea77eed8c5a456832758681b5b3511 (diff) |
nss-myhostname: always resolve the host name "gateway" to the local default gateway
This is useful inside of containers or local networks to intrdouce a
stable name of the default gateway host (in case of containers usually
the host, in case of LANs usually local router).
Diffstat (limited to 'src/libsystemd/sd-rtnl/local-addresses.h')
-rw-r--r-- | src/libsystemd/sd-rtnl/local-addresses.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsystemd/sd-rtnl/local-addresses.h b/src/libsystemd/sd-rtnl/local-addresses.h index b1ed6341f6..2a9b2f42b7 100644 --- a/src/libsystemd/sd-rtnl/local-addresses.h +++ b/src/libsystemd/sd-rtnl/local-addresses.h @@ -32,7 +32,10 @@ struct local_address { int family, ifindex; unsigned char scope; + uint32_t metric; union in_addr_union address; }; int local_addresses(sd_rtnl *rtnl, int ifindex, struct local_address **ret); + +int local_gateways(sd_rtnl *rtnl, int ifindex, struct local_address **ret); |