Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Aug 2016 16:39:29 GMT
From:      yuanxunzhang@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r307966 - soc2016/yuanxunzhang/head/sys/net
Message-ID:  <201608181639.u7IGdTlO021837@socsvn.freebsd.org>

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

Log:
  EAPS: query eaps domian status

Modified:
  soc2016/yuanxunzhang/head/sys/net/eaps.c

Modified: soc2016/yuanxunzhang/head/sys/net/eaps.c
==============================================================================
--- soc2016/yuanxunzhang/head/sys/net/eaps.c	Thu Aug 18 16:34:33 2016	(r307965)
+++ soc2016/yuanxunzhang/head/sys/net/eaps.c	Thu Aug 18 16:39:29 2016	(r307966)
@@ -70,8 +70,8 @@
 static int	eaps_transmit(struct ifnet *, struct mbuf *);
 static void	eaps_qflush(struct ifnet *);
 static void	eaps_init(void *);
-void eaps_attach(struct eaps_state *);
-void eaps_detach(struct eaps_state *);
+void eaps_attach(struct eaps_softc *);
+void eaps_detach(struct eaps_softc *);
 void eaps_status(struct eaps_softc *, struct eaps_state *);
 
 static VNET_DEFINE(struct if_clone *, eaps_cloner);
@@ -172,7 +172,7 @@
 	ifp->if_init = eaps_init;
 	ifp->if_type = IFT_EAPS;
 
-	eaps_attach(&sc->sc_eaps);
+	eaps_attach(sc);
 	ether_ifattach(ifp, sc->sc_defaddr);
 
 	EAPS_LIST_LOCK();
@@ -254,17 +254,17 @@
 }
 
 void 
-eaps_attach(struct eaps_state *es)
+eaps_attach(struct eaps_softc *sc)
 {
 	//set eaps domain protocol state to default value
-	EAPS_WLOCK(es);
-	es->state = EAPS_S_IDLE;
-	es->active = EAPS_ACTIVE_DISABLE;
-	EAPS_WUNLOCK(es);
+	EAPS_WLOCK(sc);
+	sc->sc_eaps.state = EAPS_S_IDLE;
+	sc->sc_eaps.active = EAPS_ACTIVE_DISABLE;
+	EAPS_WUNLOCK(sc);
 }
 
 void
-eaps_detach(struct eaps_state *es)
+eaps_detach(struct eaps_softc *es)
 {
 
 }



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