socsvn commit: r307562 - soc2016/yuanxunzhang/head/usr.sbin/eaps

yuanxunzhang at FreeBSD.org yuanxunzhang at FreeBSD.org
Sun Aug 14 05:46:12 UTC 2016


Author: yuanxunzhang
Date: Sun Aug 14 05:46:10 2016
New Revision: 307562
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=307562

Log:
  EAPS: check eaps domian name

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	Sun Aug 14 04:35:04 2016	(r307561)
+++ soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c	Sun Aug 14 05:46:10 2016	(r307562)
@@ -132,7 +132,7 @@
 {
 	char *domain_name = *(++argv);
 
-	printf("Create eaps %s!\n", domain_name);
+	printf("Debug print: Create eaps %s!\n", domain_name);
 
 	// Check eaps domain name
 	if (domain_name == NULL) {
@@ -146,7 +146,7 @@
 	struct ifreq ifr;	
 	memset(&ifr, 0, sizeof(ifr));
 	
-	(void) strlcpy(ifr.ifr_name, eaps_ifname, sizeof(ifr.ifr_name));
+	(void) strlcpy(ifr.ifr_name, domain_name, sizeof(ifr.ifr_name));
 
 	if (ioctl(s, SIOCIFCREATE2, &ifr) < 0)
 		err(1, "SIOCIFCREATE2");


More information about the svn-soc-all mailing list