Re: [lwip-users] Enabling DHCP option 50
Hello Patrick. I think packets are formatted properly. Thank you for the reply. -- 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
Re: [lwip-users] Enabling DHCP option 50
Okay. Thank you very much. -- 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
Re: [lwip-users] Enabling DHCP option 50
On 2/9/2018 7:46 AM, cookies_do wrote: Yes, I have tried and it seems like DHCP server just ignored this requested IP. DHCP server offered another IP and after that DHCP client accepted this offered IP. IP I have requested is hard-coded just for purpose of testing this feature "Request IP address". Requested IP address is available. Have you examined the new packet you created with WireShark or similar to verify the packet is formatted properly? If so, it's likely that the DHCP server doesn't support (or isn't configured for) the option. My question is: Do I have to include some other option in DHCP message or this is enough? Not sure, but not usually with DHCP. Patrick Klos Klos Technologies, Inc. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users
Re: [lwip-users] Enabling DHCP option 50
cookies_do wrote: > Yes, I have tried and it seems like DHCP server just ignored this requested > IP. DHCP server offered another IP and after that DHCP client accepted this > offered IP. IP I have requested is hard-coded just for purpose of testing > this feature "Request IP address". Requested IP address is available. > > My question is: > Do I have to include some other option in DHCP message or this is enough? I guess it should be enough. Keep in mind that a DHCP must be specially configured to accept client-requested IPs. One situation where every server should accept this request is when a client reboots without releasing its lease and re-requests the same address again. Simon ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users
Re: [lwip-users] Enabling DHCP option 50
Yes, I have tried and it seems like DHCP server just ignored this requested IP. DHCP server offered another IP and after that DHCP client accepted this offered IP. IP I have requested is hard-coded just for purpose of testing this feature "Request IP address". Requested IP address is available. My question is: Do I have to include some other option in DHCP message or this is enough? 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
Re: [lwip-users] Enabling DHCP option 50
cookies_do wrote: > 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? I'm not sure I understand your problem. Have you tried and failed? Simon ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users
[lwip-users] Enabling DHCP option 50
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