lkml.org 
[lkml]   [1998]   [Jul]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateSun, 19 Jul 1998 10:44:02 +0800
FromCHANG Lei <>
Subjectabout syslogd and printk()
Hello,every. (sorry,My last code was not correctly.)
I'm reading the linux kernel code about network.
I want to analyze the packet,so I insert a piece of code into net_bh( )
to display every packet :

{
unsigned char *temp;
printk("\n");
for(temp=skb->data;temp<skb->tail;temp++) /* to print a completely
packet.(frame)*/
printk("%02x:",*temp);
printk("\n");
}
and syslog.conf include:
kern.* /usr/adm/mylog

when come some packets, EVERY packet could display on the screen.
But there only a part of packers could be recorded into /usr/adm/mylog,
not EVERY packet recorded into the file, why?

Thank you!
Chang lei


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

\
 
 \ /
  Last update: 2005-03-22 13:43    [from the cache]
©2003-2010