diff options
author | Felix Fietkau <nbd@nbd.name> | 2020-11-30 12:34:13 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2020-11-30 12:39:25 +0100 |
commit | 42c48866f1c1fce068f41536baa8dd2e80fc08d7 (patch) | |
tree | 439389ff79d44a5eb48c3fd5d3c60c0a5f36f024 /config.h | |
parent | 524310276f2084d419cb0f2de58b0f42641d987f (diff) | |
download | netifd-42c48866f1c1fce068f41536baa8dd2e80fc08d7.tar.gz |
config: parse default mac address from board.json
Example:
{
"network-device": {
"eth0": {
"macaddr": "bc:a5:11:16:76:d7"
}
}
}
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -20,5 +20,6 @@ extern bool config_init; int config_init_all(void); +struct ether_addr *config_get_default_macaddr(const char *ifname); #endif |