Registering for only Specific Packets from Net-Filter!!!!
Kesava Srinivas
vunnavafuture at gmail.com
Thu Nov 17 23:37:06 EST 2011
Thanks Mulyadi Santosa & Abhijit Pawar.
My Target is not bring the Pkts to User Space which is costly. Trying to do
that by using LKM. Seems to be; it is possible through skbuffers whose
structure have the provision to identify the Protocol.
-Thnx,
VKS
On Thu, Nov 17, 2011 at 12:36 AM, Abhijit Pawar <apawar.linux at gmail.com>wrote:
> On 11/17/2011 12:03 PM, Mulyadi Santosa wrote:
>
>> On Wed, Nov 16, 2011 at 17:50, Kesava Srinivas<vunnavafuture at gmail.**com<vunnavafuture at gmail.com>>
>> wrote:
>>
>>> HI Guys,
>>>
>>> I'm a Newbie to Linux Kernel Development. Need some Clarification in
>>> understanding Net-Filter Hooks.
>>>
>>> Can I register only for the Necessary Packets [Ex: IPSEC etc...] from the
>>> Net-Filters?? AFAIK ; Net-Filter Module send the Packets to the
>>> Corresponding Module based on pre-defined HOOKS. Let us say; there are
>>> Many
>>> Packets reaching that Hooks; and if I am Interested only in some Packets
>>> from Net-Filter module; can I do that ???
>>>
>> something like:
>> iptables [some rules] -j ULOG
>> ?
>>
>> Check "man iptables" and see if that suits your need. FYI ULOG target
>> uses netlink to deliver the packet to user space for further
>> processing.
>>
>>
>>
>> Hi Kesava Srinivas,
> If this is for any application in user space, I would recommend you take a
> look at libPcap.
>
> Regards,
> Abhijit Pawar
>
--
-VKS
Masters,Computer Science&Engineering.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20111117/1641366c/attachment.html
More information about the Kernelnewbies
mailing list