Problems with enabling timestamp in 2.6.9-22 kernel

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

 



Hello,

I have a 2.6.9-22 kernel (RedHat Enterprise 4 ).

I wrote a kernel module which monitors the sk_buff traffic.
However, the timestamp is 0 for the sk_buff packets.

Is there a way to enable this timestamp ?

I want to add that in newer kernels, for example, 2.6.14-1 (FC4) or
2.6.18-1 (FC6) there is a method called
net_enable_timestamp() and when I call this method from my module
I can get valid timestamps from my module.

In these kernels, net_enable_timestamp() method is exported;
when runnin cat
cat /proc/kallsyms | grep net_enable_time
you get:
ffffffff80409702 T net_enable_timestamp


However, in 2.6.9-22, "cat /proc/kallsyms | grep net_enable_time" gives nothing.

Moreover, I tried to add include "net/sock.h" and add
atomic_inc(&netstamp_needed) (which is what in fact net_enable_time()
does in newer
kernel). Building the module succeeds, but it gives a warning:
 Warning: "netstamp_needed"undefined! (though the *.ko is created).

Any ideas what should I do ?

Regards,
Ian

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux