mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 18:56:38 +00:00
[etherswitchcfg] print the switch MAC address if provided.
This commit is contained in:
parent
15bd1a867e
commit
93e98f5f14
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=328923
|
@ -556,6 +556,13 @@ print_config(struct cfg *cfg)
|
|||
printf("none\n");
|
||||
}
|
||||
}
|
||||
|
||||
/* Print switch MAC address. */
|
||||
if (cfg->conf.cmd & ETHERSWITCH_CONF_SWITCH_MACADDR) {
|
||||
printf("%s: Switch MAC address: %s\n",
|
||||
c,
|
||||
ether_ntoa(&cfg->conf.switch_macaddr));
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue