亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? neticmp.h

?? 一個tcp/ip協(xié)議棧,帶有PPP、IP、TCP、UDP等協(xié)議
?? H
字號:
/*****************************************************************************
* neticmp.h - Network Internet Control Message Protocol header file.
*
* portions Copyright (c) 1998 Global Election Systems Inc.
*
* The authors hereby grant permission to use, copy, modify, distribute,
* and license this software and its documentation for any purpose, provided
* that existing copyright notices are retained in all copies and that this
* notice and the following disclaimer are included verbatim in any 
* distributions. No written agreement, license, or royalty fee is required
* for any of the authorized uses.
*
* THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS *AS IS* AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
* IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
******************************************************************************
* REVISION HISTORY
*
* 98-01-30 Guy Lancaster
*   Based on BSD and ka9q uC/OS sources for M68K.
*****************************************************************************/
/*
 * Copyright (c) 1982, 1986, 1993
 *  The Regents of the University of California.  All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. All advertising materials mentioning features or use of this software
 *    must display the following acknowledgement:
 *  This product includes software developed by the University of
 *  California, Berkeley and its contributors.
 * 4. Neither the name of the University nor the names of its contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 *
 *  @(#)ip_icmp.h   8.1 (Berkeley) 6/10/93
 */

/*
 * Interface Control Message Protocol Definitions.
 * Per RFC 792, September 1981.
 */


#ifndef NETICMP_H
#define NETICMP_H

/*************************
*** PUBLIC DEFINITIONS ***
*************************/
/*
 * Lower bounds on packet lengths for various types.
 * For the error advice packets must first insure that the
 * packet is large enought to contain the returned ip header.
 * Only then can we do the check to see if 64 bits of packet
 * data have been returned, since we need to check the returned
 * ip header length.
 */
#define ICMP_MINLEN     8                               /* abs minimum */
#define ICMP_TSLEN      (8 + 3 * sizeof (n_time))       /* timestamp */
#define ICMP_MASKLEN    12                              /* address mask */
#define ICMP_ADVLENMIN  (8 + sizeof (struct ip) + 8)    /* min */
#if defined(ADL_TARGET_PLATFORM)&&(ADL_TARGET_PLATFORM==ADL_TARGET_LS808)
#define ICMP_ADVLEN(p)  (8 + (((p)->icmp_ip.ip_hl_v&0xf) << 2) + 8)
#else
#define ICMP_ADVLEN(p)  (8 + ((p)->icmp_ip.ip_hl << 2) + 8)
#endif
    /* N.B.: must separately check that ip_hl >= 5 */

/*
 * Definition of type and code field values.
 */
#define ICMP_ECHOREPLY              0       /* echo reply */
#define ICMP_UNREACH                3       /* dest unreachable, codes: */
#define ICMP_UNREACH_NET            0       /* bad net */
#define ICMP_UNREACH_HOST           1       /* bad host */
#define ICMP_UNREACH_PROTOCOL       2       /* bad protocol */
#define ICMP_UNREACH_PORT           3       /* bad port */
#define ICMP_UNREACH_NEEDFRAG       4       /* IP_DF caused drop */
#define ICMP_UNREACH_SRCFAIL        5       /* src route failed */
#define ICMP_UNREACH_NET_UNKNOWN    6       /* unknown net */
#define ICMP_UNREACH_HOST_UNKNOWN   7       /* unknown host */
#define ICMP_UNREACH_ISOLATED       8       /* src host isolated */
#define ICMP_UNREACH_NET_PROHIB     9       /* prohibited access */
#define ICMP_UNREACH_HOST_PROHIB    10      /* ditto */
#define ICMP_UNREACH_TOSNET         11      /* bad tos for net */
#define ICMP_UNREACH_TOSHOST        12      /* bad tos for host */
#define ICMP_SOURCEQUENCH           4       /* packet lost, slow down */
#define ICMP_REDIRECT               5       /* shorter route, codes: */
#define ICMP_REDIRECT_NET           0       /* for network */
#define ICMP_REDIRECT_HOST          1       /* for host */
#define ICMP_REDIRECT_TOSNET        2       /* for tos and net */
#define ICMP_REDIRECT_TOSHOST       3       /* for tos and host */
#define ICMP_ECHO                   8       /* echo service */
#define ICMP_ROUTERADVERT           9       /* router advertisement */
#define ICMP_ROUTERSOLICIT          10      /* router solicitation */
#define ICMP_TIMXCEED               11      /* time exceeded, code: */
#define ICMP_TIMXCEED_INTRANS       0       /* ttl==0 in transit */
#define ICMP_TIMXCEED_REASS         1       /* ttl==0 in reass */
#define ICMP_PARAMPROB              12      /* ip header bad */
#define ICMP_PARAMPROB_OPTABSENT    1       /* req. opt. absent */
#define ICMP_TSTAMP                 13      /* timestamp request */
#define ICMP_TSTAMPREPLY            14      /* timestamp reply */
#define ICMP_IREQ                   15      /* information request */
#define ICMP_IREQREPLY              16      /* information reply */
#define ICMP_MASKREQ                17      /* address mask request */
#define ICMP_MASKREPLY              18      /* address mask reply */

