how to drop packet in the kernel space?

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

 



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