lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #8754] Add functions to join/leave IGMP by netif


From: Valery Ushakov
Subject: [lwip-devel] [patch #8754] Add functions to join/leave IGMP by netif
Date: Wed, 30 Sep 2015 11:30:32 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0

Follow-up Comment #3, patch #8754 (project lwip):

Please, can ipv6 change be combined with factoring out the open-coded version
of netif_matches_ip6_addr?  I forgot I did that in my version.  So the end
result would look something like


err_t
mld6_joingroup(ip6_addr_t *srcaddr, ip6_addr_t *groupaddr)
{
  err_t              err = ERR_VAL; /* no matching interface */
  struct netif      *netif;

  if (ip6_addr_isany(srcaddr)) {
    for (netif = netif_list; netif != NULL; netif = netif->next) {
      err = mld6_netif_joingroup(netif, groupaddr);
    }
  }
  else {
    for (netif = netif_list; netif != NULL; netif = netif->next) {
      if (netif_matches_ip6_addr(netif, srcaddr) >= 0) {
        return mld6_netif_joingroup(netif, groupaddr);
      }
    }
  }

  return err;
}



    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?8754>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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