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