summaryrefslogtreecommitdiffhomepage
path: root/device.c
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2017-12-14 14:13:35 +0100
committerHans Dedecker <dedeckeh@gmail.com>2017-12-15 17:21:12 +0100
commit4268193c90bdd1532ee0555dd109a43eb8524b04 (patch)
tree01446f86506959daa1e2007d2753a2fa79bb24b4 /device.c
parent81ff6d120e8c247b7c714daefd45ae7b90e3b643 (diff)
interface-ip: harden eui64 IPv6 prefix address generation
Check if a mac address is actually present when generating an eui64 based IPv6 address; in case of failure bail out. At the same time make sure the active mac address is used as input for the eui64 based IPv6 address and guarantee IPv6 prefix address generation is based on the actual config by resetting the IPv6 prefix address in the assignment structure when it gets deleted. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'device.c')
-rw-r--r--device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/device.c b/device.c
index 0424658..a851037 100644
--- a/device.c
+++ b/device.c
@@ -193,7 +193,7 @@ struct device_type simple_device_type = {
.free = simple_device_free,
};
-static void
+void
device_merge_settings(struct device *dev, struct device_settings *n)
{
struct device_settings *os = &dev->orig_settings;