Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Apr 2016 00:32:05 -0300
From:      lpa lpa <arvorebemgrande@gmail.com>
To:        Nikolay Denev <nike_d@cytexbg.com>
Cc:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: Working divert socket example prog?
Message-ID:  <CAK=3RFyb6333CkpDRMtXKAsyrRXWAUGardE1hBidd1W1_dSUeg@mail.gmail.com>
In-Reply-To: <CA%2BP_MZHrwtO8rpnuk_NxZ6-hoY=mqYYPs=Vymp-AEKyfT9G4sA@mail.gmail.com>
References:  <CAK=3RFxx9Xetz9kDiunmpmEZUSNFq7-O%2BQ63pT3iUHR0LM05Jw@mail.gmail.com> <CA%2BP_MZHrwtO8rpnuk_NxZ6-hoY=mqYYPs=Vymp-AEKyfT9G4sA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Apr 28, 2016 at 4:06 PM, Nikolay Denev <nike_d@cytexbg.com> wrote:

> Hi,
>
> Have you looked at the natd(8) source code?
>

yes but it's a complete application, it does a lot of stuff and I am not
able to "clean" it up to become a simple divert application which reinjects
packet so I can measure something. I was not able, so far, to make the
mentioned divert-loop work, not breaking natd is a much longer step to a
non programmer


>
>
> --Nikolay
>
> On Thu, Apr 28, 2016 at 7:21 AM, lpa lpa <arvorebemgrande@gmail.com>
> wrote:
> > Do anyone have a working example code of a divert loop program?
> >
> > I tried building this one[1] but it seems to be for FreeBSD 5 and won't
> > build on latest system. I want to make simple measurement of pps rate
> for a
> > packet traveling inside a divert socket and getting reinjected back whi=
le
> > printing some logs.
> >
> > However I am not a coder :(
> >
> > Thank you.
> >
> > [1]https://github.com/DianeRay/divert-loop/tree/master/divert-loop
> >
> > --
> > Mais que uma ONG.
> > Uma convic=C3=A7=C3=A3o.
> > _______________________________________________
> > freebsd-net@freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-net
> > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
>



--=20
Mais que uma ONG.
Uma convic=C3=A7=C3=A3o.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAK=3RFyb6333CkpDRMtXKAsyrRXWAUGardE1hBidd1W1_dSUeg>