[PATCH 4/4] Report errors when a packet cannot be delivered to the tun device. Wrong-size writes count as errors.

Richard Kettlewell rjk at terraraq.org.uk
Thu Jul 7 18:59:12 BST 2011


On 07/07/2011 14:59, Ian Jackson wrote:
> 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 ?

I'll wait until tv_now appears before pushing this one.

BTW.  Do you prefer to be CC'd or not on ssd messages?

ttfn/rjk



More information about the sgo-software-discuss mailing list