cagstech / lwip-ce

An IP stack implementation for the TI-84+ CE derived from lwIP code.
Other
12 stars 6 forks source link

DHCP doesn't provide the correct hostname upon init #25

Open alessiodam opened 1 month ago

alessiodam commented 1 month ago

You have configured ti84plusce as hostname here: https://github.com/cagstech/lwip-ce/blob/17618a7859b05d7feb5b5a17425caae808384d6e/src/drivers/usb-ethernet.c#L36

But when I check my router, only i84plusce appears, note that the t is missing there.

acagliano commented 1 month ago

I experienced that too, but was unaware as to the cause. Can you test a possible fix (because i can't log into the router here to test). Move netif_set_hostname(<hostname>) out into main.c -- after netif is detected. See if that fixes it.