Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Aug 2016 21:49:48 GMT
From:      yuanxunzhang@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r307974 - soc2016/yuanxunzhang/head/usr.sbin/eaps
Message-ID:  <201608182149.u7ILnm1Q022394@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuanxunzhang
Date: Thu Aug 18 21:49:48 2016
New Revision: 307974
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=307974

Log:
  EAPS: query eaps domian status

Modified:
  soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c

Modified: soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c
==============================================================================
--- soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c	Thu Aug 18 21:47:39 2016	(r307973)
+++ soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c	Thu Aug 18 21:49:48 2016	(r307974)
@@ -201,8 +201,8 @@
 	strlcpy(es.ifname, domain_name, sizeof(es.ifname));
 	if (ioctl(s, SIOCSEAPSDOMAIN, &es) == 0) {
 		printf("%s: ", domain_name);
-		printf("status: %s, ", eaps_status_message[es->status]);
-		printf("state: %s, ", eaps_state_message[es->state]);
+		printf("status: %s, ", eaps_status_message[es.status]);
+		printf("state: %s, ", eaps_state_message[es.state]);
 		putchar('\n');
 	} else {
 		err(1, "SIOCSEAPSDOMAIN");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608182149.u7ILnm1Q022394>