socsvn commit: r307966 - soc2016/yuanxunzhang/head/sys/net
yuanxunzhang at FreeBSD.org
yuanxunzhang at FreeBSD.org
Thu Aug 18 16:39:30 UTC 2016
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)
{
}
More information about the svn-soc-all
mailing list