icmp.h
lwip/arch.h
lwip/opt.h
lwip/pbuf.h
lwip/netif.h
src/sys/include/net/ipv6/icmp.h
lwip/opt.h
lwip/netif.h
lwip/pbuf.h
lwip/arch.h
icmp_dur_hdr
icmp_echo_hdr
icmp_te_hdr
ICMP6_DUR
1
ICMP6_ECHO
128
ICMP6_ER
129
ICMP6_TE
3
icmp_dur_type
ICMP_DUR_NET
0
ICMP_DUR_HOST
1
ICMP_DUR_PROTO
2
ICMP_DUR_PORT
3
ICMP_DUR_FRAG
4
ICMP_DUR_SR
5
icmp_te_type
ICMP_TE_TTL
0
ICMP_TE_FRAG
1
void void icmp_dest_unreach (struct pbuf *p, enum icmp_dur_type t) icmp_dest_unreach struct pbuf * p enum icmp_dur_type t
void void icmp_input (struct pbuf *p, struct netif *inp) icmp_input struct pbuf * p struct netif * inp
void void icmp_time_exceeded (struct pbuf *p, enum icmp_te_type t) icmp_time_exceeded struct pbuf * p enum icmp_te_type t

    /*
    *Copyright(c)2001,SwedishInstituteofComputerScience.
    *Allrightsreserved.
    *
    *Redistributionanduseinsourceandbinaryforms,withorwithout
    *modification,arepermittedprovidedthatthefollowingconditions
    *aremet:
    *1.Redistributionsofsourcecodemustretaintheabovecopyright
    *notice,thislistofconditionsandthefollowingdisclaimer.
    *2.Redistributionsinbinaryformmustreproducetheabovecopyright
    *notice,thislistofconditionsandthefollowingdisclaimerinthe
    *documentationand/orothermaterialsprovidedwiththedistribution.
    *3.NeitherthenameoftheInstitutenorthenamesofitscontributors
    *maybeusedtoendorseorpromoteproductsderivedfromthissoftware
    *withoutspecificpriorwrittenpermission.
    *
    *THISSOFTWAREISPROVIDEDBYTHEINSTITUTEANDCONTRIBUTORS``ASIS''AND
    *ANYEXPRESSORIMPLIEDWARRANTIES,INCLUDING,BUTNOTLIMITEDTO,THE
    *IMPLIEDWARRANTIESOFMERCHANTABILITYANDFITNESSFORAPARTICULARPURPOSE
    *AREDISCLAIMED.INNOEVENTSHALLTHEINSTITUTEORCONTRIBUTORSBELIABLE
    *FORANYDIRECT,INDIRECT,INCIDENTAL,SPECIAL,EXEMPLARY,ORCONSEQUENTIAL
    *DAMAGES(INCLUDING,BUTNOTLIMITEDTO,PROCUREMENTOFSUBSTITUTEGOODS
    *ORSERVICES;LOSSOFUSE,DATA,ORPROFITS;ORBUSINESSINTERRUPTION)
    *HOWEVERCAUSEDANDONANYTHEORYOFLIABILITY,WHETHERINCONTRACT,STRICT
    *LIABILITY,ORTORT(INCLUDINGNEGLIGENCEOROTHERWISE)ARISINGINANYWAY
    *OUTOFTHEUSEOFTHISSOFTWARE,EVENIFADVISEDOFTHEPOSSIBILITYOF
    *SUCHDAMAGE.
    *
    *ThisfileispartofthelwIPTCP/IPstack.
    *
    *Author:AdamDunkels<adam@sics.se>
    *
    *$Id: ipv6_2icmp_8h.xml 88 2016-01-12 00:11:29Z reddawg $
    */
    #ifndef__LWIP_ICMP_H__
    #define__LWIP_ICMP_H__

    #include"lwip/arch.h"

    #include"lwip/opt.h"
    #include"lwip/pbuf.h"

    #include"lwip/netif.h"

    #defineICMP6_DUR1
    #defineICMP6_TE3
    #defineICMP6_ECHO128/*echo*/
    #defineICMP6_ER129/*echoreply*/

    enumicmp_dur_type{
    ICMP_DUR_NET=0,/*netunreachable*/
    ICMP_DUR_HOST=1,/*hostunreachable*/
    ICMP_DUR_PROTO=2,/*protocolunreachable*/
    ICMP_DUR_PORT=3,/*portunreachable*/
    ICMP_DUR_FRAG=4,/*fragmentationneededandDFset*/
    ICMP_DUR_SR=5/*sourceroutefailed*/
    };

    enumicmp_te_type{
    ICMP_TE_TTL=0,/*timetoliveexceededintransit*/
    ICMP_TE_FRAG=1/*fragmentreassemblytimeexceeded*/
    };

    voidicmp_input(structpbuf*p,structnetif*inp);

    voidicmp_dest_unreach(structpbuf*p,enumicmp_dur_typet);
    voidicmp_time_exceeded(structpbuf*p,enumicmp_te_typet);

    structicmp_echo_hdr{
    u8_ttype;
    u8_ticode;
    u16_tchksum;
    u16_tid;
    u16_tseqno;
    };

    structicmp_dur_hdr{
    u8_ttype;
    u8_ticode;
    u16_tchksum;
    u32_tunused;
    };

    structicmp_te_hdr{
    u8_ttype;
    u8_ticode;
    u16_tchksum;
    u32_tunused;
    };

    #endif/*__LWIP_ICMP_H__*/