summaryrefslogtreecommitdiffstats
path: root/lib/types/types.h
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-12-19 15:56:49 +1100
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-12-20 16:40:22 +1100
commit0d3caaf8e9a75e9b6ebc9427c75ed2914c60439d (patch)
tree02b8930345eea0a0e0c11673ffac1cfe22495afc /lib/types/types.h
parentf901ce58f58ad4f7d769140fe98426e5ac9f7759 (diff)
downloadpetitboot-0d3caaf8e9a75e9b6ebc9427c75ed2914c60439d.zip
petitboot-0d3caaf8e9a75e9b6ebc9427c75ed2914c60439d.tar.gz
discover: Record IP address of network interfaces
If an interface has a valid IP address (either via DHCP or static config) store it in the interface_info struct so it can be referenced later. Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'lib/types/types.h')
-rw-r--r--lib/types/types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/types/types.h b/lib/types/types.h
index 63f1b21..13ff7fc 100644
--- a/lib/types/types.h
+++ b/lib/types/types.h
@@ -89,6 +89,7 @@ struct interface_info {
uint8_t *hwaddr;
char *name;
bool link;
+ char *address;
};
struct blockdev_info {
OpenPOWER on IntegriCloud