Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Aug 2016 05:28:02 GMT
From:      yuanxunzhang@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r307989 - soc2016/yuanxunzhang/head/sys/net
Message-ID:  <201608190528.u7J5S2Mh034565@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuanxunzhang
Date: Fri Aug 19 05:28:01 2016
New Revision: 307989
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=307989

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	Fri Aug 19 04:30:29 2016	(r307988)
+++ soc2016/yuanxunzhang/head/sys/net/eaps.c	Fri Aug 19 05:28:01 2016	(r307989)
@@ -246,7 +246,7 @@
 	EAPS_RLOCK(sc, &tracker);
 	es->state = sc->sc_eaps.state;
 	es->status = sc->sc_eaps.status;
-	es->ifname = sc->sc_ifp->if_xname;
+	(void) strlcpy(es->ifname, sc->sc_ifp->if_xname, sizeof(sc->sc_ifp->if_xname));
 	printf("EAPS status: interface: %s, state: %d\n.", sc->sc_ifp->if_xname, es->state);
 	EAPS_RUNLOCK(sc, &tracker);
 }



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