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/icmp6.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 _IP_ICMP6_H_
    103103
    104 #ifdef SUPPORT_INET6
    105 
    106104/*
    107105 *  ICMPv6 ヘッダ
     
    117115                uint8_t         data8[4];
    118116                } data;
    119         } __attribute__((packed, aligned(2)))T_ICMP6_HDR;
     117        } __attribute__((packed, aligned(2))) T_ICMP6_HDR;
    120118
    121119#define icmp6_data32                    data.data32
     
    133131#define GET_ICMP6_SDU(nbuf,ihoff)       ((uint8_t*)((nbuf)->buf) + ihoff + ICMP6_HDR_SIZE)
    134132
    135 #define GET_IP6_ICMP6_HDR_SIZE(nbuf)    (GET_IP6_HDR_SIZE(GET_IP6_HDR(nbuf)) + ICMP6_HDR_SIZE)
     133#define GET_IP6_ICMP6_HDR_SIZE(nbuf)    (GET_IP6_HDR_SIZE(nbuf) + ICMP6_HDR_SIZE)
    136134#define GET_IF_IP6_ICMP6_HDR_SIZE(nbuf) (IF_HDR_SIZE + GET_IP6_ICMP6_HDR_SIZE(nbuf))
    137135
     
    218216        T_IN6_ADDR      target;
    219217        /* この後にオプションが続く */
    220         } __attribute__((packed, aligned(2)))T_NEIGHBOR_SOLICIT_HDR;
     218        } T_NEIGHBOR_SOLICIT_HDR;
    221219
    222220#define NEIGHBOR_SOLICIT_HDR_SIZE       (sizeof(T_NEIGHBOR_SOLICIT_HDR))
     
    230228
    231229#define GET_IP6_NEIGHBOR_SOLICIT_HDR_SIZE(nbuf)         \
    232                                         (GET_IP6_HDR_SIZE(GET_IP6_HDR(nbuf)) + NEIGHBOR_SOLICIT_HDR_SIZE)
     230                                        (GET_IP6_HDR_SIZE(nbuf) + NEIGHBOR_SOLICIT_HDR_SIZE)
    233231#define GET_IF_IP6_NEIGHBOR_SOLICIT_HDR_SIZE(nbuf)      \
    234232                                        (GET_IP6_NEIGHBOR_SOLICIT_HDR_SIZE(nbuf) + IF_HDR_SIZE)
     
    242240        T_IN6_ADDR      target;
    243241        /* この後にオプションが続く */
    244         } __attribute__((packed, aligned(2)))T_NEIGHBOR_ADVERT_HDR;
     242        } __attribute__((packed, aligned(2))) T_NEIGHBOR_ADVERT_HDR;
    245243
    246244/* ICMP6 ヘッダのデータ部の定義 */
     
    261259
    262260#define GET_IP6_NEIGHBOR_ADVERT_HDR_SIZE(nbuf)          \
    263                                         (GET_IP6_HDR_SIZE(GET_IP6_HDR(nbuf)) + NEIGHBOR_ADVERT_HDR_SIZE)
     261                                        (GET_IP6_HDR_SIZE(nbuf) + NEIGHBOR_ADVERT_HDR_SIZE)
    264262#define GET_IF_IP6_NEIGHBOR_ADVERT_HDR_SIZE(nbuf)       \
    265263                                        (GET_IP6_NEIGHBOR_ADVERT_HDR_SIZE(nbuf) + IF_HDR_SIZE)
     
    285283/*
    286284 *  ルータ通知
     285 *
     286 *    RFC4291: IP Version 6 Addressing Architecture
     287 *    RFC4941: Privacy Extensions for Stateless Address Autoconfiguration in IPv6
     288 *    RFC6106: IPv6 Router Advertisement Options for DNS Configuration
    287289 */
    288290
     
    292294        uint32_t        retransmit;             /* [ms] 近隣要請送信間隔        */
    293295        /* この後にオプションが続く */
    294         } __attribute__((packed, aligned(2)))T_ROUTER_ADVERT_HDR;
     296        } __attribute__((packed, aligned(2))) T_ROUTER_ADVERT_HDR;
    295297
    296298/* ICMP6 ヘッダのデータ部の定義 */
     
    311313
    312314#define GET_IP6_ROUTER_ADVERT_HDR_SIZE(nbuf)    \
    313                                         (GET_IP6_HDR_SIZE(GET_IP6_HDR(nbuf)) + ROUTER_ADVERT_HDR_SIZE)
     315                                        (GET_IP6_HDR_SIZE(nbuf) + ROUTER_ADVERT_HDR_SIZE)
    314316#define GET_IF_IP6_ROUTER_ADVERT_HDR_SIZE(nbuf) \
    315317                                        (GET_IP6_ROUTER_ADVERT_HDR_SIZE(nbuf) + IF_HDR_SIZE)
     
    324326
    325327/*
     328 *  M: RA以外の方法で自動的にアドレスを設定することを許可する。
     329 *  O: RA以外の方法で自動的にアドレス以外の情報を設定することをを許可する。
     330 *
     331 *   M   O
     332 *  ON  ON      アドレスとそれ以外の情報をDHCPv6で設定する(statefull)
     333 *  ON  OFF     アドレスはDHCPv6で設定するが、それ以外は手動で設定する。
     334 *  OFF ON      アドレスは RA で設定するが、それ以外の情報をDHCPv6で設定する(stateless)
     335 *  OFF OFF     DHCPv6 は使用しない。
     336 */
     337
     338/*
    326339 *  ルータ要請
    327340 */
     
    329342typedef struct t_router_solicit_hdr {
    330343        T_ICMP6_HDR     hdr;
    331         } __attribute__((packed, aligned(2)))T_ROUTER_SOLICIT_HDR;
     344        } __attribute__((packed, aligned(2))) T_ROUTER_SOLICIT_HDR;
    332345
    333346/* ICMP6 ヘッダのデータ部の定義 */
     
    347360
    348361#define GET_IP6_ROUTER_SOLICIT_HDR_SIZE(nbuf)           \
    349                                         (GET_IP6_HDR_SIZE(GET_IP6_HDR(nbuf)) + ROUTER_SOLICIT_HDR_SIZE)
     362                                        (GET_IP6_HDR_SIZE(nbuf) + ROUTER_SOLICIT_HDR_SIZE)
    350363#define GET_IF_IP6_ROUTER_SOLICIT_HDR_SIZE(nbuf)        \
    351364                                        (GET_IP6_ROUTER_SOLICIT_HDR_SIZE(nbuf) + IF_HDR_SIZE)
     
    360373        T_ICMP6_HDR     hdr;
    361374        T_IN6_ADDR      target;
    362         } __attribute__((packed, aligned(2)))T_NEIGHBOR_HDR;
     375        } __attribute__((packed, aligned(2))) T_NEIGHBOR_HDR;
    363376
    364377/* 近隣探索オプションヘッダ */
     
    367380        uint8_t         type;                   /* オプションタイプ                     */
    368381        uint8_t         len;                    /* オプション長、単位は 8 バイト     */
    369         } __attribute__((packed, aligned(2)))T_ND_OPT_HDR;
     382        } __attribute__((packed, aligned(2))) T_ND_OPT_HDR;
    370383
    371384#define ND_OPT_HDR_SIZE                 (sizeof(T_ND_OPT_HDR))
     
    393406        uint32_t        reserved;
    394407        T_IN6_ADDR      prefix;         /* プレフィックス              */
    395         } __attribute__((packed, aligned(2)))T_ND_OPT_PREFIX_INFO;
     408        } __attribute__((packed, aligned(2))) T_ND_OPT_PREFIX_INFO;
    396409
    397410#define ND_OPT_PI_FLAG_ONLINK   UINT_C(0x80)            /* オンリンクプレフィックス */
     
    405418        uint16_t        reserved;
    406419        uint32_t        mtu;            /* MTU                          */
    407         } __attribute__((packed, aligned(2)))T_ND_OPT_MTU_HDR;
     420        } __attribute__((packed, aligned(2))) T_ND_OPT_MTU_HDR;
    408421
    409422/*
     
    416429        T_IN6_ADDR      dst;            /* 向け直しの終点アドレス          */
    417430        /* この後にオプションが続く */
    418         } __attribute__((packed, aligned(2)))T_ND_REDIRECT_HDR;
     431        } __attribute__((packed, aligned(2))) T_ND_REDIRECT_HDR;
    419432
    420433#define ND_REDIRECT_HDR_SIZE            (sizeof(T_ND_REDIRECT_HDR))
     
    480493#endif  /* of #ifdef ICMP_CFG_CALLBACK_ECHO_REPLY */
    481494
    482 #endif  /* of #ifdef SUPPORT_INET6 */
    483 
    484495#endif  /* of #ifndef _IP_ICMP6_H_ */
Note: See TracChangeset for help on using the changeset viewer.