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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/asp3_dcre/tinet/netapp/ping6.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-2017 by Dep. of Computer Science and Engineering
    55 *                   Tomakomai National College of Technology, JAPAN
    66 *
     
    6161#include <net/ppp_ipcp.h>
    6262#include <net/net.h>
     63#include <net/net_endian.h>
    6364#include <net/net_buf.h>
    6465#include <net/net_timer.h>
     
    6768#include <netinet/in.h>
    6869#include <netinet/in_var.h>
     70#include <netinet/ip.h>
     71#include <netinet/ip_var.h>
     72#include <netinet/ip_icmp.h>
    6973
    70 #include <netinet6/in6.h>
    71 #include <netinet6/in6_var.h>
    7274#include <netinet6/nd6.h>
    7375
    74 #include <netinet/ip6.h>
    75 #include <netinet6/ip6_var.h>
    76 #include <netinet/icmp6.h>
    77 
    78 #include <net/if6_var.h>
     76#include <net/if_var.h>
    7977
    8078#ifdef USE_PING
     79
     80#if defined(SUPPORT_INET6)
    8181
    8282/*
     
    8484 */
    8585
    86 static uint16_t send_icmp6_id = 0;
     86#if 0
    8787static uint16_t curr_icmp6_id;
    8888static uint16_t curr_icmp6_size;
     89#endif
     90
     91static uint16_t send_icmp6_id = 0;
    8992static uint16_t reply_count;
    9093static SYSTIM   icmp6_start_time;
     
    108111icmp6_echo_reply (T_NET_BUF *input, uint_t ihoff)
    109112{
    110         T_IP6_HDR       *ip6h;
    111         SYSTIM          time;
     113        SYSTIM  time;
    112114
    113115        syscall(get_tim(&time));
    114         ip6h  = GET_IP6_HDR(input);
    115 
    116         syslog(LOG_NOTICE, "[PING6] reply: %5d [ms] from: %s",
     116        untimeout(icmp6_reply_timeout, NULL);
     117        syslog(LOG_NOTICE, "[PING6] reply: %5ld [ms] from: %s",
    117118                           (time - icmp6_start_time) * 1000 / SYSTIM_HZ,
    118                            ipv62str(NULL, &ip6h->src));
     119                           ipv62str(NULL, &GET_IP6_HDR(input)->src));
    119120        reply_count ++;
    120121        }
     
    169170
    170171        /* 応答チェック用の変数を設定する。*/
     172        reply_count = 0;
     173
     174#if 0
    171175        curr_icmp6_id   = send_icmp6_id ++;
    172176        curr_icmp6_size = size;
     177#endif
    173178
    174         reply_count = 0;
    175 
     179#if 0
    176180        syslog(LOG_NOTICE, "[PING6] send: TMO:%d, SIZE:%d, to: %s, from %s",
    177181                           tmo, size,
    178182                           ipv62str(NULL, addr), ipv62str(NULL, &ia->addr));
     183#endif
    179184
    180185        /* 送信後、現在の時間を記憶し、タイムアウトを設定する。*/
     
    188193        }
    189194
     195#endif  /* of #if defined(SUPPORT_INET6) */
     196
    190197#endif  /* of #ifdef USE_PING */
Note: See TracChangeset for help on using the changeset viewer.