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/netinet6/ip6_var.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-2017 by Dep. of Computer Science and Engineering
    55 *                   Tomakomai National College of Technology, JAPAN
    66 *
     
    102102#define _IP6_VAR_H_
    103103
    104 #ifdef SUPPORT_INET6
    105 
    106104/*
    107105 *  IPv6 ヘッダ・ペイロードアクセスマクロ
     
    114112#define GET_IP6_NEXT_HDR(nbuf)          ((uint8_t*)((nbuf)->buf) + IF_IP6_HDR_SIZE)
    115113
    116 #define GET_IP6_HDR_SIZE(iph)           (get_ip6_hdr_size(iph))
    117 #define GET_IP6_SDU_SIZE(iph)           (ntohs((iph)->plen))
    118 #define GET_IF_IP6_HDR_SIZE(nbuf)       (IF_HDR_SIZE + (GET_IP6_HDR_SIZE(GET_IP6_HDR(nbuf))))
    119 
    120 #define SET_IP6_SDU_SIZE(iph,slen)      ((iph)->plen=htons(slen))
     114#define GET_IP6_HDR_SIZE(nbuf)          (get_ip6_hdr_size(nbuf))
     115#define GET_IP6_SDU_SIZE(nbuf)          (ntohs(GET_IP6_HDR(nbuf)->plen))
     116#define GET_IF_IP6_HDR_SIZE(nbuf)       (IF_HDR_SIZE + (GET_IP6_HDR_SIZE(nbuf)))
     117
     118#define SET_IP6_CF(nbuf,cf)             (GET_IP6_HDR(nbuf)->vcf=htonl(IP6_MAKE_VCF(IP6_VCF_V(ntohl(GET_IP6_HDR(nbuf)->vcf)),cf)))
     119#define SET_IP6_SDU_SIZE(nbuf,slen)     (GET_IP6_HDR(nbuf)->plen=htons(slen))
    121120
    122121/* ip6_output のフラグ */
     
    144143
    145144/*
    146  *  IPv4 と IPv6 をコンパイル時に選択するためのマクロ
    147  */
    148 
    149 #define T_TCP_IP_Q_HDR                  T_TCP_IP6_Q_HDR
    150 
    151 #define IF_IP_HDR_SIZE                  IF_IP6_HDR_SIZE
    152 
    153 #define GET_IP_HDR(nbuf)                GET_IP6_HDR(nbuf)
    154 #define GET_IP_SDU(nbuf)                GET_IP6_SDU(nbuf)
    155 
    156 #define GET_IP_HDR_SIZE(iph)            GET_IP6_HDR_SIZE(iph)
    157 #define GET_IP_SDU_SIZE(iph)            GET_IP6_SDU_SIZE(iph)
    158 #define GET_IF_IP_HDR_SIZE(nbuf)        GET_IF_IP6_HDR_SIZE(nbuf)
    159 
    160 #define SET_IP_SDU_SIZE(iph,len)        SET_IP6_SDU_SIZE(iph,len)
    161 
    162 #define IP_OUTPUT(nbuf,tmout)           ip6_output(nbuf,0,tmout)
    163 #define IP_INIT()                       ip6_init()
    164 #define IP_REMOVE_OPTIONS(nbuf)         ip6_remove_exthdrs(nbuf)
    165 
    166 /*
    167145 *  IPv6 の MMTU サイズのネットワークバッファ
    168146 */
     147
     148#if defined(IF_HDR_SIZE)
    169149
    170150typedef struct t_net_buf_ipv6_mmtu {
     
    181161                                /* バッファ本体               */
    182162        } T_NET_BUF_IPV6_MMTU;
     163
     164#endif  /* of #if defined(IF_HDR_SIZE) */
    183165
    184166/*
     
    258240 */
    259241
    260 typedef struct t_tcp_ip6_q_hdr {
     242typedef struct t_ip6_tcp_q_hdr {
    261243        uint8_t vc;             /* Version:        4 bit                */
    262244        uint8_t cf;             /* Traffic Class:  8 bit                */
     
    268250        T_IN6_ADDR src; /* Source Address                       */
    269251        T_IN6_ADDR dst; /* Destination Address                  */
    270         } __attribute__((packed, aligned(2)))T_TCP_IP6_Q_HDR;
     252        } __attribute__((packed, aligned(2))) T_IP6_TCP_Q_HDR;
    271253
    272254#ifdef SUPPORT_MIB
     
    304286
    305287/*
     288 *  変数
     289 */
     290
     291extern uint8_t  ip6_defhlim;
     292
     293/*
    306294 *  関数
    307295 */
     
    310298extern void ip6_init (void);
    311299extern uint8_t *ip6_get_prev_hdr (T_NET_BUF *nbuf, uint_t off);
    312 extern uint_t get_ip6_hdr_size (T_IP6_HDR *iph);
     300extern uint_t get_ip6_hdr_size (T_NET_BUF *nbuf);
    313301extern ER_UINT ip6_nexthdr (T_NET_BUF *nbuf, uint_t off, uint_t proto, uint_t *nextp);
    314302extern ER_UINT ip6_lasthdr (T_NET_BUF *nbuf, uint_t off, uint_t proto, uint_t *nextp);
     
    320308extern ER ip6_remove_exthdrs (T_NET_BUF *nbuf);
    321309
    322 #endif  /* of #ifdef SUPPORT_INET6 */
    323 
    324310#endif  /* of #ifndef _IP6_VAR_H_ */
Note: See TracChangeset for help on using the changeset viewer.