Re: register callback for special packet types like udp and icmp?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 2008-04-11 14:36, Thomas Mader wrote:

> Hello,
>
> is there a way to define callback (match) functions for special packet types
> like udp and icmp? I would like to have a match function which only reacts on
> udp and icmp packets. Is this possible in a kernelspace module and/or in a
> libnetfilter_queue daemon and how?

Both would work. For kernel modules, it's as simple as
specifying .proto = IPPROTO_UDP or IPPROTO_ICMP, see
http://jengelh.medozas.de/documents/Netfilter_Modules.pdf
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux