Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Aug 2014 19:24:03 +0900 (JST)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        fernando@gont.com.ar
Cc:        freebsd-net@freebsd.org
Subject:   Re: Routing IPv6 packets towards oneself with routing sockets?
Message-ID:  <20140807.192403.845244220459089560.hrs@allbsd.org>
In-Reply-To: <53E2B586.3080700@gont.com.ar>
References:  <53E2B586.3080700@gont.com.ar>

next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart(Thu_Aug__7_19_24_03_2014_114)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

Fernando Gont <fernando@gont.com.ar> wrote
  in <53E2B586.3080700@gont.com.ar>:

fe> However, whenever I lookup an entry for fc00:1::1 with routing sockets,
fe> the only entry I obtain is fc00:1::/64 (a network route) rather than
fe> fc00:1::1/128 (a host route). As a result, I kind of have to figure out
fe> that since fc00:1::1 is my own address, I must override whatever I
fe> learned via routing sockets, and just send my packets to loopback.
fe>
fe> I would assume that I must be doing something wrong, since I would
fe> expect the host-specific route (i.e. longest-matching route) to be route
fe> learned via routing sockets. And that I shouldn't be implementing this
fe> "is the dst address my own address?" hack.
fe>
fe> Any thoughts?
fe>
fe> P.S.: I can provide a code snippet if that'd be of any help.

 RTM_GET should return fc00:1::1/128 with ifp == lo0.  Can you show
 the code you are using?

-- Hiroki

----Security_Multipart(Thu_Aug__7_19_24_03_2014_114)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEABECAAYFAlPjU8MACgkQTyzT2CeTzy32FgCgqdd3V4Ap0oIXDly2EGDNJarS
l4wAnjEF5rCAbRQv1mx5oSsMb4whzt+h
=SWGN
-----END PGP SIGNATURE-----

----Security_Multipart(Thu_Aug__7_19_24_03_2014_114)----



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