Re: how to drop packet in the kernel space?

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

 



Hi Megharaj,


On Sat, 2004-07-17 at 02:39, Megharaj wrote:
> hi all...
>  
> i want check the network throughput without passing the packet to
> userspace.
>  
> (tcp) how can i drop the packet in the kernel sapce?

I think u can go for netfilter techniques.. 
For that you can take either of these two options

1) Use the tool "iptables" from the shell (see man iptables)
2) Define a netfilter hook through a "linux kernel module"
   (ofcourse u can add code into the kernel source).
   ( Refer {SRC}/net/ipv4/netfilter/*.c and "netfiler hacking
     howto" from Rusty Russel )


Hope u are doing good ( he is my ex-colleague)

Shine Mohamed Jabbar


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux