[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] STABLE-1.4.1 IPv6 Initialization Examples or Guidance

From: Ivan Delamer
Subject: Re: [lwip-users] STABLE-1.4.1 IPv6 Initialization Examples or Guidance
Date: Thu, 13 Dec 2012 10:12:29 -0700 (MST)
User-agent: SquirrelMail/1.4.9a

Hi Grant,

A link-local address must be initialized manually. This allows you to
create a LL address based on MAC, or if you want to use something simple
such as fe80::1 you can do that as well.

There are some helper methods for this, what I do after netif_add() is this:

  netif_create_ip6_linklocal_address(&EMAC_if, 1);
  netif_ip6_addr_set_state((&EMAC_if), 0, IP6_ADDR_TENTATIVE);

Since an interface can have multiple IPv6 addresses, the LL address must
always be indexed at 0. Neighbor discovery and related algorithms make the
assumption that the LL address is EMAC_if.ip6_addr[0].


> Date: Thu, 13 Dec 2012 08:51:35 -0800
> From: Grant Erickson <address@hidden>
> To: address@hidden
> Subject: [lwip-users] STABLE-1.4.1 IPv6 Initialization Examples or
>       Guidance
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=us-ascii
> I've an integration of LwIP STABLE-1_4_1 into a project and have IPv4
> working, via DHCP, reliably and stably. However, I am now moving along in
> attempting to enable IPv6 support, which I've done with:
>       #define LWIP_IPV6                       1
> in lwipopts.h. In addition, I've set output_ip6  and mld_mac_filter to
> appropriate functions.
> Unfortunately, I seem unable to coax the interface to taking a link-local
> (fe80) address, performing DAD and then participating in RS/RA (as seems
> typical for iOS, Mac OS X and Linux). I do see three router solicitations
> attempt to get emitted; however, the function ip6_select_source_address in
> ip6_output_if seems to NULL out the source address of IP_ADDR_ANY and
> ip6_output_if fails with ERR_RTE. Regardless, simply sending router
> solicitations before taking a link-local address seems a bit out-of-order
> here.
> I suspect there may also be an issue with setting up the correct multicast
> filters in the MAC; however, I'd expect that would / will only be an issue
> once I get the interface to take a link-local address and start issuing
> neighbor solicitations and such.
> Any examples or other recommendations on correctly initializing and
> kicking-off proper IPv6 set up in LwIP?
> Best,
> Grant
> ------------------------------
> _______________________________________________
> lwip-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/lwip-users
> End of lwip-users Digest, Vol 112, Issue 15
> *******************************************

reply via email to

[Prev in Thread] Current Thread [Next in Thread]