From 4268193c90bdd1532ee0555dd109a43eb8524b04 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Thu, 14 Dec 2017 14:13:35 +0100 Subject: 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 --- device.h | 1 + 1 file changed, 1 insertion(+) (limited to 'device.h') diff --git a/device.h b/device.h index f398dbc..07f1dbd 100644 --- a/device.h +++ b/device.h @@ -244,6 +244,7 @@ int device_type_add(struct device_type *devtype); struct device_type *device_type_get(const char *tname); struct device *device_create(const char *name, struct device_type *type, struct blob_attr *config); +void device_merge_settings(struct device *dev, struct device_settings *n); void device_init_settings(struct device *dev, struct blob_attr **tb); void device_init_pending(void); -- cgit v1.2.3