netdev
[Top] [All Lists]

linking network.o (ip_input.c, udp.c) with rtc_custom.o

To: netdev@xxxxxxxxxxx
Subject: linking network.o (ip_input.c, udp.c) with rtc_custom.o
From: Guilhem Tardy <guilhem_tardy@xxxxxxxxx>
Date: Thu, 20 Sep 2001 20:49:57 -0700 (PDT)
In-reply-to: <Pine.LNX.4.10.10109192149290.1209-100000@vaio.greennet>
Sender: owner-netdev@xxxxxxxxxxx
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/

<Prev in Thread] Current Thread [Next in Thread>