summaryrefslogtreecommitdiff
path: root/src/systemd/sd-network.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-09-10 15:16:15 +0900
committerGitHub <noreply@github.com>2019-09-10 15:16:15 +0900
commit39b7b6cb4ad4a9765afb4e0b47ca5d9aa004d8c5 (patch)
tree4173ab863a3281f70624a3b147bd28de3d340ec6 /src/systemd/sd-network.h
parent77b1af585a496dd507114c29958940621c192de2 (diff)
parentcdf01b36dbd5ac4ff9c733b71aab3d7cc6487bea (diff)
downloadsystemd-39b7b6cb4ad4a9765afb4e0b47ca5d9aa004d8c5.tar.gz
Merge pull request #13511 from ssahani/networkctl-dhcp
networkctl Improve display of address . Show it's dhcp
Diffstat (limited to 'src/systemd/sd-network.h')
-rw-r--r--src/systemd/sd-network.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/systemd/sd-network.h b/src/systemd/sd-network.h
index c78f7c86bb..1cf4c2ec9d 100644
--- a/src/systemd/sd-network.h
+++ b/src/systemd/sd-network.h
@@ -110,6 +110,10 @@ int sd_network_link_get_network_file(int ifindex, char **filename);
* IP addresses */
int sd_network_link_get_dns(int ifindex, char ***ret);
+/* Get DHCP4 address for a given link. This is string representations of
+ * IPv4 address */
+int sd_network_link_get_dhcp4_address(int ifindex, char **ret);
+
/* Get NTP entries for a given link. These are domain names or string
* representations of IP addresses */
int sd_network_link_get_ntp(int ifindex, char ***ret);