Changeset 331 for EcnlProtoTool/trunk/asp3_dcre/tinet/netapp/wwws.h
- Timestamp:
- Jan 21, 2018, 12:10:09 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/asp3_dcre/tinet/netapp/wwws.h
r321 r331 2 2 * TINET (TCP/IP Protocol Stack) 3 3 * 4 * Copyright (C) 2001-20 09by Dep. of Computer Science and Engineering4 * Copyright (C) 2001-2017 by Dep. of Computer Science and Engineering 5 5 * Tomakomai National College of Technology, JAPAN 6 6 * … … 39 39 */ 40 40 41 #include <tinet_defs.h>42 43 #include <net/if.h>44 #include <net/if_ppp.h>45 #include <net/if_loop.h>46 #include <net/ethernet.h>47 48 #include <netinet6/in6.h>49 #include <netinet/ip.h>50 #include <netinet/ip6.h>51 #include <netinet/tcp.h>52 53 41 #ifdef TOPPERS_S810_CLG3_85 54 42 #define WWW_SRV_STACK_SIZE 768 /* タスクのスタックサイズ */ … … 62 50 */ 63 51 64 #if defined( NUM_MPF_NET_BUF_IF_PDU) && NUM_MPF_NET_BUF_IF_PDU > 052 #if defined(USE_TCP_MSS_SEG) || defined(USE_IPV6_MMTU) 65 53 66 #define WWW_SRV_SWBUF_SIZE ((IF_MTU-(IP_HDR_SIZE+TCP_HDR_SIZE))*1) 67 68 #else /* of #if defined(NUM_MPF_NET_BUF_IF_PDU) && NUM_MPF_NET_BUF_IF_PDU > 0 */ 69 70 #if defined(SUPPORT_INET4) 71 #define WWW_SRV_SWBUF_SIZE (TCP_MSS) 54 #if defined(SUPPORT_INET6) 55 #define WWW_SRV_SWBUF_SIZE (1024) 56 #elif defined(SUPPORT_INET4) 57 #define WWW_SRV_SWBUF_SIZE (512) 72 58 #endif 73 59 74 #if defined(SUPPORT_INET6) 75 #define WWW_SRV_SWBUF_SIZE (TCP6_MSS) 76 #endif 60 #else /* of #if defined(USE_TCP_MSS_SEG) || defined(USE_IPV6_MMTU) */ 77 61 78 # endif /* of #if defined(NUM_MPF_NET_BUF_IF_PDU) && NUM_MPF_NET_BUF_IF_PDU > 0 */62 #define WWW_SRV_SWBUF_SIZE (2048) 79 63 80 #if defined(SUPPORT_INET4) 81 #define WWW_SRV_RWBUF_SIZE (TCP_MSS) 82 #endif 64 #endif /* of #if defined(USE_TCP_MSS_SEG) || defined(USE_IPV6_MMTU) */ 83 65 84 66 #if defined(SUPPORT_INET6) 85 #define WWW_SRV_RWBUF_SIZE (TCP6_MSS) 67 #define WWW_SRV_RWBUF_SIZE (1024) 68 #elif defined(SUPPORT_INET4) 69 #define WWW_SRV_RWBUF_SIZE (512) 86 70 #endif 87 71 … … 89 73 #define WWW_LINE_SIZE 80 90 74 #define WWW_NUM_FIELDS 4 75 76 /* 77 * タスク数 78 */ 91 79 92 80 #ifndef _MACRO_ONLY … … 128 116 129 117 /* 130 * TCP 送受信バッファ118 * 変数 131 119 */ 120 121 /* TCP 送受信ウィンドバッファ */ 122 123 #ifdef NUM_WWW_SRV_TASKS 132 124 133 125 extern uint8_t www_srv_swbuf[NUM_WWW_SRV_TASKS][WWW_SRV_SWBUF_SIZE]; 134 126 extern uint8_t www_srv_rwbuf[NUM_WWW_SRV_TASKS][WWW_SRV_RWBUF_SIZE]; 135 127 128 #endif /* of #ifdef NUM_WWW_SRV_TASKS */ 129 130 /* 131 * 関数 132 */ 133 134 extern ER wakeup_www_srv (char apip); 135 136 136 #endif /* of #ifndef _MACRO_ONLY */ 137 137
Note:
See TracChangeset
for help on using the changeset viewer.