X-Git-Url: http://git.sameswireless.fr/l2tpns.git/blobdiff_plain/5e01d2924d4eec8915e93a2cae01217ae25ab4dc..97bada26aa745e67f3fa0bc85bdd1890323c0bc0:/nsctl.c diff --git a/nsctl.c b/nsctl.c index 2ad6a7a..4e19468 100644 --- a/nsctl.c +++ b/nsctl.c @@ -8,6 +8,7 @@ #include #include +#include "dhcp6.h" #include "l2tpns.h" #include "control.h" @@ -16,13 +17,12 @@ struct { char *usage; int action; } builtins[] = { - { "load_plugin", " PLUGIN Load named plugin", NSCTL_REQ_LOAD }, - { "unload_plugin", " PLUGIN Unload named plugin", NSCTL_REQ_UNLOAD }, - { "help", " List available commands", NSCTL_REQ_HELP }, + { "load_plugin", " PLUGIN Load named plugin", NSCTL_REQ_LOAD }, + { "unload_plugin", " PLUGIN Unload named plugin", NSCTL_REQ_UNLOAD }, + { "help", " List available commands", NSCTL_REQ_HELP }, { 0 } }; - static int debug = 0; static int timeout = 2; // 2 seconds static char *me; @@ -142,7 +142,7 @@ static struct nsctl *request(char *host, int port, int type, int argc, char *arg socklen_t len = sizeof(peer); struct hostent *h = gethostbyname(host); int fd; - char buf[NSCTL_MAX_PKT_SZ]; + uint8_t buf[NSCTL_MAX_PKT_SZ]; int sz; char *err;