Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Aug 2016 15:47:51 GMT
From:      yuanxunzhang@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r307665 - in soc2016/yuanxunzhang/head: sys/net usr.sbin/eaps
Message-ID:  <201608151547.u7FFlpVU093076@socsvn.freebsd.org>

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

Log:
  EAPS: query eaps domian status

Modified:
  soc2016/yuanxunzhang/head/sys/net/eaps.c
  soc2016/yuanxunzhang/head/sys/net/eaps.h
  soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c

Modified: soc2016/yuanxunzhang/head/sys/net/eaps.c
==============================================================================
--- soc2016/yuanxunzhang/head/sys/net/eaps.c	Mon Aug 15 14:58:25 2016	(r307664)
+++ soc2016/yuanxunzhang/head/sys/net/eaps.c	Mon Aug 15 15:47:50 2016	(r307665)
@@ -198,7 +198,7 @@
 	int error = 0;
 
 	switch (cmd) {
-
+		
 		break;
 	default:
 		error = ether_ioctl(ifp, cmd, data);

Modified: soc2016/yuanxunzhang/head/sys/net/eaps.h
==============================================================================
--- soc2016/yuanxunzhang/head/sys/net/eaps.h	Mon Aug 15 14:58:25 2016	(r307664)
+++ soc2016/yuanxunzhang/head/sys/net/eaps.h	Mon Aug 15 15:47:50 2016	(r307665)
@@ -44,6 +44,15 @@
 	u_char			sc_defaddr[6];	/* Default MAC address */ 
 };
 
+/* eaps ring information */
+struct eaps_reqall {
+	char			eaps_ifname[IFNAMSIZ];	/* name of the eaps */
+	uint8_t			eaps_state;             /* state of eaps * /
+	uint8_t         enable_state;           /* enable or disable eaps ring */
+};
+
+#define	SIOCSEAPSDOMAIN		 _IOWR('i', 300, struct eaps_reqall)
+
 /*
  * Extreme Active Protection System (EAPS) definitions.
  * Normative reference: draft-shah-extreme-rfc3619bis-02 [Expired I-D]

Modified: soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c
==============================================================================
--- soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c	Mon Aug 15 14:58:25 2016	(r307664)
+++ soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c	Mon Aug 15 15:47:50 2016	(r307665)
@@ -166,8 +166,15 @@
 static void
 eaps_status(int argc, char **argv, int s)
 {
-	printf("Debug print: -------.\n");
-	return;
+	int error = 0;
+	
+	// check eaps domain name
+	if (domain_name == NULL) {
+		err(1, "EAPS domain name is NULL!");
+	} 
+
+
+	exit(error);
 }
 
 static void



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