Date: Tue, 6 Feb 2018 08:35:09 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r328923 - head/sbin/etherswitchcfg Message-ID: <201802060835.w168Z9dP025706@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802060835.w168Z9dP025706>