Debian Codegraph @

contrib/examples/example_app/lwipcfg.h.ci

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