Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 04-23-2009, 03:26 PM   #1
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, 07:49 AM   #2
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

Rep: Reputation: 50
You can cat any files under "/sys/class/net/eth0/statistics/", or using command netstat
Old 04-24-2009, 08:01 AM   #3
Registered: Dec 2008
Location: Newark Ohio
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 37
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, 09:09 AM   #4
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?


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 04:37 AM
Intercepting packet transmission in linux 2.6 kernel by inserting a module. supriyanaik Linux - Networking 2 01-15-2007 05:51 AM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:50 PM.

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