Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jun 2004 10:02:36 +0300
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        Gleb Smirnoff <glebius@cell.sick.ru>
Cc:        FreeBSD current users <current@FreeBSD.org>
Subject:   Re: HEADSUP! netgraph Metadata changing.
Message-ID:  <20040608070236.GA57053@ip.net.ua>
In-Reply-To: <20040608065831.GC26822@cell.sick.ru>
References:  <20040607071701.GC17986@cell.sick.ru> <Pine.BSF.4.21.0406070034350.19288-100000@InterJet.elischer.org> <20040607074037.GB18232@cell.sick.ru> <20040608065235.GA56799@ip.net.ua> <20040608065831.GC26822@cell.sick.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

--zhXaljGHf11kAtnf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Jun 08, 2004 at 10:58:31AM +0400, Gleb Smirnoff wrote:
> On Tue, Jun 08, 2004 at 09:52:35AM +0300, Ruslan Ermilov wrote:
> R> > J> > J> In addition the ng_ksocket node adds info into metadata and =
I suspect
> R> > J> > J> there are people using that.
> R> > J> >=20
> R> > J> > Since ng_ksocket tags packets for itself only, we can safely ch=
ange it.
> R> > J>=20
> R> > J> Since I did not add that code I am not very familiar with it or w=
ho uses
> R> > J> it. (or why)
> R> > J>=20
> R> > J> if this is true than yes we can do this..
> R> >=20
> R> > It is used only on UDP connection, to send replies back to where the=
 original
> R> > packets came from.
> R> >=20
> R> I wouldn't hardcode it this way.  Rather, it just mimics the
> R> sendto()/recvfrom() semantics, to represent the "to"/"from"
> R> arguments, respectively.
>=20
> Pardon, haven't understand what do you suggest. You mean, that it'll be b=
etter
> if node originating packets will insert this tag?
>=20
It's not just used "to send replies back".  In our proprietary module,
we expect the connected node to be of a type "inet/dgram/udp ksocket",
and insert tags appropriately to send datagrams to a correct router.
We also read tags to verify that the datagrams are coming from the
correct router.  And it just mimics the sendto()/recvfrom() behavior.


Cheers,
--=20
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer

--zhXaljGHf11kAtnf
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAxWSMqRfpzJluFF4RAkekAJ97yi0KbkzFeTJmD7l5mmvUXq7CNgCglEMW
+096yFXJsnZxagmcpOv32qo=
=85Md
-----END PGP SIGNATURE-----

--zhXaljGHf11kAtnf--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040608070236.GA57053>