summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2020-11-30 10:55:05 +0100
committerFelix Fietkau <nbd@nbd.name>2020-11-30 10:55:05 +0100
commit574dc4a17105b4b8873080a43dc9d074d0c53532 (patch)
treed4c08b17ca3dd82f4c05449e1ae3f8b09beb0dd9
parente0c838bd06a626cc20404ffac4d32facfa6c1d07 (diff)
downloadnetifd-574dc4a17105b4b8873080a43dc9d074d0c53532.tar.gz
system-dummy: print configured mac address
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--system-dummy.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/system-dummy.c b/system-dummy.c
index 7a5c839..4ad9db5 100644
--- a/system-dummy.c
+++ b/system-dummy.c
@@ -159,6 +159,10 @@ system_if_dump_stats(struct device *dev, struct blob_buf *b)
void
system_if_apply_settings(struct device *dev, struct device_settings *s, unsigned int apply_mask)
{
+ if ((s->flags & DEV_OPT_MACADDR & apply_mask) && !dev->external) {
+ D(SYSTEM, "ifconfig %s hw ether %s\n",
+ dev->ifname, format_macaddr(s->macaddr));
+ }
}
static int system_address_msg(struct device *dev, struct device_addr *addr, const char *type)