X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/042a8da9053c205ea74ec1785c93ca4bcf4ea5e0..c6f79b178fe27ee315055dccb371b63ca1a6183a:/tun.c diff --git a/tun.c b/tun.c index efcf6b6..6f42dd2 100644 --- a/tun.c +++ b/tun.c @@ -12,7 +12,7 @@ #include #endif -/* XXX where do we find if_tun on other platforms? */ +/* Where do we find if_tun on other platforms? */ /* 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); - - /* 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); }