Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
netbiosns_opts.h
00001 /** 00002 * @file 00003 * NETBIOS name service responder options 00004 */ 00005 00006 /* 00007 * Redistribution and use in source and binary forms, with or without modification, 00008 * are permitted provided that the following conditions are met: 00009 * 00010 * 1. Redistributions of source code must retain the above copyright notice, 00011 * this list of conditions and the following disclaimer. 00012 * 2. Redistributions in binary form must reproduce the above copyright notice, 00013 * this list of conditions and the following disclaimer in the documentation 00014 * and/or other materials provided with the distribution. 00015 * 3. The name of the author may not be used to endorse or promote products 00016 * derived from this software without specific prior written permission. 00017 * 00018 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 00019 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 00020 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 00021 * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 00022 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 00023 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00024 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00025 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 00026 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 00027 * OF SUCH DAMAGE. 00028 * 00029 * This file is part of the lwIP TCP/IP stack. 00030 * 00031 */ 00032 #ifndef LWIP_HDR_APPS_NETBIOS_OPTS_H 00033 #define LWIP_HDR_APPS_NETBIOS_OPTS_H 00034 00035 #include "lwip/opt.h" 00036 00037 /** 00038 * @defgroup netbiosns_opts Options 00039 * @ingroup netbiosns 00040 * @{ 00041 */ 00042 00043 /** Since there's no standard function for case-insensitive string comparision, 00044 * we need another define here: 00045 * define this to stricmp() for windows or strcasecmp() for linux. 00046 * If not defined, comparision is case sensitive and the provided hostname must be 00047 * uppercase. 00048 */ 00049 #if !defined NETBIOS_STRCMP || defined __DOXYGEN__ 00050 #define NETBIOS_STRCMP(str1, str2) strcmp(str1, str2) 00051 #endif 00052 00053 /** NetBIOS name of lwip device 00054 * This must be uppercase until NETBIOS_STRCMP() is defined to a string 00055 * comparision function that is case insensitive. 00056 * If you want to use the netif's hostname, use this (with LWIP_NETIF_HOSTNAME): 00057 * (ip_current_netif() != NULL ? ip_current_netif()->hostname != NULL ? ip_current_netif()->hostname : "" : "") 00058 * 00059 * If this is not defined, netbiosns_set_name() can be called at runtime to change the name. 00060 */ 00061 #ifdef __DOXYGEN__ 00062 #define NETBIOS_LWIP_NAME "NETBIOSLWIPDEV" 00063 #endif 00064 00065 /** 00066 * @} 00067 */ 00068 00069 #endif /* LWIP_HDR_APPS_NETBIOS_OPTS_H */
Generated on Tue Jul 12 2022 17:34:50 by