#define ICMP_MAXTYPE                18


/************************
*** PUBLIC DATA TYPES ***
************************/
/*
 * Structure of an icmp header.
 */
typedef struct icmp {
    u_char  icmp_type;      /* type of message, see below */
    u_char  icmp_code;      /* type sub code */
    u_short icmp_cksum;     /* ones complement cksum of struct */
    union {
        u_char ih_pptr;         /* ICMP_PARAMPROB */
        struct in_addr ih_gwaddr;   /* ICMP_REDIRECT */
        struct ih_idseq {
            n_short icd_id;
            n_short icd_seq;
        } ih_idseq;
//        int ih_void; // <<<< changed int to short by RD for portability
        short ih_void;

        /* ICMP_UNREACH_NEEDFRAG -- Path MTU Discovery (RFC1191) */
        struct ih_pmtu {
            n_short ipm_void;    
            n_short ipm_nextmtu;
        } ih_pmtu;
    } icmp_hun;
#define icmp_pptr   icmp_hun.ih_pptr
#define icmp_gwaddr icmp_hun.ih_gwaddr
#define icmp_id     icmp_hun.ih_idseq.icd_id
#define icmp_seq    icmp_hun.ih_idseq.icd_seq
#define icmp_void   icmp_hun.ih_void
#define icmp_pmvoid icmp_hun.ih_pmtu.ipm_void
#define icmp_nextmtu    icmp_hun.ih_pmtu.ipm_nextmtu
    union {
        struct id_ts {
            n_time its_otime;
            n_time its_rtime;
            n_time its_ttime;
        } id_ts;
        struct id_ip  {
            struct ip idi_ip;
            /* options and then 64 bits of data */
        } id_ip;
        u_long  id_mask;
        char    id_data[1];
    } icmp_dun;
#define icmp_otime  icmp_dun.id_ts.its_otime
#define icmp_rtime  icmp_dun.id_ts.its_rtime
#define icmp_ttime  icmp_dun.id_ts.its_ttime
#define icmp_ip     icmp_dun.id_ip.idi_ip
#define icmp_mask   icmp_dun.id_mask
#define icmp_data   icmp_dun.id_data
} IcmpHdr;


/*
 * Variables related to this implementation
 * of the internet control message protocol.
 */
typedef struct {
/* statistics related to icmp packets generated */
    u_int   icps_error;         /* # of calls to icmp_error */
    u_int   icps_oldshort;      /* no error 'cuz old ip too short */
    u_int   icps_oldicmp;       /* no error 'cuz old was icmp */
    u_int   icps_outhist[ICMP_MAXTYPE + 1];
/* statistics related to input messages processed */
    u_int   icps_badcode;       /* icmp_code out of range */
    u_int   icps_tooshort;      /* packet < ICMP_MINLEN */
    u_int   icps_checksum;      /* bad checksum */
    u_int   icps_badlen;        /* calculated bound mismatch */
    u_int   icps_reflect;       /* number of responses */
    u_int   icps_inhist[ICMP_MAXTYPE + 1];
} IcmpStats;



