lwIP 2.0.0  lwIP 2.0.0
LightweightIPstack

Macros

#define NETBIOS_STRCMP(str1, str2)   strcmp(str1, str2)
 
#define NETBIOS_LWIP_NAME   "NETBIOSLWIPDEV"
 

Detailed Description

Macro Definition Documentation

#define NETBIOS_LWIP_NAME   "NETBIOSLWIPDEV"

NetBIOS name of lwip device This must be uppercase until NETBIOS_STRCMP() is defined to a string comparision function that is case insensitive. If you want to use the netif's hostname, use this (with LWIP_NETIF_HOSTNAME): (ip_current_netif() != NULL ? ip_current_netif()->hostname != NULL ? ip_current_netif()->hostname : "" : "")

If this is not defined, netbiosns_set_name() can be called at runtime to change the name.

#define NETBIOS_STRCMP (   str1,
  str2 
)    strcmp(str1, str2)

Since there's no standard function for case-insensitive string comparision, we need another define here: define this to stricmp() for windows or strcasecmp() for linux. If not defined, comparision is case sensitive and the provided hostname must be uppercase.