Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Aug 2016 19:27:57 GMT
From:      yuanxunzhang@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r307679 - soc2016/yuanxunzhang/head/usr.sbin/eaps
Message-ID:  <201608151927.u7FJRv9v087545@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuanxunzhang
Date: Mon Aug 15 19:27:56 2016
New Revision: 307679
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=307679

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	Mon Aug 15 19:20:20 2016	(r307678)
+++ soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c	Mon Aug 15 19:27:56 2016	(r307679)
@@ -37,6 +37,7 @@
 #include <sys/socket.h>
 #include <sys/sockio.h>
 #include <net/if.h>
+#include <net/eaps.h>
 #include <ctype.h>
 #include <err.h>
 #include <errno.h>
@@ -90,7 +91,7 @@
 		case K_DELETE:
 			delete_domain(argc, argv, s);
 			break;
-		case K_DISPLAY:
+		case K_SHOW:
 			show_eaps_status(argc, argv, s);
 			break;
 		}
@@ -168,7 +169,7 @@
 show_eaps_status(int argc, char **argv, int s)
 {
 	struct eaps_reqall er;
-	bzero(&ro, sizeof(ro));
+	bzero(&er, sizeof(er));
 
 	char *domain_name = *(++argv);
 



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