Hello,

I am using lwIP 2.0.3 in my application and I want to enable DHCP option 50
(Requested IP Address) according to RFC 2132 document (chapter 9.1). This
option should be set in DISCOVER message.

Is it enough to concatenate an option type and length field to the outgoing
DHCP message in dhcp_discover() function in lwIP like this:

options_out_len = dhcp_option(options_out_len, msg_out->options,
DHCP_OPTION_REQUESTED_IP, 4);
options_out_len = dhcp_option_long(options_out_len, msg_out->options,
lwip_ntohl(requested_ip_hex));

Anybody has an idea?

Thank you. 



--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html

_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to