diff options
author | Tom Gundersen <teg@jklm.no> | 2014-08-15 14:49:31 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-08-15 15:15:24 +0200 |
commit | 67272d157a35e5cda4e5c904eafdcc23d20541d1 (patch) | |
tree | 99befd9c7b29c91d355ed02b4236e58aefab7e5a /src/network/networkctl.c | |
parent | 6192b846ca0d15602e94ddb5da4420b7c60d64a5 (diff) |
sd-network: add support for wildcard domains
Diffstat (limited to 'src/network/networkctl.c')
-rw-r--r-- | src/network/networkctl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c index 33fe8bfc61..bf95aa2c90 100644 --- a/src/network/networkctl.c +++ b/src/network/networkctl.c @@ -366,6 +366,13 @@ static int link_status_one(sd_rtnl *rtnl, struct udev *udev, const char *name) { sd_network_link_get_dns(ifindex, &dns); sd_network_link_get_ntp(ifindex, &ntp); sd_network_link_get_domains(ifindex, &domains); + r = sd_network_link_get_wildcard_domain(ifindex); + if (r > 0) { + char *wildcard; + + wildcard = strdup("*"); + strv_push(&domains, wildcard); + } sprintf(devid, "n%i", ifindex); d = udev_device_new_from_device_id(udev, devid); |