socsvn commit: r308211 - soc2016/yuanxunzhang/head/usr.sbin/eaps
yuanxunzhang at FreeBSD.org
yuanxunzhang at FreeBSD.org
Mon Aug 22 20:20:31 UTC 2016
Author: yuanxunzhang
Date: Mon Aug 22 20:20:30 2016
New Revision: 308211
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=308211
Log:
EAPS: implement add primary/secondary port interface
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 Mon Aug 22 20:16:58 2016 (r308210)
+++ soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c Mon Aug 22 20:20:30 2016 (r308211)
@@ -463,7 +463,8 @@
errx(1, "port %s does not exist", port_name);
}
- es.p_port = port_name;
+ strlcpy(es.ifname, domain_name, sizeof(es.ifname));
+ strlcpy(es.p_port, port_name, sizeof(port_name));
if (ioctl(s, SIOCESAPSPRIMARY, &es) != 0)
err(1, "SIOCESAPSPRIMARY");
More information about the svn-soc-all
mailing list