lwipcfg.h.ci 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. /* #define USE_PCAPIF 1 */
  16. #define LWIP_PORT_INIT_IPADDR(addr) IP4_ADDR((addr), 192,168,1,200)
  17. #define LWIP_PORT_INIT_GW(addr) IP4_ADDR((addr), 192,168,1,1)
  18. #define LWIP_PORT_INIT_NETMASK(addr) IP4_ADDR((addr), 255,255,255,0)
  19. /* remember to change this MAC address to suit your needs!
  20. the last octet will be increased by netif->num for each netif */
  21. #define LWIP_MAC_ADDR_BASE {0x00,0x01,0x02,0x03,0x04,0x05}
  22. /* #define USE_SLIPIF 0 */
  23. /* #define SIO_USE_COMPORT 0 */
  24. #ifdef USE_SLIPIF
  25. #if USE_SLIPIF
  26. #define LWIP_PORT_INIT_SLIP1_IPADDR(addr) IP4_ADDR((addr), 192, 168, 2, 2)
  27. #define LWIP_PORT_INIT_SLIP1_GW(addr) IP4_ADDR((addr), 192, 168, 2, 1)
  28. #define LWIP_PORT_INIT_SLIP1_NETMASK(addr) IP4_ADDR((addr), 255, 255, 255, 0)
  29. #if USE_SLIPIF > 1
  30. #define LWIP_PORT_INIT_SLIP2_IPADDR(addr) IP4_ADDR((addr), 192, 168, 2, 1)
  31. #define LWIP_PORT_INIT_SLIP2_GW(addr) IP4_ADDR((addr), 0, 0, 0, 0)
  32. #define LWIP_PORT_INIT_SLIP2_NETMASK(addr) IP4_ADDR((addr), 255, 255, 255, 0)*/
  33. #endif /* USE_SLIPIF > 1 */
  34. #endif /* USE_SLIPIF */
  35. #endif /* USE_SLIPIF */
  36. /* configuration for applications */
  37. #define LWIP_CHARGEN_APP 1
  38. #define LWIP_DNS_APP 1
  39. #define LWIP_HTTPD_APP LWIP_TCP
  40. /* Set this to 1 to use the netconn http server,
  41. * otherwise the raw api server will be used. */
  42. /*#define LWIP_HTTPD_APP_NETCONN */
  43. #define LWIP_NETBIOS_APP LWIP_IPV4 && LWIP_UDP
  44. #define LWIP_NETIO_APP 1
  45. #define LWIP_MDNS_APP LWIP_UDP
  46. #define LWIP_MQTT_APP LWIP_TCP
  47. #define LWIP_PING_APP 1
  48. #define LWIP_RTP_APP 1
  49. #define LWIP_SHELL_APP LWIP_TCP
  50. #define LWIP_SNMP_APP LWIP_UDP
  51. #define LWIP_SNTP_APP LWIP_UDP
  52. #define LWIP_SOCKET_EXAMPLES_APP 1
  53. #define LWIP_TCPECHO_APP LWIP_TCP
  54. /* Set this to 1 to use the netconn tcpecho server,
  55. * otherwise the raw api server will be used. */
  56. /*#define LWIP_TCPECHO_APP_NETCONN */
  57. #define LWIP_TFTP_APP LWIP_UDP
  58. #define LWIP_TFTP_CLIENT_APP LWIP_UDP
  59. #define LWIP_UDPECHO_APP LWIP_UDP
  60. #define LWIP_LWIPERF_APP LWIP_TCP
  61. #define USE_DHCP LWIP_DHCP
  62. #define USE_AUTOIP LWIP_AUTOIP
  63. /* define this to your custom application-init function */
  64. /* #define LWIP_APP_INIT my_app_init() */