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/netinet/ip_output.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 *
     
    9393#include <net/ppp.h>
    9494#include <net/net.h>
     95#include <net/net_endian.h>
    9596#include <net/net_buf.h>
    9697#include <net/net_count.h>
     
    104105#include <netinet6/ipsec.h>
    105106#endif
     107
     108#if defined(_IP4_CFG)
    106109
    107110static uint16_t frag_id = 0;
     
    221224
    222225                len  = ntohs(ip4h->len);
    223                 off  = hlen = GET_IP4_HDR_SIZE(ip4h);
     226                off  = hlen = GET_IP4_HDR_SIZE(output);
    224227                while (off < len) {
    225228                        if (off + (IF_MTU - IP4_HDR_SIZE) < len)
     
    245248                                fip4h->id       = htons(frag_id);
    246249                                fip4h->sum      = 0;
    247                                 fip4h->sum      = in_cksum(fip4h, GET_IP4_HDR_SIZE(fip4h));
     250                                fip4h->sum      = in_cksum(fip4h, GET_IP4_HDR_SIZE(frag));
    248251
    249252                                NET_COUNT_IP4(net_count_ip4[NC_IP4_OUT_OCTETS], ntohs(fip4h->len));
     
    279282                frag_id ++;
    280283                ip4h->sum = 0;
    281                 ip4h->sum = in_cksum(ip4h, GET_IP4_HDR_SIZE(ip4h));
     284                ip4h->sum = in_cksum(ip4h, GET_IP4_HDR_SIZE(output));
    282285
    283286                NET_COUNT_IP4(net_count_ip4[NC_IP4_OUT_OCTETS], ntohs(ip4h->len));
     
    301304        frag_id ++;
    302305        ip4h->sum = 0;
    303         ip4h->sum = in_cksum(ip4h, (uint_t)GET_IP4_HDR_SIZE(ip4h));
     306        ip4h->sum = in_cksum(ip4h, (uint_t)GET_IP4_HDR_SIZE(output));
    304307
    305308        NET_COUNT_IP4(net_count_ip4[NC_IP4_OUT_OCTETS], ntohs(ip4h->len));
     
    327330        return error;
    328331        }
     332
     333#endif  /* of #if defined(_IP4_CFG) */
Note: See TracChangeset for help on using the changeset viewer.