socsvn commit: r307708 - soc2016/yuanxunzhang/head/usr.sbin/eaps
yuanxunzhang at FreeBSD.org
yuanxunzhang at FreeBSD.org
Tue Aug 16 03:32:49 UTC 2016
Author: yuanxunzhang
Date: Tue Aug 16 03:32:47 2016
New Revision: 307708
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=307708
Log:
EAPS: query eaps domian status
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 Tue Aug 16 03:14:13 2016 (r307707)
+++ soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c Tue Aug 16 03:32:47 2016 (r307708)
@@ -37,7 +37,7 @@
#include <sys/socket.h>
#include <sys/sockio.h>
#include <net/if.h>
-#include <net/eaps.h>
+#include <net/if_lagg.h>
#include <ctype.h>
#include <err.h>
#include <errno.h>
@@ -50,7 +50,7 @@
#include <sysexits.h>
#include <strings.h>
#include <unistd.h>
-// #include "eaps.h"
+#include "eaps.h"
/*
* EAPS Command Line Module - configure, and display eaps
*/
@@ -168,19 +168,19 @@
static void
show_eaps_status(int argc, char **argv, int s)
{
- struct eaps_reqall er;
- bzero(&er, sizeof(er));
+ // struct eaps_reqall er;
+ // bzero(&er, sizeof(er));
- char *domain_name = *(++argv);
-
- // check eaps domain name
- if (domain_name == NULL) {
- err(1, "EAPS domain name is NULL!");
- }
+ // char *domain_name = *(++argv);
- strlcpy(er.eaps_ifname, domain_name, sizeof(er.eaps_ifname));
- if (ioctl(s, SIOCSEAPSDOMAIN, &er) < 0)
- err(1, "SIOCSEAPSDOMAIN");
+ // // check eaps domain name
+ // if (domain_name == NULL) {
+ // err(1, "EAPS domain name is NULL!");
+ // }
+
+ // strlcpy(er.eaps_ifname, domain_name, sizeof(er.eaps_ifname));
+ // if (ioctl(s, SIOCSEAPSDOMAIN, &er) < 0)
+ // err(1, "SIOCSEAPSDOMAIN");
}
static void
More information about the svn-soc-all
mailing list