projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Lots of changes. It compiles, but doesn't do much yet.
[tinc]
/
vnd
/
vnd.c
diff --git
a/vnd/vnd.c
b/vnd/vnd.c
index
802cdd6
..
7eba993
100644
(file)
--- a/
vnd/vnd.c
+++ b/
vnd/vnd.c
@@
-51,7
+51,7
@@
void vnd_set(vnd_t *vnd, char *device, char *interface, vnd_mode_t mode, vnd_han
vnd->recv = recv;
}
vnd->recv = recv;
}
-static bool vnd_send(vnd_t *vnd, c
har
*buf, int len) {
+static bool vnd_send(vnd_t *vnd, c
onst void
*buf, int len) {
int result;
result = write(vnd->fd.fd, buf, len);
int result;
result = write(vnd->fd.fd, buf, len);
@@
-73,7
+73,7
@@
static bool vnd_recv_handler(fd_t *fd) {
vnd = fd->data;
vnd = fd->data;
- len = read(fd->fd, buf, sizeof
(buf)
);
+ len = read(fd->fd, buf, sizeof
buf
);
if(len > 0) {
logger(LOG_INFO, _("vnd: read packet of %d bytes from %s"), len, vnd->description);
if(len > 0) {
logger(LOG_INFO, _("vnd: read packet of %d bytes from %s"), len, vnd->description);