[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [lwip-users] updated raw api UDP echo server example
From: |
Goldschmidt Simon |
Subject: |
RE: [lwip-users] updated raw api UDP echo server example |
Date: |
Thu, 14 Jun 2007 14:20:49 +0200 |
> >> > One question remains: I use multicast and bind the pcb to a
> >> > multicast-address.
> >> > So when sending, as src.ip the multicast addr is used.
> Any ideas to
> >> > solve that in a nice way?
> >>
> >> Hmm, other than directly manipulating the pcb I would say:
> >> use another pcb and do a second udp_bind() to your real IP address
> >> and use this pcb to send the outgoing packets...
> >
> > I don't know if that works, as two pcbs would have to be
> bound to the
> > same port. I think there's a todo for that kind of usage.
>
> If I read the code (1.2.0) correctly, it is not tested in
> udp_bind(), even though there is code to test it, but this is
> disabled via #ifdef LWIP_UDP_TODO, which is not set anywhere.
> But even then the mentioned code would allow binding to
> multicast and one(!) IP address, but not to multicast and IP_ADDR_ANY.
>
> So, iow the second call to udp_bind() should at least
> succeed, but if it really works remains to be tested.
>
> Dominik, your turn ;)
As I said, I don't know. Task #6995 and bug #2809 tell me that
we would need SO_REUSEADDR for that...
Simon.
- [lwip-users] updated raw api UDP echo server example, Juri Haberland, 2007/06/14
- RE: [lwip-users] updated raw api UDP echo server example, Spies, Dominik, 2007/06/14
- Re: [lwip-users] updated raw api UDP echo server example, Juri Haberland, 2007/06/14
- RE: [lwip-users] updated raw api UDP echo server example, Goldschmidt Simon, 2007/06/14
- Re: [lwip-users] updated raw api UDP echo server example, Juri Haberland, 2007/06/14
- RE: [lwip-users] updated raw api UDP echo server example,
Goldschmidt Simon <=
- [lwip-users] DNS client for lwIP raw API, Pettinato, Jim, 2007/06/19
- RE: [lwip-users] DNS client for lwIP raw API, Taranowski, Thomas (SWCOE), 2007/06/27
- RE: [lwip-users] DNS client for lwIP raw API, Pettinato, Jim, 2007/06/27
- [lwip-users] Usage example for DNS client (resolv.c), Pettinato, Jim, 2007/06/19
- RE: [lwip-users] Usage example for DNS client (resolv.c), Goldschmidt Simon, 2007/06/19
- RE: [lwip-users] Usage example for DNS client (resolv.c), Pettinato, Jim, 2007/06/19
- RE: [lwip-users] Usage example for DNS client (resolv.c), Kieran Mansley, 2007/06/19
- RE: [lwip-users] Usage example for DNS client (resolv.c), Pettinato, Jim, 2007/06/19