LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 12-23-2010, 03:53 AM   #1
Iyyaaz
LQ Newbie
 
Registered: Dec 2010
Posts: 4

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


Hi,
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, 10:09 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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.
 
  


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


All times are GMT -5. The time now is 12:57 PM.

Main Menu
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