projects
/
l2tpns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update Changelog
[l2tpns.git]
/
nsctl.c
diff --git
a/nsctl.c
b/nsctl.c
index
057edfa
..
98785cd
100644
(file)
--- a/
nsctl.c
+++ b/
nsctl.c
@@
-7,6
+7,8
@@
#include <string.h>
#include <netdb.h>
#include <signal.h>
#include <string.h>
#include <netdb.h>
#include <signal.h>
+#include <sys/socket.h>
+#include <linux/rtnetlink.h>
#include "l2tpns.h"
#include "control.h"
#include "l2tpns.h"
#include "control.h"
@@
-141,7
+143,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;
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;
int sz;
char *err;