DragonFly BSD
DragonFly submit List (threaded) for 2004-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: tcpdrop(8) for DragonFly


From: "Andre Nathan" <andre@xxxxxxxxxxxxxxx>
Date: Sun, 14 Nov 2004 21:12:05 -0200 (BRST)

Matthew Dillon said:
>   I think two separate sysctl's.  I didn't review the code well enough to
>   know how the sysctl mechanism is supposed to work, but on the face of it
>   it seems that simply having two sysctl's, one whos action is to drop
>   and one whos action is to shutdown, would be the easiest mod.

OK, new patch at

http://andre.people.digirati.com.br/dragonfly/patches/tcpdrop/tcp_subr_shutdown.patch

This adds "net.inet.tcp.drop" and "net.inet.tcp.shutdown", and their v6
version.

Do you think sodisconnect() would be just as fine as soshutdown()? I'm
asking because, since sodisconnect() expects the same argument of
soabort(), I can pass a pointer to the respective function, which I think
it's neater. If sodisconnect() is fine, there's a patch that uses it
instead at

http://andre.people.digirati.com.br/dragonfly/patches/tcpdrop/tcp_subr_disconnect.patch

Anyway, I hope it's alright now :) If all is fine, I'll work on adding
command line options to tcpdrop(8) so that you can choose which sysctl
it'll  use.

Andre



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