Subject: Re: import OpenBSD's tcpdrop(8) command?
To: ghen@telenet.be, Geert Hendrickx <geert.hendrickx@ua.ac.be>
From: Dheeraj Reddy <dheerajr@gmail.com>
List: netbsd-users
Date: 09/22/2005 12:16:06
------=_Part_10180_30887379.1127405766888
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

If you want an working utility/patches..
http://users.ece.gatech.edu/~dheeraj/netbsd.html

AFAIK There are two other alternatives
1) One to use the dsniff's (pacp-based) like interface to predict the
relevant tcp state and sent an appropriate reset.
 2) i seem to recollect that netstat on netbsd has a way to see the tcp
state information. maybe there is a hint there. as to implement without a
new sysctl.
 truly
dheeraj
On 9/22/05, Geert Hendrickx <geert.hendrickx@ua.ac.be> wrote:
>
> On Thu, Sep 22, 2005 at 03:26:03PM +0200, Martin Husemann wrote:
> > On Thu, Sep 22, 2005 at 03:22:01PM +0200, Geert Hendrickx wrote:
> > > The program itself is indeed only a few lines of C code, but it
> doesn't
> > > compile on NetBSD as-is. I think it uses some sysctl stuff we don't
> > > have.
> >
> > I think this came up before and was agreed to be a usefull tool. The
> open
> > question is if sysctl(3) is the right interface for this purpose.
>
> Well, I'm not sure about that either. We could implement it directly
> (without sysinst) and make it commandline compatible.
>
> Geert
>



--
dheeraj

------=_Part_10180_30887379.1127405766888
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<div>If you want an working utility/patches..</div>
<div><a href=3D"http://users.ece.gatech.edu/~dheeraj/netbsd.html">http://us=
ers.ece.gatech.edu/~dheeraj/netbsd.html</a></div>
<div>&nbsp;</div>
<div><br>AFAIK There are two other alternatives<br>1) One to use the dsniff=
's (pacp-based)&nbsp;like interface to predict&nbsp;the </div>
<div>relevant tcp state and sent an appropriate reset.</div>
<div>&nbsp;2) i seem to&nbsp;recollect that netstat on netbsd has a way to =
see the tcp state information. maybe there is a hint there. as to implement=
 without a new sysctl.</div>
<div>&nbsp;</div>
<div>truly</div>
<div>dheeraj</div>
<div><span class=3D"gmail_quote">On 9/22/05, <b class=3D"gmail_sendername">=
Geert Hendrickx</b> &lt;<a href=3D"mailto:geert.hendrickx@ua.ac.be">geert.h=
endrickx@ua.ac.be</a>&gt; wrote:</span>
<blockquote class=3D"gmail_quote" style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0=
px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Thu, Sep 22, 2005 at 03:26:03=
PM +0200, Martin Husemann wrote:<br>&gt; On Thu, Sep 22, 2005 at 03:22:01PM=
 +0200, Geert Hendrickx wrote:
<br>&gt; &gt; The program itself is indeed only a few lines of C code, but =
it doesn't<br>&gt; &gt; compile on NetBSD as-is.&nbsp;&nbsp;I think it uses=
 some sysctl stuff we don't<br>&gt; &gt; have.<br>&gt;<br>&gt; I think this=
 came up before and was agreed to be a usefull tool. The open
<br>&gt; question is if sysctl(3) is the right interface for this purpose.<=
br><br>Well, I'm not sure about that either.&nbsp;&nbsp;We could implement =
it directly<br>(without sysinst) and make it commandline compatible.<br><br=
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Geert
<br></blockquote></div><br><br clear=3D"all"><br>-- <br>dheeraj=20

------=_Part_10180_30887379.1127405766888--