public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Using rtrequest to add an IPv6 default route
@ 2008-05-08 22:52 Shaun Louie
  2008-05-09 19:24 ` [ECOS] " Shaun Louie
  0 siblings, 1 reply; 2+ messages in thread
From: Shaun Louie @ 2008-05-08 22:52 UTC (permalink / raw)
  To: ecos-discuss

Hello,

In the defrouter_addreq function in 
"/net/bsd_tcpip/current/src/sys/netinet6/nd6_rtr.c" it will do a 
rtrequest for the IPv6 link-local address of the chosen default router 
(from router advertisements).  However, I'm getting a 351 (ENETUNREACH) 
error code from rtrequest.  I'm wondering if maybe the ifa_ifwithnet 
function (/net/bsd_tcpip/current/src/sys/net/if.c) doesn't handle IPv6 
addresses properly and is causing ifa_ifwithroute to return NULL. 

The interface is pre-programmed with the link local address:  
fe80::80:72ff:fe00:62.  I've verified this with the ioctl SIOCGIFCONF 
command (it actually reports fe80:1::80:72ff:fe00:62, but that's because 
FreeBSD temporarily adds an interface index after the prefix)

The router's link local address is: fe80::21f:5bff:fe00:a5cd

My debugging environment is limited for about the next week, so I'm 
unable to step through the code.  I've been using diag_printf(), which 
is only getting me so far.  I was hoping to hear if someone has gotten 
this working (i.e. an IPv6 connection that uses the default gateway 
determined from router advertisements), and what I might need to do to 
get this to work.

Thanks,
Shaun Louie

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ECOS] Re: Using rtrequest to add an IPv6 default route
  2008-05-08 22:52 [ECOS] Using rtrequest to add an IPv6 default route Shaun Louie
@ 2008-05-09 19:24 ` Shaun Louie
  0 siblings, 0 replies; 2+ messages in thread
From: Shaun Louie @ 2008-05-09 19:24 UTC (permalink / raw)
  To: ecos-discuss

Solved: I had programmed an all ones netmask for the link-local 
interface address.

Shaun Louie wrote:
> Hello,
>
> In the defrouter_addreq function in 
> "/net/bsd_tcpip/current/src/sys/netinet6/nd6_rtr.c" it will do a 
> rtrequest for the IPv6 link-local address of the chosen default router 
> (from router advertisements).  However, I'm getting a 351 (ENETUNREACH) 
> error code from rtrequest.  I'm wondering if maybe the ifa_ifwithnet 
> function (/net/bsd_tcpip/current/src/sys/net/if.c) doesn't handle IPv6 
> addresses properly and is causing ifa_ifwithroute to return NULL. 
>   
Shaun Louie

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-09 19:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-08 22:52 [ECOS] Using rtrequest to add an IPv6 default route Shaun Louie
2008-05-09 19:24 ` [ECOS] " Shaun Louie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).