chiark
/
gitweb
/
~ianmdlvl
/
secnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Import release 0.1.8
[secnet.git]
/
tun.c
diff --git
a/tun.c
b/tun.c
index efcf6b6e90e4b9b7dfa5e335df5f8595e5234e03..6f42dd2116c9016fc5fe637bb381acb5418dc843 100644
(file)
--- a/
tun.c
+++ b/
tun.c
@@
-12,7
+12,7
@@
#include <linux/if_tun.h>
#endif
#include <linux/if_tun.h>
#endif
-/*
XXX w
here do we find if_tun on other platforms? */
+/*
W
here do we find if_tun on other platforms? */
/* Connection to the kernel through the universal TUN/TAP driver */
/* Connection to the kernel through the universal TUN/TAP driver */
@@
-76,8
+76,8
@@
static void tun_deliver_to_kernel(void *sst, void *cid,
struct tun *st=sst;
BUF_ASSERT_USED(buf);
struct tun *st=sst;
BUF_ASSERT_USED(buf);
-
-
/* No error checking, because we'd just throw the packet away anyway
*/
+ /* No error checking, because we'd just throw the packet away
+
anyway if it didn't work.
*/
write(st->fd,buf->start,buf->size);
BUF_FREE(buf);
}
write(st->fd,buf->start,buf->size);
BUF_FREE(buf);
}