projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0c838b
)
system-dummy: print configured mac address
author
Felix Fietkau
<nbd@nbd.name>
Mon, 30 Nov 2020 09:55:05 +0000
(10:55 +0100)
committer
Felix Fietkau
<nbd@nbd.name>
Mon, 30 Nov 2020 09:55:05 +0000
(10:55 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
system-dummy.c
patch
|
blob
|
history
diff --git
a/system-dummy.c
b/system-dummy.c
index 7a5c8395085a644d205c70a7543a8dc61184a620..4ad9db521126302ece6b68ca300449d8092c79b9 100644
(file)
--- 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)