PROBLEM: Time conversion error in linux-2.6.11.10/net/sunrpc/svcsock.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Line 589 of linux-2.6.11.10/net/sunrpc/svcsock.c is obviously wrong:

                skb->stamp.tv_usec = xtime.tv_nsec * 1000;

To convert nsec to usec, one should divide instead of multiplying:

                skb->stamp.tv_usec = xtime.tv_nsec / 1000;

The same typo could be present in the latest kernels, although I haven't checked. This bug makes svc_udp_recvfrom() timestamps quite incorrect.

Sincerely,
Josip
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux