svn commit: r328923 - head/sbin/etherswitchcfg
Adrian Chadd
adrian at FreeBSD.org
Tue Feb 6 08:35:10 UTC 2018
Author: adrian
Date: Tue Feb 6 08:35:09 2018
New Revision: 328923
URL: https://svnweb.freebsd.org/changeset/base/328923
Log:
[etherswitchcfg] print the switch MAC address if provided.
Modified:
head/sbin/etherswitchcfg/etherswitchcfg.c
Modified: head/sbin/etherswitchcfg/etherswitchcfg.c
==============================================================================
--- head/sbin/etherswitchcfg/etherswitchcfg.c Tue Feb 6 08:34:50 2018 (r328922)
+++ head/sbin/etherswitchcfg/etherswitchcfg.c Tue Feb 6 08:35:09 2018 (r328923)
@@ -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
More information about the svn-src-head
mailing list