Hi all,
For those who followed my tribulations with the 3c59x.c driver, I can now get
RTC timings of received packets directly in the payload (I must "insmod
rtc_custom" before starting the 3c59x driver, though). Therefore, I am now able
to measure time spent from the driver to the application (which uses an ioctl
call to the same 'rtc_custom' module).
I tried to use the same procedure inside the IP stack (in ip_input.c and
udp.c):
#include "/usr/src/linux/rtc_custom.h"
(...)
rtc_get_time(ptr);
As you would expect, rtc_custom.h defines "extern void rtc_get_time(void
*ptr);" and the function is found in rtc_custom.c
This works well from the 3c59x driver, but strangely doesn't from the IP stack
(the corresponding fields in the payload are set to 0x00000000). I sense that
the 'rtc_custom' module should be loaded before the networking stack, any other
idea?
Thanks,
Guilhem.
__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/
|