/***********************
*** PUBLIC FUNCTIONS ***
***********************/
void icmpInit(void);

/*
 * Generate an error packet of type error
 * in response to bad packet ip.
 */
//void icmp_error(NBuf *nb, int ih_void; int type, int code, n_long dest);
// <<<< changed int to u_char by RD for portability
void icmp_error(NBuf* nb, u_char type, u_char code, n_long dest);


/*
 * Process a received ICMP message.
 */
//void icmpInput(NBuf* inBuf, int ipHdrLen);
// <<<< changed int to short by RD for portability
void icmpInput(NBuf* inBuf, short ipHdrLen);

#define ICMP_INFOTYPE(type) \
    ((type) == ICMP_ECHOREPLY || (type) == ICMP_ECHO || \
    (type) == ICMP_ROUTERADVERT || (type) == ICMP_ROUTERSOLICIT || \
    (type) == ICMP_TSTAMP || (type) == ICMP_TSTAMPREPLY || \
    (type) == ICMP_IREQ || (type) == ICMP_IREQREPLY || \
    (type) == ICMP_MASKREQ || (type) == ICMP_MASKREPLY)
    
#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久人人超碰精品| 日韩欧美中文字幕精品| 国产高清在线精品| 免费成人美女在线观看| 亚洲成人你懂的| 亚洲在线中文字幕| 一级精品视频在线观看宜春院 | 亚洲123区在线观看| 亚洲欧美色综合| 亚洲精品视频一区二区| 一区二区三区欧美| 亚洲成人av电影| 奇米精品一区二区三区在线观看一 | 日本va欧美va欧美va精品| 午夜精品久久久久久久99水蜜桃 | 亚洲一区电影777| 亚洲制服欧美中文字幕中文字幕| 亚洲理论在线观看| 亚洲一二三区在线观看| 日本不卡一区二区三区高清视频| 日本在线不卡一区| 国产一区二区在线观看视频| 成人免费av在线| 欧洲亚洲国产日韩| 日韩三级电影网址| 欧美国产成人精品| 亚洲一区二区三区自拍| 看电影不卡的网站| 高清av一区二区| 欧美性猛交xxxxxx富婆| 日韩视频在线一区二区| 亚洲国产经典视频| 丝袜美腿亚洲综合| 国产成人av网站| 欧美色图天堂网| 久久免费国产精品| 亚洲一二三区不卡| 国产成人在线网站| 欧美猛男gaygay网站| 欧美激情一区二区在线| 亚洲成人av福利| www.日韩大片| 宅男在线国产精品| 国产精品二区一区二区aⅴ污介绍| 午夜a成v人精品| 成人免费av网站| 精品久久久久久无| 亚洲影院久久精品| 成人av在线观| 精品久久久久香蕉网| 香蕉乱码成人久久天堂爱免费| 国产91精品一区二区麻豆网站| 欧美高清激情brazzers| 亚洲欧美一区二区视频| 国产精品白丝av| 欧美一级免费大片| 亚洲中国最大av网站| 国产黑丝在线一区二区三区| 日韩欧美的一区| 亚洲成av人**亚洲成av**| 成人涩涩免费视频| 久久色在线观看| 狠狠色狠狠色合久久伊人| 欧美日韩免费观看一区二区三区| 国产精品欧美极品| 国产精品一二二区| 337p日本欧洲亚洲大胆精品| 日本视频一区二区三区| 欧美视频精品在线| 亚洲国产欧美在线| 欧美在线观看视频一区二区 | 91久久精品国产91性色tv| 国产精品美女久久久久aⅴ国产馆| 久久精品国产**网站演员| 91精品国产品国语在线不卡| 视频一区二区三区入口| 欧美日韩一级片网站| 亚洲一区二区在线免费观看视频| 色嗨嗨av一区二区三区| 亚洲一区二区三区精品在线| 欧洲一区二区三区在线| 亚洲一区二区三区激情| 欧美人牲a欧美精品| 日韩高清在线电影| 日韩欧美中文字幕公布| 激情亚洲综合在线| 国产欧美视频在线观看| 成人免费视频一区| 一区二区三区欧美| 欧美精品久久一区| 激情av综合网| 国产精品午夜在线观看| 一本大道久久a久久综合| 一区二区三区视频在线观看| 欧美亚洲尤物久久| 久久精品国产亚洲aⅴ| 国产亚洲成年网址在线观看| 99精品国产视频| 亚洲无人区一区| 91精品国产aⅴ一区二区| 国产在线国偷精品免费看| 国产精品欧美精品| 欧美日韩精品是欧美日韩精品| 青青草原综合久久大伊人精品 | 专区另类欧美日韩| 欧美性大战久久久久久久| 三级欧美韩日大片在线看| www国产成人免费观看视频 深夜成人网| 国产麻豆欧美日韩一区| 亚洲日本护士毛茸茸| 欧美日韩国产大片| 国产99久久精品| 亚洲影视在线播放| 欧美精彩视频一区二区三区| 91福利视频网站| 精品无人码麻豆乱码1区2区| 亚洲精品一卡二卡| 欧美不卡一二三| 91在线播放网址| 韩国一区二区视频| 亚洲免费看黄网站| 久久精品亚洲麻豆av一区二区| 欧美最新大片在线看 | 国产高清不卡二三区| 亚洲韩国精品一区| 国产精品网曝门| 日韩一区二区在线免费观看| 91视频在线观看| 国产成人免费av在线| 青青草成人在线观看| 一区二区三区四区激情| 欧美日本免费一区二区三区| av不卡一区二区三区| 国产乱码精品一区二区三区忘忧草 | 国产午夜精品一区二区三区视频| 欧美色图在线观看| 91久久国产综合久久| 香港成人在线视频| 伊人婷婷欧美激情| 国产精品短视频| 欧美激情一区在线观看| 欧美tickling网站挠脚心| 色嗨嗨av一区二区三区| 97se亚洲国产综合自在线| 国产iv一区二区三区| 国产一区二区三区久久久 | 久久久精品黄色| 91精品国产综合久久福利软件| 日本韩国一区二区三区| 91免费观看视频在线| 91丝袜国产在线播放| av亚洲产国偷v产偷v自拍| 成人免费av资源| jlzzjlzz国产精品久久| www.在线成人| 99精品国产91久久久久久| 不卡电影免费在线播放一区| 懂色av一区二区三区蜜臀| 成人综合在线观看| 成人精品在线视频观看| 波多野结衣欧美| 91日韩一区二区三区| 91在线免费视频观看| 日本精品一区二区三区四区的功能| 97久久超碰国产精品电影| jizz一区二区| 欧美综合色免费| 欧美系列亚洲系列| 日韩一区二区在线看片| 精品成人一区二区| 国产精品美女久久久久aⅴ国产馆| 国产精品美女久久久久aⅴ| 国产精品欧美一级免费| 亚洲综合另类小说| 日韩精品成人一区二区在线| 午夜精品久久久| 久久精品国产在热久久| 激情文学综合插| 成人午夜电影小说| 欧美主播一区二区三区| 日韩精品一区二区在线| 中文文精品字幕一区二区| 亚洲欧美欧美一区二区三区| 亚洲不卡av一区二区三区| 美国av一区二区| 不卡一区二区中文字幕| 欧美视频在线一区| 欧美v日韩v国产v| 自拍av一区二区三区| 日韩1区2区日韩1区2区| 成人动漫中文字幕| 欧美日韩日日骚| 国产日韩欧美a| 亚洲成a天堂v人片| 国产成人免费视频精品含羞草妖精| 91黄色激情网站| 国产三级三级三级精品8ⅰ区| 亚洲黄色小说网站| 国产精品一区二区三区99| 欧美日韩在线直播|