Hi, 

I have an application where an UDP server listens on a port. When I've
got the IP address configured, everything works. But I want to be able
to broadcast to the device on that port to configure the IP
address. Lwip seems to recieve the broadcast, but it doesn't call my
incoming-udp-callback when no IP address is configured. DHCP is not an
option. (I want to reinvent the wheel :-) ).

I would have hoped that even with ip address wronly configured, it
would pass the packet on to my udp-recieve function and that I could
then decide what to do. But it seems that the packet is discarded as
"not for me". 

How can I provisionally configure lwip to accept broadcast packets if
I don't know an IP address yet? Or maybe I should specify another
"bind-address" when creating the UDP socket? I now specify "any"
(0.0.0.0)...

        Roger.

-- 
** [email protected] ** https://www.BitWizard.nl/ ** +31-15-2049110 **
**    Delftechpark 11 2628 XJ  Delft, The Netherlands.  KVK: 27239233    **
f equals m times a. When your f is steady, and your m is going down
your a is going up.  -- Chris Hadfield about flying up the space shuttle.

_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to