RE: how to drop packet in the kernel space?

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

 



 

Visit the following link:

It talks about extending the iptables firewall in Linux

It drops the packets at Network layer and packets never reach the TCP or UDP layer as you might be expecting.

 

http://www.linuxjournal.com/article.php?sid=7184

 

Regards,

Gaurav


From: kernelnewbies-bounce@xxxxxxxxxxxx [mailto:kernelnewbies-bounce@xxxxxxxxxxxx] On Behalf Of Megharaj
Sent: Saturday, July 17, 2004 2:40 AM
To: kernelnewbies@xxxxxxxxxxxx
Subject: how to drop packet in the kernel space?

 

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 tried this:

 

i commented the wake_up_interruptible(sk->sleep) in "linux-2.4.x/net/core/sock.c";

 

if do this transmission and receiving of packet from sevrer and client is not happening ?

 

what i uderstood is:

before waking up the socket which is waiting for packet,

the acknowledgment is sent to the sever (before waking up the socket),

so the packet transmission and receiving between server

and cleint shud not stop.

am i right?

 

so the packet trnsmission shud continue if i won't give tha packet to

socket so that i am stopping the packet  to move in the user space.

 

thanx

 


[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