lwipcfg.h.example 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /**
  2. * Additional settings for the example app.
  3. * Copy this to lwipcfg.h and make the config changes you need.
  4. */
  5. /* configuration for this port */
  6. #define PPP_USERNAME "Admin"
  7. #define PPP_PASSWORD "pass"
  8. /** Define this to the index of the windows network adapter to use */
  9. #define PACKET_LIB_ADAPTER_NR 1
  10. /** Define this to the GUID of the windows network adapter to use
  11. * or NOT define this if you want PACKET_LIB_ADAPTER_NR to be used */
  12. /*#define PACKET_LIB_ADAPTER_GUID "00000000-0000-0000-0000-000000000000"*/
  13. /*#define PACKET_LIB_GET_ADAPTER_NETADDRESS(addr) IP4_ADDR((addr), 192,168,1,0)*/
  14. /*#define PACKET_LIB_QUIET*/
  15. /* If these 2 are not defined, the corresponding config setting is used */
  16. /* #define USE_DHCP 0 */
  17. /* #define USE_AUTOIP 0 */
  18. /* #define USE_PCAPIF 1 */
  19. #define LWIP_PORT_INIT_IPADDR(addr) IP4_ADDR((addr), 192,168,1,200)
  20. #define LWIP_PORT_INIT_GW(addr) IP4_ADDR((addr), 192,168,1,1)
  21. #define LWIP_PORT_INIT_NETMASK(addr) IP4_ADDR((addr), 255,255,255,0)
  22. /* remember to change this MAC address to suit your needs!
  23. the last octet will be increased by netif->num for each netif */
  24. #define LWIP_MAC_ADDR_BASE {0x00,0x01,0x02,0x03,0x04,0x05}
  25. /* #define USE_SLIPIF 0 */
  26. /* #define SIO_USE_COMPORT 0 */
  27. #ifdef USE_SLIPIF
  28. #if USE_SLIPIF
  29. #define LWIP_PORT_INIT_SLIP1_IPADDR(addr) IP4_ADDR((addr), 192, 168, 2, 2)
  30. #define LWIP_PORT_INIT_SLIP1_GW(addr) IP4_ADDR((addr), 192, 168, 2, 1)
  31. #define LWIP_PORT_INIT_SLIP1_NETMASK(addr) IP4_ADDR((addr), 255, 255, 255, 0)
  32. #if USE_SLIPIF > 1
  33. #define LWIP_PORT_INIT_SLIP2_IPADDR(addr) IP4_ADDR((addr), 192, 168, 2, 1)
  34. #define LWIP_PORT_INIT_SLIP2_GW(addr) IP4_ADDR((addr), 0, 0, 0, 0)
  35. #define LWIP_PORT_INIT_SLIP2_NETMASK(addr) IP4_ADDR((addr), 255, 255, 255, 0)*/
  36. #endif /* USE_SLIPIF > 1 */
  37. #endif /* USE_SLIPIF */
  38. #endif /* USE_SLIPIF */
  39. /* configuration for applications */
  40. #define LWIP_CHARGEN_APP 0
  41. #define LWIP_DNS_APP 0
  42. #define LWIP_HTTPD_APP 0
  43. /* Set this to 1 to use the netconn http server,
  44. * otherwise the raw api server will be used. */
  45. /*#define LWIP_HTTPD_APP_NETCONN */
  46. #define LWIP_NETBIOS_APP 0
  47. #define LWIP_NETIO_APP 0
  48. #define LWIP_MDNS_APP 0
  49. #define LWIP_MQTT_APP 0
  50. #define LWIP_PING_APP 0
  51. #define LWIP_RTP_APP 0
  52. #define LWIP_SHELL_APP 0
  53. #define LWIP_SNMP_APP 0
  54. #define LWIP_SNTP_APP 0
  55. #define LWIP_SOCKET_EXAMPLES_APP 0
  56. #define LWIP_TCPECHO_APP 0
  57. /* Set this to 1 to use the netconn tcpecho server,
  58. * otherwise the raw api server will be used. */
  59. /*#define LWIP_TCPECHO_APP_NETCONN */
  60. #define LWIP_TFTP_APP 0
  61. #define LWIP_TFTP_CLIENT_APP 0
  62. #define LWIP_UDPECHO_APP 0
  63. #define LWIP_LWIPERF_APP 0
  64. /*#define USE_DHCP 1*/
  65. /*#define USE_AUTOIP 1*/
  66. /* define this to your custom application-init function */
  67. /* #define LWIP_APP_INIT my_app_init() */