Webserver+3d print

Dependents:   Nucleo

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers net_config.h Source File

net_config.h

00001 /**
00002  * @file net_config.h
00003  * @brief CycloneTCP configuration file
00004  *
00005  * @section License
00006  *
00007  * Copyright (C) 2010-2017 Oryx Embedded SARL. All rights reserved.
00008  *
00009  * This file is part of CycloneTCP Open.
00010  *
00011  * This program is free software; you can redistribute it and/or
00012  * modify it under the terms of the GNU General Public License
00013  * as published by the Free Software Foundation; either version 2
00014  * of the License, or (at your option) any later version.
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program; if not, write to the Free Software Foundation,
00023  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00024  *
00025  * @author Oryx Embedded SARL (www.oryx-embedded.com)
00026  * @version 1.7.6
00027  **/
00028 
00029 #ifndef _NET_CONFIG_H
00030 #define _NET_CONFIG_H
00031 
00032 //Trace level for TCP/IP stack debugging
00033 #define MEM_TRACE_LEVEL          4
00034 #define NIC_TRACE_LEVEL          4
00035 #define ETH_TRACE_LEVEL          2
00036 #define ARP_TRACE_LEVEL          2
00037 #define IP_TRACE_LEVEL           2
00038 #define IPV4_TRACE_LEVEL         2
00039 #define IPV6_TRACE_LEVEL         2
00040 #define ICMP_TRACE_LEVEL         2
00041 #define IGMP_TRACE_LEVEL         2
00042 #define ICMPV6_TRACE_LEVEL       2
00043 #define MLD_TRACE_LEVEL          2
00044 #define NDP_TRACE_LEVEL          2
00045 #define UDP_TRACE_LEVEL          2
00046 #define TCP_TRACE_LEVEL          2
00047 #define SOCKET_TRACE_LEVEL       2
00048 #define RAW_SOCKET_TRACE_LEVEL   2
00049 #define BSD_SOCKET_TRACE_LEVEL   2
00050 #define SLAAC_TRACE_LEVEL        4
00051 #define DHCP_TRACE_LEVEL         4
00052 #define DHCPV6_TRACE_LEVEL       4
00053 #define DNS_TRACE_LEVEL          4
00054 #define MDNS_TRACE_LEVEL         4
00055 #define NBNS_TRACE_LEVEL         2
00056 #define LLMNR_TRACE_LEVEL        4
00057 #define FTP_TRACE_LEVEL          5
00058 #define HTTP_TRACE_LEVEL         4
00059 #define SMTP_TRACE_LEVEL         5
00060 #define SNTP_TRACE_LEVEL         4
00061 #define STD_SERVICES_TRACE_LEVEL 5
00062 
00063 //Number of network adapters
00064 #define NET_INTERFACE_COUNT 1
00065 
00066 //Size of the multicast MAC filter
00067 #define MAC_MULTICAST_FILTER_SIZE 12
00068 
00069 //IPv4 support
00070 #define IPV4_SUPPORT ENABLED
00071 //Size of the IPv4 multicast filter
00072 #define IPV4_MULTICAST_FILTER_SIZE 4
00073 
00074 //IPv4 fragmentation support
00075 #define IPV4_FRAG_SUPPORT ENABLED
00076 //Maximum number of fragmented packets the host will accept
00077 //and hold in the reassembly queue simultaneously
00078 #define IPV4_MAX_FRAG_DATAGRAMS 4
00079 //Maximum datagram size the host will accept when reassembling fragments
00080 #define IPV4_MAX_FRAG_DATAGRAM_SIZE 8192
00081 
00082 //Size of ARP cache
00083 #define ARP_CACHE_SIZE 8
00084 //Maximum number of packets waiting for address resolution to complete
00085 #define ARP_MAX_PENDING_PACKETS 2
00086 
00087 //IGMP support
00088 #define IGMP_SUPPORT ENABLED
00089 
00090 //IPv6 support
00091 #define IPV6_SUPPORT ENABLED
00092 //Size of the IPv6 multicast filter
00093 #define IPV6_MULTICAST_FILTER_SIZE 8
00094 
00095 //IPv6 fragmentation support
00096 #define IPV6_FRAG_SUPPORT ENABLED
00097 //Maximum number of fragmented packets the host will accept
00098 //and hold in the reassembly queue simultaneously
00099 #define IPV6_MAX_FRAG_DATAGRAMS 4
00100 //Maximum datagram size the host will accept when reassembling fragments
00101 #define IPV6_MAX_FRAG_DATAGRAM_SIZE 8192
00102 
00103 //MLD support
00104 #define MLD_SUPPORT ENABLED
00105 
00106 //Neighbor cache size
00107 #define NDP_NEIGHBOR_CACHE_SIZE 8
00108 //Destination cache size
00109 #define NDP_DEST_CACHE_SIZE 8
00110 //Maximum number of packets waiting for address resolution to complete
00111 #define NDP_MAX_PENDING_PACKETS 2
00112 
00113 //TCP support
00114 #define TCP_SUPPORT ENABLED
00115 //Default buffer size for transmission
00116 #define TCP_DEFAULT_TX_BUFFER_SIZE (1430*2)
00117 //Default buffer size for reception
00118 #define TCP_DEFAULT_RX_BUFFER_SIZE (1430*2)
00119 //Default SYN queue size for listening sockets
00120 #define TCP_DEFAULT_SYN_QUEUE_SIZE 4
00121 //Maximum number of retransmissions
00122 #define TCP_MAX_RETRIES 5
00123 //Selective acknowledgment support
00124 #define TCP_SACK_SUPPORT DISABLED
00125 
00126 //UDP support
00127 #define UDP_SUPPORT ENABLED
00128 //Receive queue depth for connectionless sockets
00129 #define UDP_RX_QUEUE_SIZE 4
00130 
00131 //Raw socket support
00132 #define RAW_SOCKET_SUPPORT DISABLED
00133 //Receive queue depth for raw sockets
00134 #define RAW_SOCKET_RX_QUEUE_SIZE 4
00135 
00136 //Number of sockets that can be opened simultaneously
00137 #define SOCKET_MAX_COUNT 10
00138 
00139 #endif
00140