summaryrefslogtreecommitdiffstats
path: root/lib/types
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-05-09 11:13:54 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-07-10 14:00:08 +1000
commitbecf2b28d8b0aa561ac7e42db519071f8065d37f (patch)
tree0dfcc6ef5cbcf1a433ec2f116de119b1c5742f07 /lib/types
parent99a1f905f585480cca2c9a43ab18ed8e37365192 (diff)
downloadtalos-petitboot-becf2b28d8b0aa561ac7e42db519071f8065d37f.tar.gz
talos-petitboot-becf2b28d8b0aa561ac7e42db519071f8065d37f.zip
lib: Add support and helpers for IPv6 host addresses
Recognise IPv6 addresses and URLs, and allow an interface_info struct to have both an IPv4 and IPv6 address. The addr_scheme() helper returns the address family of a given address. Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'lib/types')
-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 9ab2a43..5f99b58 100644
--- a/lib/types/types.h
+++ b/lib/types/types.h
@@ -110,6 +110,7 @@ struct interface_info {
char *name;
bool link;
char *address;
+ char *address_v6;
};
struct blockdev_info {
OpenPOWER on IntegriCloud