Hi, Hiroki, On 08/07/2014 06:24 AM, Hiroki Sato wrote: > > Fernando Gont <ferna...@gont.com.ar> wrote > in <53e2b586.3080...@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.
Yes, that's what I would have expected. > Can you show > the code you are using? Yes: <https://github.com/fgont/snippets/raw/master/bsd-lookup-simple.c> Run it as: bsd-lookup-simple -v IPV6_DEST_ADDR (or without the "-v" if you don't want much verbosity) Thanks! Best regards, -- Fernando Gont e-mail: ferna...@gont.com.ar || fg...@si6networks.com PGP Fingerprint: 7809 84F5 322E 45C7 F1C9 3945 96EE A9EF D076 FFF1 _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"