|
From: | address@hidden |
Subject: | Re: [lwip-users] DHCP + LWIP_NETIF_HOSTNAME =1 for IP retrieving |
Date: | Fri, 05 Feb 2010 11:43:49 +0100 |
User-agent: | Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 |
Bill Auerbach wrote:
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 |
[Prev in Thread] | Current Thread | [Next in Thread] |