Re: how to close a socket such that no packet will be sent by TCP to peer
- From: Bjorn Nuyttens <cybercake@xxxxxxxxxx>
- Date: Mon, 16 Jul 2007 15:55:35 GMT
Rohit wrote:
Hi All,
I want a way by which application (or a kernel module working with
application) can close a socket fd
such that TCP will not try to send any pakcets over socket after that.
Not even RST,FIN, ACK.
If app can not do that , can kernel module do something. ??
The problem is also that , the IP adress that TCP connection was using
is no longer with this machine, and it should not send any packet for
that connection. I tried sending fabricated RST packets over raw
socket, but this does not work , as pakcet goes to different machine.
(which has got this machine's IP now.)
I have IP address for this machine, but do not know how i can stop
TCP from sending any packets .
Any suggestion ??
-- Rohit
If you do not find the solution in the man pages of close,shutdown or
setsockopt, I guess you have no other way than writing your own TCP/IP
stack using raw sockets...
Bjorn
.
- Follow-Ups:
- Re: how to close a socket such that no packet will be sent by TCP to peer
- From: Robert Nichols
- Re: how to close a socket such that no packet will be sent by TCP to peer
- References:
- Prev by Date: Re: 1000 IP packets with different SOURCE&DESTINATION addresses generator/simulator
- Next by Date: Re: Raw ethernet socket
- Previous by thread: how to close a socket such that no packet will be sent by TCP to peer
- Next by thread: Re: how to close a socket such that no packet will be sent by TCP to peer
- Index(es):
Relevant Pages
|