Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jul 2001 11:28:54 -0700
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        Juan Fco Rodriguez Hervella <jrh@it.uc3m.es>
Cc:        Lista <freebsd-net@FreeBSD.ORG>
Subject:   Re: How to send packets to another interface on the same machine
Message-ID:  <20010703112854.A25425@Odin.AC.HMC.Edu>
In-Reply-To: <3B420C63.41C48FBB@it.uc3m.es>; from jrh@it.uc3m.es on Tue, Jul 03, 2001 at 08:18:11PM %2B0200
References:  <3B420C63.41C48FBB@it.uc3m.es>

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

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

On Tue, Jul 03, 2001 at 08:18:11PM +0200, Juan Fco Rodriguez Hervella wrote:
> I have the following problem: I would like to send an IPv6 packet using
> a given=20
> interface, to the address that corresponds to another interface of the
> same machine.=20
>=20
> This, that seems a bit akward, it would be interesting for obtaining
> accurate=20
> packet latency results to test other systems that could be placed
> between the=20
> two interfaces (routers, etc.). Since the sending and the receiving
> process share=20
> the same physical clock, microsecond precision could be obtained in the
> measures.
>=20
> The problem is that FreeBSD recognises that the destination address is
> in the same=20
> machine, and routes directly through the loopback interface, without
> sending actually
> the packets through the wire.
>=20
> Anyone knows a trick to do this?

I'm working on a project with similar problmes requirements, though
without the strict timing requirements.  We're using a NAT component in
the middle so all the clients have 10.1 addresses, but try to connect to
10.2 addresses.  The translation should be more then fast enough four our
purposes, but may not work for yours.  If you don't care about local IP
stack latency measurements, you might try writing RAW packets directly
to the wire with libnet.

-- Brooks

--=20
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4

--45Z9DzgjV8m4Oswq
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7Qg7lXY6L6fI4GtQRAhGJAJ98FcnKGSAsRhwjZIO9UXCsXAZA/ACeMqyV
Wd21tbm5/gQtKuCd6iaYbIM=
=9PbU
-----END PGP SIGNATURE-----

--45Z9DzgjV8m4Oswq--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




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