LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-14-2011, 09:55 AM   #1
chandrub2w
LQ Newbie
 
Registered: May 2011
Posts: 1

Rep: Reputation: Disabled
Packet Generation in the Kernel


Hi Guys,
I am learning about net filters and i am practicing some sample programs on it. I am very new to this and I have a general query. I got the packet to a desired function using PRE_ROUTING hook. now how do i frame a packet from this point ? I am just trying to simulate a echo client server program in the kernel level using these hooks . can someone point to me some useful info on sockets in the kernel level ?

Thanks in Advance ...
 
Old 07-14-2011, 02:25 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
In net filter hook, they don't use socket API, use skb API.
 
  


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
route type unreachable overriding local packet generation for marking packets jp413 Linux - Networking 2 07-10-2010 08:51 PM
IP packet generation mailanantgarg Linux - Newbie 3 05-13-2009 11:57 AM
ARP Packet Generation chus_84 Linux - Kernel 1 02-11-2008 01:42 PM
network programming-packet generation sonika_singhi Linux - Networking 3 11-02-2004 01:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:40 PM.

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
Open Source Consulting | Domain Registration