lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] ipv6 processing - solicited node address processing


From: Enrico Lehmann
Subject: Re: [lwip-devel] ipv6 processing - solicited node address processing
Date: Mon, 07 May 2012 00:38:38 +0200
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1

Am 05.05.2012 02:45, schrieb Ivan Delamer:
When not using MLD I would suggest the following:

//this is your code
else if (ip6_addr_issolicitednode(ip6_current_dest_addr())) {
//suggestion starts here
     for(netif = netif_list; netif != NULL; netif = netif->next) {
       for (i = 0; i<  LWIP_IPV6_NUM_ADDRESSES; i++) {
         if (ip6_addr_isvalid(netif_ip6_addr_state(netif, i))&&
             ip6_addr_match_solicitednode(current_src_addr(),
netif_ip6_addr(netif, i))) {
                        LWIP_DEBUGF(IP6_ELE_DEBUG, ("solicited node mcast 
addr\r\n"));
             netif = inp;
                        break;
         }
       }
     }
}

I've pushed a solution to this, it is based on your suggestion, but it
only checks on receiving netif, as solicited node addresses are link-local
so it makes no sense to check other netifs.

Right, only checking the receiving netif is correct. I was thinking about my gateway behaviour. Thats why I match it against all other netifs.


Please check it out and let me know if it works for you.

It works great - thanks for working it in!


Cheers
Ivan







reply via email to

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