[PATCH 4/4] Report errors when a packet cannot be delivered to the tun device. Wrong-size writes count as errors.
Ian Jackson
ijackson at chiark.greenend.org.uk
Thu Jul 7 14:59:58 BST 2011
Richard Kettlewell writes ("[PATCH 4/4] Report errors when a packet cannot be delivered to the tun device. Wrong-size writes count as errors."):
> + rc = write(st->fd,buf->start,buf->size);
> + if(rc != buf->size) {
> + static time_t last_report;
> + time_t now;
> + time(&now);
I have a patch in my local tree which provides a global variable
"tv_now" containing a struct timeval. Should I try to shuffle this
forward for your benefit or shall we fix this use of time() up later ?
Ian.
More information about the sgo-software-discuss
mailing list