lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #20503] IGMP Improvement


From: Frédéric Bernon
Subject: [lwip-devel] [bug #20503] IGMP Improvement
Date: Thu, 09 Aug 2007 17:12:38 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6

Follow-up Comment #6, bug #20503 (project lwip):

Ok, the minor part of the patch is included. Bill, if you can check and
confirm this part is good for you?

There is also this patch which is need to be able to receive a multicast
datagram if we are not binded to "any". No objects? Note I don't propose it
with LWIP_IGMP, since you can decide to receive a multicast packet on the
non-igmp network, without wanting the igmp module.

Index: src/core/udp.c
===================================================================
RCS file: /sources/lwip/lwip/src/core/udp.c,v
retrieving revision 1.93
diff -w -b -u -0 -p -r1.93 udp.c
--- src/core/udp.c      3 Jul 2007 20:28:36 -0000       1.93
+++ src/core/udp.c      9 Aug 2007 17:00:17 -0000
@@ -156,0 +157 @@ udp_input(struct pbuf *p, struct netif *
+         ip_addr_ismulticast(&(iphdr->dest)) || 


Last, IP_MULTICAST_IF option should be implemented (see
http://docs.hp.com/en/B2355-90136/ch05s05.html for a sample). It's declared in
sockets.h for source code compatibility, and return an error "not implemented"
at run time. The big lines of the changes are: if LWIP_IGMP=1, we should add a
field "default_xcast_if" in "struct udp_pcb", and patch ip_route() in ip.c to
use it if it's defined != NULL (and, of course, implement get/set sockopt).






    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?20503>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

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