will_u_tellmemore wrote:
> Tauno Voipio wrote >>
>
>>If it's enough to get the packets (but not chenge them before
>>forwarding), have a look at libpcap.
>
>
> I also need to send fake packets to Kernel TCP layer through my hooks
>
>
>>If it's something else, please explain what you're attempting
>>to achieve.
>
>
> I am trying to implement Fault tolerant TCP support through a loadable
> kernel module. For which i need to log every incoming TCP packet and
> sometimes generate fake ones.
>
> Also after looking into IPFilter source code , i think it doesn't
> export any such interface for hooks but it itself uses such things. On
> linux it uses Netfilter and On Solaris it uses pfil module.
> So i feel i really don't have 2 options like Netfilter & IpFilter but
> only one i.e. NetFilter. These 2 things seem to be different.
You're on a wrong layer of the networking stack if you're hooking
at the IP layer (network). You should hook at the transport layer
(TCP), but, AFAIK, there are no ready hooks present.
It seems to me that you're doing a South Wrapper for FT-TCP. You need
to hook the socket side of TCP as well, for the North Wrapper. It's
not going with a simple kernel module without touching the TCP itself.
--
Tauno Voipio
tauno voipio (at) iki fi
|