[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Re: [lwip] changes in IP/UDP for DHCP
From: |
Adam Dunkels |
Subject: |
[lwip-users] Re: [lwip] changes in IP/UDP for DHCP |
Date: |
Wed, 08 Jan 2003 22:16:30 -0000 |
Hi Horst!
On Thursday 10 January 2002 16.32, you wrote:
> > udp_bind(state->pcb, IP_ADDR_ANY, DHCP_CLIENT_PORT);
> > udp_connect(state->pcb, IP_ADDR_ANY, DHCP_SERVER_PORT);
>
> ^^^^^^^^^^^^^^
>
> 255.255.255.255 ?
>
> I think you want to send out a DHCP broadcast!? So why not use:
> udp_connect(state->pcb, IP_ADDR_BROADCAST, DHCP_SERVER_PORT);
But the pcb needs to be connected to IP_ADDR_ANY in order to receive incoming
DHCP datagrams.
/adam
--
Adam Dunkels <address@hidden>
http://www.sics.se/~adam
[This message was sent through the lwip discussion list.]