Go Job Hunting at the LQ Job Marketplace
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, 04: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, 08:49 AM   #2
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
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
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 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 06:54 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