espressif / esp-lwip

Fork of lwIP (https://savannah.nongnu.org/projects/lwip/) with ESP-IDF specific patches
Other
85 stars 129 forks source link

dhcp: Set hostname for DISCOVER packets (IDFGH-2922) #9

Closed lsgunth closed 4 years ago

lsgunth commented 4 years ago

If the hostname is not set in the DISCOVER packet, then some servers might issue an OFFER with that it will reject when the hostname is presented in the REQUEST packet.

This is similar to commit 0865edf80ad0a96e0eaf2bbedbad350cab248115 which is in 2.0.3-esp release/v3.2 release/v3.3 but not 2.1.2-esp.

This PR is related to #6, but fixes a different issue.

david-cermak commented 4 years ago

@lsgunth Thanks for the contribution. Your fix has been cherry-picked as https://github.com/espressif/esp-lwip/commit/13665c14e19dfda6b2ad30c1e5d88e0415cf8b7a.

beta-tester commented 4 years ago

thank you for fixing.