#include <string.h>
#include <netdb.h>
#include <signal.h>
+#include <sys/socket.h>
+#include <linux/rtnetlink.h>
#include "l2tpns.h"
#include "control.h"
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;
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;