From 0d4ad91dd4fc831c31a9775b0eadf97fea6cd7f6 Mon Sep 17 00:00:00 2001 From: Alin Rauta Date: Tue, 17 Feb 2015 04:06:57 -0800 Subject: networkd: add support for Uplink Failure Detection Introduce BindCarrier= to indicate the set of links that determine if the current link should be brought UP or DOWN. [tomegun: add a bit to commit message] --- src/libsystemd/sd-network/sd-network.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/libsystemd') diff --git a/src/libsystemd/sd-network/sd-network.c b/src/libsystemd/sd-network/sd-network.c index 297fdac80d..db1f6997cb 100644 --- a/src/libsystemd/sd-network/sd-network.c +++ b/src/libsystemd/sd-network/sd-network.c @@ -261,6 +261,14 @@ _public_ int sd_network_link_get_domains(int ifindex, char ***ret) { return network_get_link_strv("DOMAINS", ifindex, ret); } +_public_ int sd_network_link_get_carrier_bound_to(int ifindex, char ***ret) { + return network_get_link_strv("CARRIER_BOUND_TO", ifindex, ret); +} + +_public_ int sd_network_link_get_carrier_bound_by(int ifindex, char ***ret) { + return network_get_link_strv("CARRIER_BOUND_BY", ifindex, ret); +} + _public_ int sd_network_link_get_wildcard_domain(int ifindex) { int r; _cleanup_free_ char *p = NULL, *s = NULL; -- cgit v1.2.3-54-g00ecf