hi, in my current lkm writings i use a function that i added with dev_add_pack(). the type of the function is declared in the packet_type struct, it returns an int and takes three parameters. as i experienced, the return value doesnt matter to the kernel because it always seems to accept the packet. the quite common way of returning -1 doesnt work for me aswell. so my question is how do i drop packets that go through my function? thanks for your time. threadhead ______________________________________________________________________________ Erdbeben im Iran: Zehntausende Kinder brauchen Hilfe. UNICEF hilft den Kindern - helfen Sie mit! https://www.unicef.de/spe/spe_03.php -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/