X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=tun.c;h=6f42dd2116c9016fc5fe637bb381acb5418dc843;hb=c6f79b178fe27ee315055dccb371b63ca1a6183a;hp=efcf6b6e90e4b9b7dfa5e335df5f8595e5234e03;hpb=042a8da9053c205ea74ec1785c93ca4bcf4ea5e0;p=secnet.git 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); }