Date: Mon, 22 Aug 2016 20:20:30 GMT From: yuanxunzhang@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r308211 - soc2016/yuanxunzhang/head/usr.sbin/eaps Message-ID: <201608222020.u7MKKUNw045297@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608222020.u7MKKUNw045297>