Hello ALL:
I am trying to figure out a way to close a single active TCP
connection on Solaris 7, 8, and 9 - at the OS, network or kernel
level without stopping the layer 7 application. I don't believe there
is
any utilities built in to the OS for doing this. I am looking
for a freeware/shareware tool or some insight on how to
program such a utility.
Example:
# netstat -an
Local Address Remote Address Swind Send-Q Rwind Recv-Q
State
-------------------- -------------------- ----- ------
.
.
.
192.168.1.1.22 192.168.1.10.1022 24820 0 33580 0
ESTABLISHED
.
.
.
Let's say I want to force this connection to drop withOUT re-booting or
killing
the ssh daemon, or in the case of inetd controlled processes, I do not
want to kill
inetd or all of any particular daemon or processes.
I am currently investigating a way to obtain the socket descriptor and
writing some code
to utilize the "shutdown" (man 3N) library routine to close the
connection.
Any suggestions or ideas would be appreciated.
regards,
Pete