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
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to