mikroSDK Reference Manual
net_config.h
Go to the documentation of this file.
1
31
#ifndef _NET_CONFIG_H
32
#define _NET_CONFIG_H
33
34
//Trace level for TCP/IP stack debugging
35
#define MEM_TRACE_LEVEL TRACE_LEVEL_INFO
36
#define NIC_TRACE_LEVEL TRACE_LEVEL_INFO
37
#define ETH_TRACE_LEVEL TRACE_LEVEL_OFF
38
#define LLDP_TRACE_LEVEL TRACE_LEVEL_OFF
39
#define ARP_TRACE_LEVEL TRACE_LEVEL_OFF
40
#define IP_TRACE_LEVEL TRACE_LEVEL_OFF
41
#define IPV4_TRACE_LEVEL TRACE_LEVEL_OFF
42
#define IPV6_TRACE_LEVEL TRACE_LEVEL_OFF
43
#define ICMP_TRACE_LEVEL TRACE_LEVEL_OFF
44
#define IGMP_TRACE_LEVEL TRACE_LEVEL_OFF
45
#define ICMPV6_TRACE_LEVEL TRACE_LEVEL_OFF
46
#define MLD_TRACE_LEVEL TRACE_LEVEL_OFF
47
#define NDP_TRACE_LEVEL TRACE_LEVEL_OFF
48
#define UDP_TRACE_LEVEL TRACE_LEVEL_OFF
49
#define TCP_TRACE_LEVEL TRACE_LEVEL_OFF
50
#define SOCKET_TRACE_LEVEL TRACE_LEVEL_OFF
51
#define RAW_SOCKET_TRACE_LEVEL TRACE_LEVEL_OFF
52
#define BSD_SOCKET_TRACE_LEVEL TRACE_LEVEL_OFF
53
#define WEB_SOCKET_TRACE_LEVEL TRACE_LEVEL_OFF
54
#define AUTO_IP_TRACE_LEVEL TRACE_LEVEL_INFO
55
#define SLAAC_TRACE_LEVEL TRACE_LEVEL_INFO
56
#define DHCP_TRACE_LEVEL TRACE_LEVEL_INFO
57
#define DHCPV6_TRACE_LEVEL TRACE_LEVEL_INFO
58
#define DNS_TRACE_LEVEL TRACE_LEVEL_INFO
59
#define MDNS_TRACE_LEVEL TRACE_LEVEL_OFF
60
#define NBNS_TRACE_LEVEL TRACE_LEVEL_OFF
61
#define LLMNR_TRACE_LEVEL TRACE_LEVEL_OFF
62
#define ECHO_TRACE_LEVEL TRACE_LEVEL_INFO
63
#define COAP_TRACE_LEVEL TRACE_LEVEL_INFO
64
#define FTP_TRACE_LEVEL TRACE_LEVEL_DEBUG
65
#define HTTP_TRACE_LEVEL TRACE_LEVEL_INFO
66
#define MQTT_TRACE_LEVEL TRACE_LEVEL_INFO
67
#define MQTT_SN_TRACE_LEVEL TRACE_LEVEL_INFO
68
#define SMTP_TRACE_LEVEL TRACE_LEVEL_INFO
69
#define SNMP_TRACE_LEVEL TRACE_LEVEL_INFO
70
#define SNTP_TRACE_LEVEL TRACE_LEVEL_INFO
71
#define TFTP_TRACE_LEVEL TRACE_LEVEL_INFO
72
#define MODBUS_TRACE_LEVEL TRACE_LEVEL_INFO
73
74
//Number of network adapters
75
#define NET_INTERFACE_COUNT 1
76
77
//Size of the MAC address filter
78
#define MAC_ADDR_FILTER_SIZE 12
79
80
//IPv4 support
81
#define IPV4_SUPPORT ENABLED
82
//Size of the IPv4 multicast filter
83
#define IPV4_MULTICAST_FILTER_SIZE 4
84
85
//IPv4 fragmentation support
86
#define IPV4_FRAG_SUPPORT ENABLED
87
//Maximum number of fragmented packets the host will accept
88
//and hold in the reassembly queue simultaneously
89
#define IPV4_MAX_FRAG_DATAGRAMS 4
90
//Maximum datagram size the host will accept when reassembling fragments
91
#define IPV4_MAX_FRAG_DATAGRAM_SIZE 8192
92
93
//Size of ARP cache
94
#define ARP_CACHE_SIZE 8
95
//Maximum number of packets waiting for address resolution to complete
96
#define ARP_MAX_PENDING_PACKETS 2
97
98
//IGMP host support
99
#define IGMP_HOST_SUPPORT ENABLED
100
101
//IPv6 support
102
#define IPV6_SUPPORT ENABLED
103
//Size of the IPv6 multicast filter
104
#define IPV6_MULTICAST_FILTER_SIZE 8
105
106
//IPv6 fragmentation support
107
#define IPV6_FRAG_SUPPORT ENABLED
108
//Maximum number of fragmented packets the host will accept
109
//and hold in the reassembly queue simultaneously
110
#define IPV6_MAX_FRAG_DATAGRAMS 4
111
//Maximum datagram size the host will accept when reassembling fragments
112
#define IPV6_MAX_FRAG_DATAGRAM_SIZE 8192
113
114
//MLD support
115
#define MLD_SUPPORT ENABLED
116
117
//Neighbor cache size
118
#define NDP_NEIGHBOR_CACHE_SIZE 8
119
//Destination cache size
120
#define NDP_DEST_CACHE_SIZE 8
121
//Maximum number of packets waiting for address resolution to complete
122
#define NDP_MAX_PENDING_PACKETS 2
123
124
//TCP support
125
#define TCP_SUPPORT ENABLED
126
//Default buffer size for transmission
127
#define TCP_DEFAULT_TX_BUFFER_SIZE (1430*2)
128
//Default buffer size for reception
129
#define TCP_DEFAULT_RX_BUFFER_SIZE (1430*2)
130
//Default SYN queue size for listening sockets
131
#define TCP_DEFAULT_SYN_QUEUE_SIZE 4
132
//Maximum number of retransmissions
133
#define TCP_MAX_RETRIES 5
134
//Selective acknowledgment support
135
#define TCP_SACK_SUPPORT DISABLED
136
//TCP keep-alive support
137
#define TCP_KEEP_ALIVE_SUPPORT DISABLED
138
139
//UDP support
140
#define UDP_SUPPORT ENABLED
141
//Receive queue depth for connectionless sockets
142
#define UDP_RX_QUEUE_SIZE 4
143
144
//Raw socket support
145
#define RAW_SOCKET_SUPPORT DISABLED
146
//Receive queue depth for raw sockets
147
#define RAW_SOCKET_RX_QUEUE_SIZE 4
148
149
//Number of sockets that can be opened simultaneously
150
#define SOCKET_MAX_COUNT 16
151
152
//LLMNR responder support
153
#define LLMNR_RESPONDER_SUPPORT ENABLED
154
155
//FTP server support
156
#define FTP_SERVER_SUPPORT ENABLED
157
//Priority at which the FTP server should run
158
#define FTP_SERVER_PRIORITY OS_TASK_PRIORITY_HIGH
159
160
//Echo server support
161
#define ECHO_SERVER_SUPPORT ENABLED
162
163
#endif