Changeset 331 for EcnlProtoTool/trunk/asp3_dcre/sample
- Timestamp:
- Jan 21, 2018, 12:10:09 AM (6 years ago)
- Location:
- EcnlProtoTool/trunk/asp3_dcre/sample
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/asp3_dcre/sample/Makefile
r321 r331 12 12 # ア(本ソフトウェアを改変したものを含む.以下同じ)を使用・複製・改 13 13 # 変・再配布(以下,利用と呼ぶ)することを無償で許諾する. 14 # 15 # 16 # 17 # 18 # 19 # 20 # 21 # 14 # (1) 本ソフトウェアをソースコードの形で利用する場合には,上記の著作 15 # 権表示,この利用条件および下記の無保証規定が,そのままの形でソー 16 # スコード中に含まれていること. 17 # (2) 本ソフトウェアを,ライブラリ形式など,他のソフトウェア開発に使 18 # 用できる形で再配布する場合には,再配布に伴うドキュメント(利用 19 # 者マニュアルなど)に,上記の著作権表示,この利用条件および下記 20 # の無保証規定を掲載すること. 21 # (3) 本ソフトウェアを,機器に組み込むなど,他のソフトウェア開発に使 22 22 # 用できない形で再配布する場合には,次のいずれかの条件を満たすこ 23 23 # と. 24 # 25 # 24 # (a) 再配布に伴うドキュメント(利用者マニュアルなど)に,上記の著 25 # 作権表示,この利用条件および下記の無保証規定を掲載すること. 26 26 # (b) 再配布の形態を,別に定める方法によって,TOPPERSプロジェクトに 27 27 # 報告すること. 28 # 28 # (4) 本ソフトウェアの利用により直接的または間接的に生じるいかなる損 29 29 # 害からも,上記著作権者およびTOPPERSプロジェクトを免責すること. 30 30 # また,本ソフトウェアのユーザまたはエンドユーザからのいかなる理 … … 354 354 endif 355 355 ifdef LDSCRIPT 356 LDFLAGS := $(LDFLAGS) - T$(LDSCRIPT)356 LDFLAGS := $(LDFLAGS) -Wl,-T,$(LDSCRIPT) 357 357 endif 358 358 -
EcnlProtoTool/trunk/asp3_dcre/sample/route_cfg.c
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-2012 by Dep. of Computer Science and Engineering 5 5 * Tomakomai National College of Technology, JAPAN 6 6 * … … 44 44 #include <netinet/in_var.h> 45 45 46 /* IPv6 に関する定義 */ 47 48 #ifdef _IP6_CFG 49 50 #if NUM_IN6_ROUTE_ENTRY > 0 51 52 T_IN6_RTENTRY routing6_tbl[NUM_IN6_ROUTE_ENTRY]; 53 54 #endif /* of #if NUM_IN6_ROUTE_ENTRY > 0 */ 55 56 #endif /* of #ifdef _IP6_CFG */ 57 46 58 /* IPv4 に関する定義 */ 47 59 48 #ifdef SUPPORT_INET460 #ifdef _IP4_CFG 49 61 50 62 #ifdef SUPPORT_LOOP 51 63 52 T_IN4_RTENTRY routing _tbl[NUM_ROUTE_ENTRY] = {64 T_IN4_RTENTRY routing4_tbl[NUM_IN4_ROUTE_ENTRY] = { 53 65 { 0, 0, 0 }, 54 66 }; … … 58 70 #ifdef SUPPORT_PPP 59 71 60 T_IN4_RTENTRY routing _tbl[NUM_ROUTE_ENTRY] = {72 T_IN4_RTENTRY routing4_tbl[NUM_IN4_ROUTE_ENTRY] = { 61 73 { 0, 0, 0 }, 62 74 }; … … 66 78 #ifdef SUPPORT_ETHER 67 79 68 T_IN4_RTENTRY routing _tbl[NUM_ROUTE_ENTRY] = {80 T_IN4_RTENTRY routing4_tbl[NUM_IN4_ROUTE_ENTRY] = { 69 81 70 82 /* 異なる LAN、default gateway による間接配送 */ … … 82 94 #endif /* of #ifdef SUPPORT_ETHER */ 83 95 84 #endif /* of #ifdef SUPPORT_INET4 */ 85 86 /* IPv6 に関する定義 */ 87 88 #ifdef SUPPORT_INET6 89 90 #if NUM_ROUTE_ENTRY > 0 91 92 T_IN6_RTENTRY routing_tbl[NUM_ROUTE_ENTRY] = { }; 93 94 #endif /* of #if NUM_ROUTE_ENTRY > 0 */ 95 96 #endif /* of #ifdef SUPPORT_INET6 */ 96 #endif /* of #ifdef _IP4_CFG */ -
EcnlProtoTool/trunk/asp3_dcre/sample/sample1.c
r321 r331 116 116 #include "kernel_cfg.h" 117 117 #include "sample1.h" 118 #include "sample1n.h" 118 /*#include "sample1n.h"*/ 119 119 120 120 /* -
EcnlProtoTool/trunk/asp3_dcre/sample/sample1n.c
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-2012 by Dep. of Computer Science and Engineering 5 5 * Tomakomai National College of Technology, JAPAN 6 6 * … … 39 39 40 40 #include <kernel.h> 41 #include <t_syslog.h>41 #include "syssvc/syslog.h" 42 42 #include "syssvc/serial.h" 43 43 #include "kernel_cfg.h" … … 92 92 bool_t wait_accept = false; /* 接続要求待ち中 */ 93 93 94 #ifdef SUPPORT_INET6 95 96 T_IPV6EP dst; 97 98 #else /* of #ifdef SUPPORT_INET6 */ 99 94 100 #ifdef SUPPORT_INET4 95 101 … … 97 103 98 104 #endif /* of #ifdef SUPPORT_INET4 */ 99 100 #ifdef SUPPORT_INET6101 102 T_IPV6EP dst;103 105 104 106 #endif /* of #ifdef SUPPORT_INET6 */ … … 117 119 */ 118 120 121 #ifdef SUPPORT_INET6 122 123 #define TCP_ACP_CEP(c,r,d,t) tcp6_acp_cep(c,r,d,t) 124 #define IP2STR(s,a) ipv62str(s,a) 125 126 #else /* of #ifdef SUPPORT_INET6 */ 127 119 128 #ifdef SUPPORT_INET4 120 129 … … 124 133 #endif /* of #ifdef SUPPORT_INET4 */ 125 134 126 #ifdef SUPPORT_INET6127 128 #define TCP_ACP_CEP(c,r,d,t) tcp6_acp_cep(c,r,d,t)129 #define IP2STR(s,a) ipv62str(s,a)130 131 135 #endif /* of #ifdef SUPPORT_INET6 */ 132 136 … … 143 147 144 148 case TFN_TCP_ACP_CEP: 145 IP2STR( addr, &dst.ipaddr);149 IP2STR((char *)addr, &dst.ipaddr); 146 150 syslog(LOG_NOTICE, "connected: %s.%d", addr, dst.portno); 147 151 if (*(ER*)p_parblk == E_OK) … … 182 186 connected = false; 183 187 syscall(sig_sem(SEM_NET_SEND)); 184 IP2STR( addr, &dst.ipaddr);188 IP2STR((char *)addr, &dst.ipaddr); 185 189 syslog(LOG_NOTICE, "disconnected: %s.%d", addr, dst.portno); 186 190 } … … 326 330 return serial_rea_dat(portid, buf, len); 327 331 } 328 dly_tsk(500 );332 dly_tsk(500000); 329 333 } 330 334 return off; … … 423 427 } 424 428 425 #ifdef SUPPORT_INET4 429 /* 430 * ipv6addr -- IPv6 アドレス出力 431 */ 432 433 int_t 434 put_ipv6addr (ID cepid, const T_IN6_ADDR *addr, int_t width) 435 { 436 int_t len = 0, ix; 437 bool_t omit = false, zero = false; 438 439 if (addr == NULL) { 440 put_char(cepid, '0'); 441 put_char(cepid, ':'); 442 put_char(cepid, ':'); 443 put_char(cepid, '0'); 444 len = 4; 445 } 446 else { 447 for (ix = 0; ix < sizeof(T_IN6_ADDR) / 2; ix ++) { 448 if (omit) { 449 len += put_num(cepid, addr->s6_addr16[ix], 16, radhex, 0, false, ' '); 450 if (ix < 7) { 451 put_char(cepid, ':'); 452 len ++; 453 } 454 } 455 else if (ix > 0 && ix < 7 && addr->s6_addr16[ix] == 0) 456 zero = true; 457 else { 458 if (zero) { 459 omit = true; 460 put_char(cepid, ':'); 461 len ++; 462 } 463 len += put_num(cepid, addr->s6_addr16[ix], 16, radhex, 0, false, ' '); 464 if (ix < 7) { 465 put_char(cepid, ':'); 466 len ++; 467 } 468 } 469 } 470 471 for ( ; len < width; len ++) 472 put_char(cepid, ' '); 473 } 474 return len; 475 } 426 476 427 477 /* … … 429 479 */ 430 480 431 staticint_t481 int_t 432 482 put_ipv4addr (ID cepid, ULONGEST *addr, int_t width) 433 483 { … … 462 512 } 463 513 464 #define PUT_IPADDR(p,a,w) put_ipv4addr(p,a,w)465 466 #endif /* of #ifdef SUPPORT_INET4 */467 468 #ifdef SUPPORT_INET6469 470 /*471 * ipv6addr -- IPv6 アドレス出力472 */473 474 static int_t475 put_ipv6addr (ID cepid, const T_IN6_ADDR *addr, int_t width)476 {477 int_t len = 0, ix;478 bool_t omit = false, zero = false;479 480 if (addr == NULL) {481 put_char(cepid, '0');482 put_char(cepid, ':');483 put_char(cepid, ':');484 put_char(cepid, '0');485 len = 4;486 }487 else {488 for (ix = 0; ix < sizeof(T_IN6_ADDR) / 2; ix ++) {489 if (omit) {490 len += put_num(cepid, addr->s6_addr16[ix], 16, radhex, 0, false, ' ');491 if (ix < 7) {492 put_char(cepid, ':');493 len ++;494 }495 }496 else if (ix > 0 && ix < 7 && addr->s6_addr16[ix] == 0)497 zero = true;498 else {499 if (zero) {500 omit = true;501 put_char(cepid, ':');502 len ++;503 }504 len += put_num(cepid, addr->s6_addr16[ix], 16, radhex, 0, false, ' ');505 if (ix < 7) {506 put_char(cepid, ':');507 len ++;508 }509 }510 }511 512 for ( ; len < width; len ++)513 put_char(cepid, ' ');514 }515 return len;516 }517 518 #define PUT_IPADDR(p,a,w) put_ipv6addr(p,a,w)519 520 #endif /* of #ifdef SUPPORT_INET6 */521 522 514 /* 523 515 * put_macaddr -- MAC アドレス出力 … … 586 578 va_list ap; 587 579 char padchar, *str; 588 int_t ch, width, longflag, left, i, c;580 int_t ch, width, longflag, shortflag, left, i, c; 589 581 590 582 if (connected) { … … 597 589 } 598 590 599 width = longflag = 0;591 width = longflag = shortflag = 0; 600 592 padchar = ' '; 601 593 … … 619 611 while (ch == 'l') { /* long (long) の指定 */ 620 612 longflag ++; 613 ch = *format ++; 614 } 615 616 while (ch == 'h') { /* short の指定 */ 617 shortflag ++; 621 618 ch = *format ++; 622 619 } … … 663 660 case 'I': 664 661 662 if (longflag) { 663 str = va_arg(ap, char*); 664 put_ipv6addr(TCP_CEPID, (T_IN6_ADDR *)str, width); 665 } 666 else if (shortflag) { 667 val = GET_ARG(ap, longflag); 668 put_ipv4addr(TCP_CEPID, (ULONGEST *)val, width); 669 } 670 else { 671 672 #ifdef SUPPORT_INET6 673 674 str = va_arg(ap, char*); 675 put_ipv6addr(TCP_CEPID, (T_IN6_ADDR *)str, width); 676 677 #else /* of #ifdef SUPPORT_INET6 */ 678 665 679 #ifdef SUPPORT_INET4 666 680 667 val = GET_ARG(ap, longflag);668 put_ipv4addr(TCP_CEPID, (ULONGEST *)val, width);681 val = GET_ARG(ap, longflag); 682 put_ipv4addr(TCP_CEPID, (ULONGEST *)val, width); 669 683 670 684 #endif /* of #ifdef SUPPORT_INET4 */ 671 685 672 #ifdef SUPPORT_INET6673 674 str = va_arg(ap, char*);675 put_ipv6addr(TCP_CEPID, (T_IN6_ADDR *)str, width);676 677 686 #endif /* of #ifdef SUPPORT_INET6 */ 687 688 } 678 689 679 690 break; … … 701 712 flush_snd_buff(TCP_CEPID); 702 713 syscall(sig_sem(SEM_TCP_SYSLOG)); 703 return E_OK;714 return; 704 715 } 705 716 else { … … 714 725 } 715 726 727 longflag = 0; 716 728 c = *format++; 717 729 while ('0' <= c && c <= '9') { 718 730 c = *format++; 719 731 } 732 733 while (c == 'l') { 734 longflag = 1; 735 c = *format++; 736 } 737 720 738 switch (c) { 721 739 case 'd': 722 log.logpar[i++] = (intptr_t)va_arg(ap, int_t); 740 if(longflag == 1) { 741 log.logpar[i++] = (intptr_t)va_arg(ap, long_t); 742 } 743 else { 744 log.logpar[i++] = (intptr_t)va_arg(ap, int_t); 745 } 723 746 break; 724 747 case 'u': -
EcnlProtoTool/trunk/asp3_dcre/sample/sample1n.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-2012 by Dep. of Computer Science and Engineering 5 5 * Tomakomai National College of Technology, JAPAN 6 6 * … … 61 61 /* ネットワーク対応化関数 */ 62 62 63 extern void 63 extern void net_syslog(uint_t prio, const char *format, ...) throw(); 64 64 extern ER_UINT net_serial_rea_dat(ID portid, char *buf, uint_t len) throw(); 65 65 extern ER net_serial_ctl_por(ID portid, uint_t ioctl) throw(); -
EcnlProtoTool/trunk/asp3_dcre/sample/tinet_app_config.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-2012 by Dep. of Computer Science and Engineering 5 5 * Tomakomai National College of Technology, JAPAN 6 6 * … … 62 62 63 63 /* 64 * TCPの能動オープンのみサポートすることを指定する。65 */66 67 #ifdef UNDEF_TCP_CFG_PASSIVE_OPEN68 #undef TCP_CFG_PASSIVE_OPEN69 #endif70 71 /*72 64 * TCP 通信端点の送受信ウィンドバッファの省コピー機能 73 65 * 注意: Makefile で指定している。 … … 97 89 #ifdef USE_TCP_MSS_SEG 98 90 91 #ifdef SUPPORT_INET6 92 93 #define TCP_CFG_SWBUF_CSAVE_MAX_SIZE (IF_HDR_SIZE + IPV6_MMTU) /* 最大サイズ */ 94 95 #else /* of #ifdef SUPPORT_INET6 */ 96 99 97 #ifdef SUPPORT_INET4 100 98 #define TCP_CFG_SWBUF_CSAVE_MAX_SIZE (IF_HDR_SIZE + IP4_MSS) /* 最大サイズ */ 101 99 #endif 102 100 103 #ifdef SUPPORT_INET6 104 #define TCP_CFG_SWBUF_CSAVE_MAX_SIZE (IF_HDR_SIZE + IPV6_MMTU) /* 最大サイズ */ 105 #endif 101 #endif /* of #ifdef SUPPORT_INET6 */ 106 102 107 103 #else /* of #ifdef USE_TCP_MSS_SEG */ … … 134 130 #endif 135 131 132 #ifdef SUPPORT_INET6 133 134 #define MAX_TCP_SND_SEG TCP6_MSS 135 136 #else /* of #ifdef SUPPORT_INET6 */ 137 136 138 #ifdef SUPPORT_INET4 137 139 #define MAX_TCP_SND_SEG TCP_MSS 138 140 #endif 139 141 140 #ifdef SUPPORT_INET6 141 #define MAX_TCP_SND_SEG TCP6_MSS 142 #endif 142 #endif /* of #ifdef SUPPORT_INET6 */ 143 143 144 144 #endif /* of #ifdef USE_TCP_MSS_SEG */ … … 154 154 #endif 155 155 156 #ifdef SUPPORT_INET6 157 158 #define DEF_TCP_RCV_SEG TCP6_MSS 159 160 #else /* of #ifdef SUPPORT_INET6 */ 161 156 162 #ifdef SUPPORT_INET4 157 163 #define DEF_TCP_RCV_SEG TCP_MSS 158 164 #endif 159 165 160 #ifdef SUPPORT_INET6 161 #define DEF_TCP_RCV_SEG TCP6_MSS 162 #endif 166 #endif /* of #ifdef SUPPORT_INET6 */ 163 167 164 168 #endif /* of #ifdef USE_TCP_MSS_SEG */ … … 232 236 //#define UDP_CFG_EXTENTIONS 233 237 238 /* IPv6 に関する定義 */ 239 240 #ifdef SUPPORT_PPP 241 242 #define NUM_IN6_STATIC_ROUTE_ENTRY 0 243 #define NUM_IN6_REDIRECT_ROUTE_ENTRY 0 244 245 #endif /* of #ifdef SUPPORT_PPP */ 246 247 #ifdef SUPPORT_LOOP 248 249 #define NUM_IN6_STATIC_ROUTE_ENTRY 0 250 #define NUM_IN6_REDIRECT_ROUTE_ENTRY 0 251 252 #endif /* of #ifdef SUPPORT_LOOP */ 253 254 #ifdef SUPPORT_ETHER 255 256 #define NUM_IN6_STATIC_ROUTE_ENTRY 0 257 #define NUM_IN6_REDIRECT_ROUTE_ENTRY 1 258 259 #endif /* of #ifdef SUPPORT_ETHER */ 260 234 261 /* IPv4 に関する定義 */ 235 236 #ifdef SUPPORT_INET4237 262 238 263 #ifdef SUPPORT_PPP … … 250 275 #endif 251 276 252 #define NUM_ STATIC_ROUTE_ENTRY1253 #define NUM_ REDIRECT_ROUTE_ENTRY 0277 #define NUM_IN4_STATIC_ROUTE_ENTRY 1 278 #define NUM_IN4_REDIRECT_ROUTE_ENTRY 0 254 279 255 280 #endif /* of #ifdef SUPPORT_PPP */ … … 257 282 #ifdef SUPPORT_ETHER 258 283 259 #ifdef DHCP _CFG284 #ifdef DHCP4_CLI_CFG 260 285 261 286 #define IPV4_ADDR_LOCAL MAKE_IPV4_ADDR(0,0,0,0) … … 263 288 #define IPV4_ADDR_DEFAULT_GW MAKE_IPV4_ADDR(0,0,0,0) 264 289 265 #else /* of #ifdef DHCP _CFG */266 267 #define IPV4_ADDR_LOCAL MAKE_IPV4_ADDR(172,25,129,20 5)290 #else /* of #ifdef DHCP4_CLI_CFG */ 291 292 #define IPV4_ADDR_LOCAL MAKE_IPV4_ADDR(172,25,129,200) 268 293 #define IPV4_ADDR_LOCAL_MASK MAKE_IPV4_ADDR(255,255,255,0) 269 294 #define IPV4_ADDR_DEFAULT_GW MAKE_IPV4_ADDR(172,25,129,140) 270 295 271 #endif /* of #ifdef DHCP _CFG */272 273 #define NUM_ STATIC_ROUTE_ENTRY3274 #define NUM_ REDIRECT_ROUTE_ENTRY 1296 #endif /* of #ifdef DHCP4_CLI_CFG */ 297 298 #define NUM_IN4_STATIC_ROUTE_ENTRY 3 299 #define NUM_IN4_REDIRECT_ROUTE_ENTRY 1 275 300 276 301 #endif /* of #ifdef SUPPORT_ETHER */ … … 278 303 #ifdef SUPPORT_LOOP 279 304 280 #define NUM_ STATIC_ROUTE_ENTRY1281 #define NUM_ REDIRECT_ROUTE_ENTRY 0305 #define NUM_IN4_STATIC_ROUTE_ENTRY 1 306 #define NUM_IN4_REDIRECT_ROUTE_ENTRY 0 282 307 283 308 #endif /* of #ifdef SUPPORT_LOOP */ 284 285 #endif /* of #ifdef SUPPORT_INET4 */286 287 /* IPv6 に関する定義 */288 289 #ifdef SUPPORT_INET6290 291 #ifdef SUPPORT_PPP292 293 #define NUM_STATIC_ROUTE_ENTRY 0294 #define NUM_REDIRECT_ROUTE_ENTRY 0295 296 #endif /* of #ifdef SUPPORT_PPP */297 298 #ifdef SUPPORT_LOOP299 300 #define NUM_STATIC_ROUTE_ENTRY 0301 #define NUM_REDIRECT_ROUTE_ENTRY 0302 303 #endif /* of #ifdef SUPPORT_LOOP */304 305 #ifdef SUPPORT_ETHER306 307 #define NUM_STATIC_ROUTE_ENTRY 0308 #define NUM_REDIRECT_ROUTE_ENTRY 1309 310 #endif /* of #ifdef SUPPORT_ETHER */311 312 #endif /* of #ifdef SUPPORT_INET6 */313 309 314 310 /* … … 417 413 * IPv6 でのみ割り当てる。 418 414 * 419 * NE2000 互換 NIC のディバイスドライバ(if_ed)の最低割当て長は、415 * MBED Ethernet Controler のディバイスドライバ(if_mbed)の最低割当て長は、 420 416 * イーサネットフレームの最短長である 60(CRC の 4 オクテットを除き、 421 417 * 更にアラインして 62)オクテットである。 … … 579 575 580 576 #if (defined(TCP_CFG_RWBUF_CSAVE) || defined(TCP_CFG_SWBUF_CSAVE)) && defined(USE_COPYSAVE_API) 581 #define NUM_MPF_NET_BUF_IF_PDU 6582 #else 583 #define NUM_MPF_NET_BUF_IF_PDU 5577 #define NUM_MPF_NET_BUF_IF_PDU 9 578 #else 579 #define NUM_MPF_NET_BUF_IF_PDU 8 584 580 #endif 585 581 … … 614 610 #endif /* of #ifdef SUPPORT_ETHER */ 615 611 612 /* 613 * DNS サーバに関する定義 614 */ 615 616 /* DNS サーバの IP アドレス */ 617 618 #if !defined(DHCP6_CLI_CFG) 619 620 #define IPV6_ADDR_DNS_INIT \ 621 {{{ UINT_C(0xfd), UINT_C(0x90), UINT_C(0xcc), UINT_C(0xe5), \ 622 UINT_C(0x25), UINT_C(0xf6), UINT_C(0xff), UINT_C(0x81), \ 623 UINT_C(0x02), UINT_C(0xa0), UINT_C(0x24), UINT_C(0xff), \ 624 UINT_C(0xfe), UINT_C(0x56), UINT_C(0xc5), UINT_C(0xd6) }}} 625 626 #endif /* of #if !defined(DHCP6_CLI_CFG) */ 627 628 #if !defined(DHCP4_CLI_CFG) 629 #define IPV4_ADDR_DNS MAKE_IPV4_ADDR(172,25,129,140) 630 #endif 631 632 /* DOMAIN 名 */ 633 634 #if !(defined(DHCP4_CLI_CFG) || defined(DHCP6_CLI_CFG)) 635 #define RSLV_CFG_DNS_DOMAIN_NAME_STR "jo.tomakomai-ct.ac.jp" 636 #endif 637 638 /* 639 * DHCP クライアントに関する定義 640 */ 641 642 /* DHCPv6 の動作モードの設定 */ 643 644 #define DHCP6_CLI_CFG_MODE DHCP6_CLI_CFG_STATELESS 645 //#define DHCP6_CLI_CFG_MODE DHCP6_CLI_CFG_STATEFULL 646 616 647 #endif /* _TINET_APP_CONFIG_H_ */ -
EcnlProtoTool/trunk/asp3_dcre/sample/tinet_sample1n.cfg
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-2012 by Dep. of Computer Science and Engineering 5 5 * Tomakomai National College of Technology, JAPAN 6 6 * … … 40 40 /* TCP 受付口 */ 41 41 42 #ifdef SUPPORT_INET6 43 44 TCP6_CRE_REP (TCP_REPID, { 0, { IPV6_ADDRANY, 23 } } ); 45 46 #else /* of #ifdef SUPPORT_INET6 */ 47 42 48 #ifdef SUPPORT_INET4 43 49 … … 46 52 #endif /* of #ifdef SUPPORT_INET4 */ 47 53 48 #ifdef SUPPORT_INET649 50 TCP6_CRE_REP (TCP_REPID, { 0, { IPV6_ADDRANY, 23 } } );51 52 54 #endif /* of #ifdef SUPPORT_INET6 */ 53 55 54 56 /* TCP 通信端点 */ 57 58 #ifdef SUPPORT_INET6 59 60 TCP6_CRE_CEP (TCP_CEPID, { 61 0, 62 tcp_swbuf, 63 TCP_SWBUF_SIZE, 64 tcp_rwbuf, 65 TCP_RWBUF_SIZE, 66 (FP)callback_nblk_tcp 67 } ); 68 69 #else /* of #ifdef SUPPORT_INET6 */ 55 70 56 71 #ifdef SUPPORT_INET4 … … 67 82 #endif /* of #ifdef SUPPORT_INET4 */ 68 83 69 #ifdef SUPPORT_INET670 71 TCP6_CRE_CEP (TCP_CEPID, {72 0,73 tcp_swbuf,74 TCP_SWBUF_SIZE,75 tcp_rwbuf,76 TCP_RWBUF_SIZE,77 (FP)callback_nblk_tcp78 } );79 80 84 #endif /* of #ifdef SUPPORT_INET6 */
Note:
See TracChangeset
for help on using the changeset viewer.