Re: how to close a socket such that no packet will be sent by TCP to peer



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
.



Relevant Pages

  • Re: Http server implementation for Windows Media Server
    ... I'm assuming you are using a raw TCP ... Dump that idea and use a regular TCP socket instead. ... the packets aren't ACKed because ... since my Http server simulates for him a Windows Media ...
    (microsoft.public.win32.programmer.networks)
  • Re: Socket switch delay
    ... > I was referring to the client sending data on this socket while the server ... sockets to provide TCP support without also supporting asynchronous ... > The server uses blocking sockets just because I am also using Overlapped ... > structures to send the packets. ...
    (microsoft.public.win32.programmer.networks)
  • how to close a socket such that no packet will be sent by TCP to peer
    ... such that TCP will not try to send any pakcets over socket after that. ... If app can not do that, can kernel module do something. ... TCP from sending any packets. ...
    (comp.os.linux.networking)
  • Re: Sockets Refresh Problem
    ... Can you post your code that reads data from the socket? ... In TCP, ... No, in TCP, *packets* are sent and received. ... packet's worth of data, ...
    (comp.unix.programmer)
  • Re: how to close a socket such that no packet will be sent by TCP to peer
    ... :> such that TCP will not try to send any pakcets over socket after that. ... :> If app can not do that, can kernel module do something. ... I tried sending fabricated RST packets over raw ...
    (comp.os.linux.networking)