Ignore:
Timestamp:
Jan 21, 2018, 12:10:09 AM (6 years ago)
Author:
coas-nagasima
Message:

prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl

Location:
EcnlProtoTool/trunk/asp3_dcre/sample
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/asp3_dcre/sample/Makefile

    r321 r331  
    1212#  ア(本ソフトウェアを改変したものを含む.以下同じ)を使用・複製・改
    1313#  変・再配布(以下,利用と呼ぶ)することを無償で許諾する.
    14  (1) 本ソフトウェアをソースコードの形で利用する場合には,上記の著作
    15 #       権表示,この利用条件および下記の無保証規定が,そのままの形でソー
    16 #       スコード中に含まれていること.
    17  (2) 本ソフトウェアを,ライブラリ形式など,他のソフトウェア開発に使
    18 #       用できる形で再配布する場合には,再配布に伴うドキュメント(利用
    19 #       者マニュアルなど)に,上記の著作権表示,この利用条件および下記
    20 #       の無保証規定を掲載すること.
    21  (3) 本ソフトウェアを,機器に組み込むなど,他のソフトウェア開発に使
     14(1) 本ソフトウェアをソースコードの形で利用する場合には,上記の著作
     15#      権表示,この利用条件および下記の無保証規定が,そのままの形でソー
     16#      スコード中に含まれていること.
     17(2) 本ソフトウェアを,ライブラリ形式など,他のソフトウェア開発に使
     18#      用できる形で再配布する場合には,再配布に伴うドキュメント(利用
     19#      者マニュアルなど)に,上記の著作権表示,この利用条件および下記
     20#      の無保証規定を掲載すること.
     21(3) 本ソフトウェアを,機器に組み込むなど,他のソフトウェア開発に使
    2222#      用できない形で再配布する場合には,次のいずれかの条件を満たすこ
    2323#      と.
    24 #     (a) 再配布に伴うドキュメント(利用者マニュアルなど)に,上記の著
    25 #         作権表示,この利用条件および下記の無保証規定を掲載すること.
     24#    (a) 再配布に伴うドキュメント(利用者マニュアルなど)に,上記の著
     25#        作権表示,この利用条件および下記の無保証規定を掲載すること.
    2626#    (b) 再配布の形態を,別に定める方法によって,TOPPERSプロジェクトに
    2727#        報告すること.
    28  (4) 本ソフトウェアの利用により直接的または間接的に生じるいかなる損
     28(4) 本ソフトウェアの利用により直接的または間接的に生じるいかなる損
    2929#      害からも,上記著作権者およびTOPPERSプロジェクトを免責すること.
    3030#      また,本ソフトウェアのユーザまたはエンドユーザからのいかなる理
     
    354354endif
    355355ifdef LDSCRIPT
    356         LDFLAGS := $(LDFLAGS) -T $(LDSCRIPT)
     356        LDFLAGS := $(LDFLAGS) -Wl,-T,$(LDSCRIPT)
    357357endif
    358358
  • EcnlProtoTool/trunk/asp3_dcre/sample/route_cfg.c

    r321 r331  
    22 *  TINET (TCP/IP Protocol Stack)
    33 *
    4  *  Copyright (C) 2001-2009 by Dep. of Computer Science and Engineering
     4 *  Copyright (C) 2001-2012 by Dep. of Computer Science and Engineering
    55 *                   Tomakomai National College of Technology, JAPAN
    66 *
     
    4444#include <netinet/in_var.h>
    4545
     46/* IPv6 に関する定義 */
     47
     48#ifdef _IP6_CFG
     49
     50#if NUM_IN6_ROUTE_ENTRY > 0
     51
     52T_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
    4658/* IPv4 に関する定義 */
    4759
    48 #ifdef SUPPORT_INET4
     60#ifdef _IP4_CFG
    4961
    5062#ifdef SUPPORT_LOOP
    5163
    52 T_IN4_RTENTRY routing_tbl[NUM_ROUTE_ENTRY] = {
     64T_IN4_RTENTRY routing4_tbl[NUM_IN4_ROUTE_ENTRY] = {
    5365        { 0, 0, 0 },
    5466        };
     
    5870#ifdef SUPPORT_PPP
    5971
    60 T_IN4_RTENTRY routing_tbl[NUM_ROUTE_ENTRY] = {
     72T_IN4_RTENTRY routing4_tbl[NUM_IN4_ROUTE_ENTRY] = {
    6173        { 0, 0, 0 },
    6274        };
     
    6678#ifdef SUPPORT_ETHER
    6779
    68 T_IN4_RTENTRY routing_tbl[NUM_ROUTE_ENTRY] = {
     80T_IN4_RTENTRY routing4_tbl[NUM_IN4_ROUTE_ENTRY] = {
    6981
    7082        /* 異なる LAN、default gateway による間接配送      */
     
    8294#endif  /* of #ifdef SUPPORT_ETHER */
    8395
    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  
    116116#include "kernel_cfg.h"
    117117#include "sample1.h"
    118 #include "sample1n.h"
     118/*#include "sample1n.h"*/
    119119
    120120/*
  • EcnlProtoTool/trunk/asp3_dcre/sample/sample1n.c

    r321 r331  
    22 *  TINET (TCP/IP Protocol Stack)
    33 *
    4  *  Copyright (C) 2001-2009 by Dep. of Computer Science and Engineering
     4 *  Copyright (C) 2001-2012 by Dep. of Computer Science and Engineering
    55 *                   Tomakomai National College of Technology, JAPAN
    66 *
     
    3939
    4040#include <kernel.h>
    41 #include <t_syslog.h>
     41#include "syssvc/syslog.h"
    4242#include "syssvc/serial.h"
    4343#include "kernel_cfg.h"
     
    9292bool_t          wait_accept     = false;        /* 接続要求待ち中      */
    9393
     94#ifdef SUPPORT_INET6
     95
     96T_IPV6EP        dst;
     97
     98#else   /* of #ifdef SUPPORT_INET6 */
     99
    94100#ifdef SUPPORT_INET4
    95101
     
    97103
    98104#endif  /* of #ifdef SUPPORT_INET4 */
    99 
    100 #ifdef SUPPORT_INET6
    101 
    102 T_IPV6EP        dst;
    103105
    104106#endif  /* of #ifdef SUPPORT_INET6 */
     
    117119 */
    118120
     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
    119128#ifdef SUPPORT_INET4
    120129
     
    124133#endif  /* of #ifdef SUPPORT_INET4 */
    125134
    126 #ifdef SUPPORT_INET6
    127 
    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 
    131135#endif  /* of #ifdef SUPPORT_INET6 */
    132136
     
    143147
    144148        case TFN_TCP_ACP_CEP:
    145                 IP2STR(addr, &dst.ipaddr);
     149                IP2STR((char *)addr, &dst.ipaddr);
    146150                syslog(LOG_NOTICE, "connected:    %s.%d", addr, dst.portno);
    147151                if (*(ER*)p_parblk == E_OK)
     
    182186                connected = false;
    183187                syscall(sig_sem(SEM_NET_SEND));
    184                 IP2STR(addr, &dst.ipaddr);
     188                IP2STR((char *)addr, &dst.ipaddr);
    185189                syslog(LOG_NOTICE, "disconnected: %s.%d", addr, dst.portno);
    186190                }
     
    326330                        return serial_rea_dat(portid, buf, len);
    327331                        }
    328                 dly_tsk(500);
     332                dly_tsk(500000);
    329333                }
    330334        return off;
     
    423427        }
    424428
    425 #ifdef SUPPORT_INET4
     429/*
     430 *  ipv6addr -- IPv6 アドレス出力
     431 */
     432
     433int_t
     434put_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        }
    426476
    427477/*
     
    429479 */
    430480
    431 static int_t
     481int_t
    432482put_ipv4addr (ID cepid, ULONGEST *addr, int_t width)
    433483{
     
    462512        }
    463513
    464 #define PUT_IPADDR(p,a,w)       put_ipv4addr(p,a,w)
    465 
    466 #endif  /* of #ifdef SUPPORT_INET4 */
    467 
    468 #ifdef SUPPORT_INET6
    469 
    470 /*
    471  *  ipv6addr -- IPv6 アドレス出力
    472  */
    473 
    474 static int_t
    475 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 
    522514/*
    523515 *  put_macaddr -- MAC アドレス出力
     
    586578        va_list ap;
    587579        char    padchar, *str;
    588         int_t   ch, width, longflag, left, i, c;
     580        int_t   ch, width, longflag, shortflag, left, i, c;
    589581
    590582        if (connected) {
     
    597589                                }
    598590
    599                         width = longflag = 0;
     591                        width = longflag = shortflag = 0;
    600592                        padchar = ' ';
    601593
     
    619611                        while (ch == 'l') {             /* long (long) の指定 */
    620612                                longflag ++;
     613                                ch = *format ++;
     614                                }
     615
     616                        while (ch == 'h') {             /* short の指定 */
     617                                shortflag ++;
    621618                                ch = *format ++;
    622619                                }
     
    663660                        case 'I':
    664661
     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
    665679#ifdef SUPPORT_INET4
    666680
    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);
    669683
    670684#endif  /* of #ifdef SUPPORT_INET4 */
    671685
    672 #ifdef SUPPORT_INET6
    673 
    674                                 str = va_arg(ap, char*);
    675                                 put_ipv6addr(TCP_CEPID, (T_IN6_ADDR *)str, width);
    676 
    677686#endif  /* of #ifdef SUPPORT_INET6 */
     687
     688                                        }
    678689
    679690                                break;
     
    701712                flush_snd_buff(TCP_CEPID);
    702713                syscall(sig_sem(SEM_TCP_SYSLOG));
    703                 return E_OK;
     714                return;
    704715                }
    705716        else {
     
    714725                                }
    715726
     727                        longflag = 0;
    716728                        c = *format++;
    717729                        while ('0' <= c && c <= '9') {
    718730                                c = *format++;
    719731                                }
     732
     733                        while (c == 'l') {
     734                                longflag = 1;
     735                                c = *format++;
     736                        }
     737
    720738                        switch (c) {
    721739                        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                                }
    723746                                break;
    724747                        case 'u':
  • EcnlProtoTool/trunk/asp3_dcre/sample/sample1n.h

    r321 r331  
    22 *  TINET (TCP/IP Protocol Stack)
    33 *
    4  *  Copyright (C) 2001-2009 by Dep. of Computer Science and Engineering
     4 *  Copyright (C) 2001-2012 by Dep. of Computer Science and Engineering
    55 *                   Tomakomai National College of Technology, JAPAN
    66 *
     
    6161/*  ネットワーク対応化関数  */
    6262
    63 extern void net_syslog(uint_t prio, const char *format, ...) throw();
     63extern void     net_syslog(uint_t prio, const char *format, ...) throw();
    6464extern ER_UINT  net_serial_rea_dat(ID portid, char *buf, uint_t len) throw();
    6565extern ER       net_serial_ctl_por(ID portid, uint_t ioctl) throw();
  • EcnlProtoTool/trunk/asp3_dcre/sample/tinet_app_config.h

    r321 r331  
    22 *  TINET (TCP/IP Protocol Stack)
    33 *
    4  *  Copyright (C) 2001-2009 by Dep. of Computer Science and Engineering
     4 *  Copyright (C) 2001-2012 by Dep. of Computer Science and Engineering
    55 *                   Tomakomai National College of Technology, JAPAN
    66 *
     
    6262
    6363/*
    64  *  TCPの能動オープンのみサポートすることを指定する。
    65  */
    66 
    67 #ifdef UNDEF_TCP_CFG_PASSIVE_OPEN
    68 #undef TCP_CFG_PASSIVE_OPEN
    69 #endif
    70 
    71 /*
    7264 *  TCP 通信端点の送受信ウィンドバッファの省コピー機能
    7365 *    注意: Makefile で指定している。
     
    9789#ifdef USE_TCP_MSS_SEG
    9890
     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
    9997#ifdef SUPPORT_INET4
    10098#define TCP_CFG_SWBUF_CSAVE_MAX_SIZE    (IF_HDR_SIZE + IP4_MSS)         /* 最大サイズ */
    10199#endif
    102100
    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 */
    106102
    107103#else   /* of #ifdef USE_TCP_MSS_SEG */
     
    134130#endif
    135131
     132#ifdef SUPPORT_INET6
     133
     134#define MAX_TCP_SND_SEG                 TCP6_MSS
     135
     136#else   /* of #ifdef SUPPORT_INET6 */
     137
    136138#ifdef SUPPORT_INET4
    137139#define MAX_TCP_SND_SEG                 TCP_MSS
    138140#endif
    139141
    140 #ifdef SUPPORT_INET6
    141 #define MAX_TCP_SND_SEG                 TCP6_MSS
    142 #endif
     142#endif  /* of #ifdef SUPPORT_INET6 */
    143143
    144144#endif  /* of #ifdef USE_TCP_MSS_SEG */
     
    154154#endif
    155155
     156#ifdef SUPPORT_INET6
     157
     158#define DEF_TCP_RCV_SEG                 TCP6_MSS
     159
     160#else   /* of #ifdef SUPPORT_INET6 */
     161
    156162#ifdef SUPPORT_INET4
    157163#define DEF_TCP_RCV_SEG                 TCP_MSS
    158164#endif
    159165
    160 #ifdef SUPPORT_INET6
    161 #define DEF_TCP_RCV_SEG                 TCP6_MSS
    162 #endif
     166#endif  /* of #ifdef SUPPORT_INET6 */
    163167
    164168#endif  /* of #ifdef USE_TCP_MSS_SEG */
     
    232236//#define UDP_CFG_EXTENTIONS
    233237
     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
    234261/* IPv4 に関する定義 */
    235 
    236 #ifdef SUPPORT_INET4
    237262
    238263#ifdef SUPPORT_PPP
     
    250275#endif
    251276
    252 #define NUM_STATIC_ROUTE_ENTRY          1
    253 #define NUM_REDIRECT_ROUTE_ENTRY        0
     277#define NUM_IN4_STATIC_ROUTE_ENTRY      1
     278#define NUM_IN4_REDIRECT_ROUTE_ENTRY    0
    254279
    255280#endif  /* of #ifdef SUPPORT_PPP */
     
    257282#ifdef SUPPORT_ETHER
    258283
    259 #ifdef DHCP_CFG
     284#ifdef DHCP4_CLI_CFG
    260285
    261286#define IPV4_ADDR_LOCAL                 MAKE_IPV4_ADDR(0,0,0,0)
     
    263288#define IPV4_ADDR_DEFAULT_GW            MAKE_IPV4_ADDR(0,0,0,0)
    264289
    265 #else   /* of #ifdef DHCP_CFG */
    266 
    267 #define IPV4_ADDR_LOCAL                 MAKE_IPV4_ADDR(172,25,129,205)
     290#else   /* of #ifdef DHCP4_CLI_CFG */
     291
     292#define IPV4_ADDR_LOCAL                 MAKE_IPV4_ADDR(172,25,129,200)
    268293#define IPV4_ADDR_LOCAL_MASK            MAKE_IPV4_ADDR(255,255,255,0)
    269294#define IPV4_ADDR_DEFAULT_GW            MAKE_IPV4_ADDR(172,25,129,140)
    270295
    271 #endif  /* of #ifdef DHCP_CFG */
    272 
    273 #define NUM_STATIC_ROUTE_ENTRY          3
    274 #define NUM_REDIRECT_ROUTE_ENTRY        1
     296#endif  /* of #ifdef DHCP4_CLI_CFG */
     297
     298#define NUM_IN4_STATIC_ROUTE_ENTRY      3
     299#define NUM_IN4_REDIRECT_ROUTE_ENTRY    1
    275300
    276301#endif  /* of #ifdef SUPPORT_ETHER */
     
    278303#ifdef SUPPORT_LOOP
    279304
    280 #define NUM_STATIC_ROUTE_ENTRY          1
    281 #define NUM_REDIRECT_ROUTE_ENTRY        0
     305#define NUM_IN4_STATIC_ROUTE_ENTRY      1
     306#define NUM_IN4_REDIRECT_ROUTE_ENTRY    0
    282307
    283308#endif  /* of #ifdef SUPPORT_LOOP */
    284 
    285 #endif  /* of #ifdef SUPPORT_INET4 */
    286 
    287 /* IPv6 に関する定義 */
    288 
    289 #ifdef SUPPORT_INET6
    290 
    291 #ifdef SUPPORT_PPP
    292 
    293 #define NUM_STATIC_ROUTE_ENTRY          0
    294 #define NUM_REDIRECT_ROUTE_ENTRY        0
    295 
    296 #endif  /* of #ifdef SUPPORT_PPP */
    297 
    298 #ifdef SUPPORT_LOOP
    299 
    300 #define NUM_STATIC_ROUTE_ENTRY          0
    301 #define NUM_REDIRECT_ROUTE_ENTRY        0
    302 
    303 #endif  /* of #ifdef SUPPORT_LOOP */
    304 
    305 #ifdef SUPPORT_ETHER
    306 
    307 #define NUM_STATIC_ROUTE_ENTRY          0
    308 #define NUM_REDIRECT_ROUTE_ENTRY        1
    309 
    310 #endif  /* of #ifdef SUPPORT_ETHER */
    311 
    312 #endif  /* of #ifdef SUPPORT_INET6 */
    313309
    314310/*
     
    417413 *    IPv6 でのみ割り当てる。
    418414 *
    419  *    NE2000 互換 NIC のディバイスドライバ(if_ed)の最低割当て長は、
     415 *    MBED Ethernet Controler のディバイスドライバ(if_mbed)の最低割当て長は、
    420416 *    イーサネットフレームの最短長である 60(CRC の 4 オクテットを除き、
    421417 *    更にアラインして 62)オクテットである。
     
    579575
    580576#if (defined(TCP_CFG_RWBUF_CSAVE) || defined(TCP_CFG_SWBUF_CSAVE)) && defined(USE_COPYSAVE_API)
    581 #define NUM_MPF_NET_BUF_IF_PDU          6
    582 #else
    583 #define NUM_MPF_NET_BUF_IF_PDU          5
     577#define NUM_MPF_NET_BUF_IF_PDU          9
     578#else
     579#define NUM_MPF_NET_BUF_IF_PDU          8
    584580#endif
    585581
     
    614610#endif  /* of #ifdef SUPPORT_ETHER */
    615611
     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
    616647#endif /* _TINET_APP_CONFIG_H_ */
  • EcnlProtoTool/trunk/asp3_dcre/sample/tinet_sample1n.cfg

    r321 r331  
    22 *  TINET (TCP/IP Protocol Stack)
    33 *
    4  *  Copyright (C) 2001-2009 by Dep. of Computer Science and Engineering
     4 *  Copyright (C) 2001-2012 by Dep. of Computer Science and Engineering
    55 *                   Tomakomai National College of Technology, JAPAN
    66 *
     
    4040/* TCP 受付口 */
    4141
     42#ifdef SUPPORT_INET6
     43
     44TCP6_CRE_REP (TCP_REPID, { 0, { IPV6_ADDRANY, 23 } } );
     45
     46#else   /* of #ifdef SUPPORT_INET6 */
     47
    4248#ifdef SUPPORT_INET4
    4349
     
    4652#endif  /* of #ifdef SUPPORT_INET4 */
    4753
    48 #ifdef SUPPORT_INET6
    49 
    50 TCP6_CRE_REP (TCP_REPID, { 0, { IPV6_ADDRANY, 23 } } );
    51 
    5254#endif  /* of #ifdef SUPPORT_INET6 */
    5355
    5456/* TCP 通信端点 */
     57
     58#ifdef SUPPORT_INET6
     59
     60TCP6_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 */
    5570
    5671#ifdef SUPPORT_INET4
     
    6782#endif  /* of #ifdef SUPPORT_INET4 */
    6883
    69 #ifdef SUPPORT_INET6
    70 
    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_tcp
    78         } );
    79 
    8084#endif  /* of #ifdef SUPPORT_INET6 */
Note: See TracChangeset for help on using the changeset viewer.