Re: [PATCH 3/4 -rev1] Initilize and populate age field
From: Varun Chandramohan <hidden>
Date: 2007-08-07 04:51:57
From: Varun Chandramohan <hidden>
Date: 2007-08-07 04:51:57
Hi Eric,
Sorry for the late response. I just need few
clarifications.
*age = timeval_to_sec(&tv);
>>>> + NLA_PUT_U32(skb, RTA_AGE, *age);
>>> here, what happens if sizeof(time_t) is not 4 ?
Did you mean that the above should be like this?
NLA_PUT_U32(skb, RTA_AGE, (unsigned int) *age);
return tv->tv_sec + (tv->tv_usec ? 1 : 0);
is much faster
So can we say that "usec" is *always *< 1000000 ?
Regards,
Varun