This is a very quick and dirty port of the tcpdrop utility from OpenBSD and FreeBSD to Solaris. Has been tested on Solaris 8, 9 and 10.
Download it if you like.
Thanks to Casper Dik for pointing out the TCP_IOC_ABORT_CONN ioctl. http://cvs.opensolaris.org/source/xref/on/usr/src/cmd/zoneadmd/vplat.c
provided all the documentation on its use, and so certain portions of
this file are covered by the CDDL included in the tar file.
The original work is covered by a BSD license.
There is a web log post about this, and a descriptive article about tcpdrop at Sun’s BigAdmin.
Update: December 4th, 2006 – Maxim Konovalov sent a patch to have tcpdrop work on the amd64 version of Solaris 10, which I had not been able to test previously. Thanks Maxim.
Update: May 16th, 2008 – A new version has been released with much improved (read: correct) error messages.
The next version will, at the very least, include a man version of the manual rather than an mdoc one.