This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Using rtrequest to add an IPv6 default route
- From: Shaun Louie <sal at microplex dot com>
- To: ecos-discuss at sourceware dot org
- Date: Fri, 09 May 2008 13:23:51 -0600
- Subject: [ECOS] Re: Using rtrequest to add an IPv6 default route
- References: <482383F5.1020201@microplex.com>
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