Welcome to the most active Linux Forum on the web.
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 12-23-2010, 04:53 AM   #1
LQ Newbie
Registered: Dec 2010
Posts: 4

Rep: Reputation: 0
Question Capture packets from Linux Kernel TCP/IP stack

I need some help regarding to the packet capturing from Kernel TCP/IP stack. I want to capture the UDP packets that are receiving and sending from TCP/IP stack with the help of kernel module only.

I want that the module should

1. Capture the UDP packets incoming and outgoing
2. Make some required changes
3. Re-route the packets toward original destination.

please guide me by referring book, code, ideas etc.
Old 12-23-2010, 11:09 AM   #2
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Depending on what you mean, exactly, by 'Make some required changes', it seems probable that your requirements can be met by using netfilter/iptables. Have to tried that?
--- rod.


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
Accessing TCP flags in TCP packets on Linux using C !! vishamr2000 Programming 2 10-16-2006 10:46 AM
capture tcp packets as non root bobwall Linux - Networking 1 06-16-2006 11:03 AM
getting new tcp/ip stack on linux cdp Linux - Networking 7 06-29-2005 01:50 PM
modifying TCP packets using kernel module shinkm Linux - Networking 2 09-02-2004 10:37 AM
TCP/IP Stack on Linux? Rossak Linux - Networking 2 07-27-2003 07:20 PM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 11:29 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