summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sbin/etherswitchcfg/etherswitchcfg.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sbin/etherswitchcfg/etherswitchcfg.c b/sbin/etherswitchcfg/etherswitchcfg.c
index e33c515c5595..ce01891a76da 100644
--- a/sbin/etherswitchcfg/etherswitchcfg.c
+++ b/sbin/etherswitchcfg/etherswitchcfg.c
@@ -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