netbiosns_opts.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /**
  2. * @file
  3. * NETBIOS name service responder options
  4. */
  5. /*
  6. * Redistribution and use in source and binary forms, with or without modification,
  7. * are permitted provided that the following conditions are met:
  8. *
  9. * 1. Redistributions of source code must retain the above copyright notice,
  10. * this list of conditions and the following disclaimer.
  11. * 2. Redistributions in binary form must reproduce the above copyright notice,
  12. * this list of conditions and the following disclaimer in the documentation
  13. * and/or other materials provided with the distribution.
  14. * 3. The name of the author may not be used to endorse or promote products
  15. * derived from this software without specific prior written permission.
  16. *
  17. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
  18. * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  19. * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
  20. * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  21. * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
  22. * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  23. * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  24. * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
  25. * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  26. * OF SUCH DAMAGE.
  27. *
  28. * This file is part of the lwIP TCP/IP stack.
  29. *
  30. */
  31. #ifndef LWIP_HDR_APPS_NETBIOS_OPTS_H
  32. #define LWIP_HDR_APPS_NETBIOS_OPTS_H
  33. #include "lwip/opt.h"
  34. /**
  35. * @defgroup netbiosns_opts Options
  36. * @ingroup netbiosns
  37. * @{
  38. */
  39. /** NetBIOS name of lwip device
  40. * This must be uppercase until NETBIOS_STRCMP() is defined to a string
  41. * comparison function that is case insensitive.
  42. * If you want to use the netif's hostname, use this (with LWIP_NETIF_HOSTNAME):
  43. * (ip_current_netif() != NULL ? ip_current_netif()->hostname != NULL ? ip_current_netif()->hostname : "" : "")
  44. *
  45. * If this is not defined, netbiosns_set_name() can be called at runtime to change the name.
  46. */
  47. #ifdef __DOXYGEN__
  48. #define NETBIOS_LWIP_NAME "NETBIOSLWIPDEV"
  49. #endif
  50. /** Respond to NetBIOS name queries
  51. * Default is disabled
  52. */
  53. #if !defined LWIP_NETBIOS_RESPOND_NAME_QUERY || defined __DOXYGEN__
  54. #define LWIP_NETBIOS_RESPOND_NAME_QUERY 0
  55. #endif
  56. /**
  57. * @}
  58. */
  59. #endif /* LWIP_HDR_APPS_NETBIOS_OPTS_H */