Bill Auerbach wrote:
Perhaps a feature that would be nice here is to map the DHCP host name
to the netbios name.
No problem:
#define NETBIOS_LWIP_NAME (ip_current_netif() != NULL ?
ip_current_netif()->hostname != NULL ? ip_current_netif()->hostname : ""
: "")
The define is a bit lengthy only because of the null-pointer check. You
have to take care though that the netif's hostname is upper case since
netbios.c compares it case sensitive. I'll fix that.
I mentioned once that a get and set_host_name on a netif would be good
That's a good idea, indeed.
Simon
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users