* Linux networking implementation and packet capture
@ 2007-09-27 6:47 Gaurav Aggarwal
2007-09-27 8:05 ` Mohammad M Molla
2007-09-27 10:48 ` Alan Menegotto
0 siblings, 2 replies; 3+ messages in thread
From: Gaurav Aggarwal @ 2007-09-27 6:47 UTC (permalink / raw)
To: kernelnewbies, linux-net, netdev
[-- Attachment #1: Type: text/plain, Size: 882 bytes --]
Hi,
I am trying to understand the implementation of linux 2.4 and linux 2.6's
networking (IPV4) . Can anyone give me some idea/pointers about some of the
good resources/whitepapers available in the market to understand the same.
If there is any document that mention the changes between the implementation
of networking in 2.4 & 2.6
I am also trying to write a simple program(preferably a userspace
application) which captures all the incoming and outgoing packets of a
particular machine (preferably at PREROUTING stage), then according to the
SRC/DST addresses, changes the IP address of some of the packets and then
reinject it back into the local IP stack. I am able to do that in 2.4 kernel
by using libipq and ip_tables but that prog is not running in 2.6 kernel.
(It hits at ip_route_BUG). Any idea or code snippet will be really
appreciated.
--
Regards,
Gaurav Aggarwal
[-- Attachment #2: Type: text/html, Size: 924 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Linux networking implementation and packet capture
2007-09-27 6:47 Linux networking implementation and packet capture Gaurav Aggarwal
@ 2007-09-27 8:05 ` Mohammad M Molla
2007-09-27 10:48 ` Alan Menegotto
1 sibling, 0 replies; 3+ messages in thread
From: Mohammad M Molla @ 2007-09-27 8:05 UTC (permalink / raw)
To: Gaurav Aggarwal, kernelnewbies, linux-net, netdev
[-- Attachment #1: Type: text/plain, Size: 1256 bytes --]
There are two good books that you might find useful -
1. Understanding Linux Network Internals - Christian Benvenuti
2. The Linux TCP/IP stack - Networking for Embedded Systems - Thomas F. Herbert
- Meraj
Gaurav Aggarwal <grv.aggarwal@gmail.com> wrote: Hi,
I am trying to understand the implementation of linux 2.4 and linux 2.6's networking (IPV4) . Can anyone give me some idea/pointers about some of the good resources/whitepapers available in the market to understand the same. If there is any document that mention the changes between the implementation of networking in 2.4 & 2.6
I am also trying to write a simple program(preferably a userspace application) which captures all the incoming and outgoing packets of a particular machine (preferably at PREROUTING stage), then according to the SRC/DST addresses, changes the IP address of some of the packets and then reinject it back into the local IP stack. I am able to do that in 2.4 kernel by using libipq and ip_tables but that prog is not running in 2.6 kernel. (It hits at ip_route_BUG). Any idea or code snippet will be really appreciated.
--
Regards,
Gaurav Aggarwal
---------------------------------
Need a vacation? Get great deals to amazing places on Yahoo! Travel.
[-- Attachment #2: Type: text/html, Size: 1602 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Linux networking implementation and packet capture
2007-09-27 6:47 Linux networking implementation and packet capture Gaurav Aggarwal
2007-09-27 8:05 ` Mohammad M Molla
@ 2007-09-27 10:48 ` Alan Menegotto
1 sibling, 0 replies; 3+ messages in thread
From: Alan Menegotto @ 2007-09-27 10:48 UTC (permalink / raw)
To: Gaurav Aggarwal; +Cc: kernelnewbies, linux-net, netdev
Gaurav Aggarwal escreveu:
> Hi,
>
> I am trying to understand the implementation of linux 2.4 and linux
> 2.6's networking (IPV4) . Can anyone give me some idea/pointers about
> some of the good resources/whitepapers available in the market to
> understand the same. If there is any document that mention the changes
> between the implementation of networking in 2.4 & 2.6
>
> I am also trying to write a simple program(preferably a userspace
> application) which captures all the incoming and outgoing packets of a
> particular machine (preferably at PREROUTING stage), then according to
> the SRC/DST addresses, changes the IP address of some of the packets
> and then reinject it back into the local IP stack. I am able to do
> that in 2.4 kernel by using libipq and ip_tables but that prog is not
> running in 2.6 kernel. (It hits at ip_route_BUG). Any idea or code
> snippet will be really appreciated.
>
> --
> Regards,
> Gaurav Aggarwal
>
You may also see the information on the linux-net wiki:
http://linux-net.osdl.org/index.php/Main_Page.
Also, read some threads on netdev list. It has a lot of information
there too.
--
--
Best Regards
Alan Menegotto
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-09-27 10:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-27 6:47 Linux networking implementation and packet capture Gaurav Aggarwal
2007-09-27 8:05 ` Mohammad M Molla
2007-09-27 10:48 ` Alan Menegotto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).