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 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 |