LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices



Reply
 
Search this Thread
Old 04-23-2009, 04:26 PM   #1
kasi86
LQ Newbie
 
Registered: Apr 2009
Posts: 4

Rep: Reputation: 0
Packet status in Linux kernel


I will send packets through some packet generators like iperf, netpef.
Later I want to analyze status about the sent and received packets.
In Linux kernel from where I can get the status about sent and received packets?
 
Old 04-24-2009, 08:49 AM   #2
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 492

Rep: Reputation: 50
You can cat any files under "/sys/class/net/eth0/statistics/", or using command netstat
 
Old 04-24-2009, 09:01 AM   #3
kentyler
Member
 
Registered: Dec 2008
Location: Cleveland Ohio
Distribution: CentOS
Posts: 235

Rep: Reputation: 36
You would have to have the nf_conntrack module installed so do:

modprobe nf_conntrack

and then do:

cat /proc/net/nf_conntrack
 
Old 05-12-2009, 10:09 AM   #4
kasi86
LQ Newbie
 
Registered: Apr 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks. I check with that.

I am having one more doubt.
In kernel, whether ip_fragment() in net/ipv4/ip_output.c is reentrant function or not?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
netfilter packet capturing-sample code for linux 2.6 kernel anandkj Linux - Networking 0 07-04-2007 05:37 AM
Intercepting packet transmission in linux 2.6 kernel by inserting a module. supriyanaik Linux - Networking 2 01-15-2007 06:51 AM


All times are GMT -5. The time now is 02:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration