ip_addr.h
net/arch.h
src/sys/include/net/ipv6/inet.h
arch/cpu.h
net/arch.h
src/sys/include/net/ipv6/ip_addr.h
arch/cc.h
src/sys/include/net/ipv6/inet.h
src/sys/include/net/ipv6/ip_addr.h
ip_addr
IP6_ADDR
ipaddr
a
b
c
d
e
f
g
h
do { (ipaddr)->addr[0] = htonl((u32_t)((a & 0xffff) << 16) | (b & 0xffff)); \ (ipaddr)->addr[1] = htonl(((c & 0xffff) << 16) | (d & 0xffff)); \ (ipaddr)->addr[2] = htonl(((e & 0xffff) << 16) | (f & 0xffff)); \ (ipaddr)->addr[3] = htonl(((g & 0xffff) << 16) | (h & 0xffff)); } while(0)
IP_ADDR_ANY
0
int int ip_addr_cmp (struct ip_addr *addr1, struct ip_addr *addr2) ip_addr_cmp struct ip_addr * addr1 struct ip_addr * addr2
int int ip_addr_isany (struct ip_addr *addr) ip_addr_isany struct ip_addr * addr
int int ip_addr_maskcmp (struct ip_addr *addr1, struct ip_addr *addr2, struct ip_addr *mask) ip_addr_maskcmp struct ip_addr * addr1 struct ip_addr * addr2 struct ip_addr * mask
void void ip_addr_set (struct ip_addr *dest, struct ip_addr *src) ip_addr_set struct ip_addr * dest struct ip_addr * src

    /*
    *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_2ip__addr_8h.xml 88 2016-01-12 00:11:29Z reddawg $
    */
    #ifndef__LWIP_IP_ADDR_H__
    #define__LWIP_IP_ADDR_H__

    #include"net/arch.h"

    #defineIP_ADDR_ANY0

    structip_addr{
    u32_taddr[4];
    };

    #defineIP6_ADDR(ipaddr,a,b,c,d,e,f,g,h)do{(ipaddr)->addr[0]=htonl((u32_t)((a&0xffff)<<16)|(b&0xffff));\
    (ipaddr)->addr[1]=htonl(((c&0xffff)<<16)|(d&0xffff));\
    (ipaddr)->addr[2]=htonl(((e&0xffff)<<16)|(f&0xffff));\
    (ipaddr)->addr[3]=htonl(((g&0xffff)<<16)|(h&0xffff));}while(0)

    intip_addr_maskcmp(structip_addr*addr1,structip_addr*addr2,
    structip_addr*mask);
    intip_addr_cmp(structip_addr*addr1,structip_addr*addr2);
    voidip_addr_set(structip_addr*dest,structip_addr*src);
    intip_addr_isany(structip_addr*addr);

    #ifIP_DEBUG
    voidip_addr_debug_print(structip_addr*addr);
    #endif/*IP_DEBUG*/

    #endif/*__LWIP_IP_ADDR_H__*/