X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=secnet.git;a=blobdiff_plain;f=tun.c;h=0f88791703c68a2d06e1fe122b3c6e12b6a73e92;hp=efcf6b6e90e4b9b7dfa5e335df5f8595e5234e03;hb=8dea8d37a13fcc615daba3375809900f04a2e5a2;hpb=7138d0c54cd2212439434d27cb2d6ea775c3039b diff --git a/tun.c b/tun.c index efcf6b6..0f88791 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); } @@ -252,9 +252,6 @@ static list_t *tun_old_apply(closure_t *self, struct cloc loc, dict_t *context, st=safe_malloc(sizeof(*st),"tun_old_apply"); - Message(M_WARNING,"the tun-old code has never been tested. Please report " - "success or failure to steve@greenend.org.uk\n"); - /* First parameter must be a dict */ item=list_elem(args,0); if (!item || item->type!=t_dict)