inet.h
net/arch.h
net/opt.h
net/pbuf.h
net/ipv4/ip_addr.h
src/sys/include/net/netif.h
src/sys/include/net/udp.h
src/sys/net/netif/arp.c
src/sys/net/netif/tcpdump.c
arch/cpu.h
net/arch.h
net/lwipopts.h
net/ipv4/ip_addr.h
net/opt.h
net/pbuf.h
net/debug.h
src/sys/include/net/ipv4/inet.h
arch/cc.h
src/sys/net/net/udpecho.c
src/sys/include/net/ipv4/ip.h
src/sys/net/netif/tcpdump.c
src/sys/include/net/netif.h
src/sys/net/netif/loopif.c
src/sys/include/net/udp.h
src/sys/include/netif/arp.h
src/sys/include/net/tcp.h
src/sys/net/netif/ethernetif.c
src/sys/net/netif/arp.c
src/sys/include/net/ipv4/icmp.h
src/sys/net/net/bot.c
src/sys/net/api/tcpip.c
src/sys/include/net/tcpip.h
src/sys/include/net/api_msg.h
src/sys/include/netif/ethernetif.h
src/sys/net/net/shell.c
src/sys/net/api/api_lib.c
src/sys/net/net/init.c
src/sys/include/net/api.h
src/sys/include/netif/loopif.h
src/sys/net/api/sockets.c
src/sys/net/api/api_msg.c
src/sys/include/net/ipv4/inet.h
htonl
n
HTONL(n)
inet_aton
HTONL
n
(n)
htons
n
HTONS(n)
arp_arp_input
arp_query
ethernetif_input
ethernetif_output
lwip_recvfrom
HTONS
n
(n)
ntohl
htonl
NTOHL
HTONL
ntohs
htons
lwip_bind
lwip_connect
NTOHS
HTONS
uInt32 uInt32 htonl (uInt32 n) htonl uInt32 n
uInt16 uInt16 htons (uInt16 n) htons uInt16 n
uInt16 uInt16 inet_chksum (void *dataptr, uInt16 len) inet_chksum void * dataptr uInt16 len
uInt16 uInt16 inet_chksum_pbuf (struct pbuf *p) inet_chksum_pbuf struct pbuf * p
uInt16 uInt16 inet_chksum_pseudo (struct pbuf *p, struct ip_addr *src, struct ip_addr *dest, uInt8 proto, uInt16 proto_len) inet_chksum_pseudo struct pbuf * p struct ip_addr * src struct ip_addr * dest uInt8 proto uInt16 proto_len

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

    #include"net/arch.h"

    #include"net/opt.h"
    #include"net/pbuf.h"
    #include"net/ipv4/ip_addr.h"

    uInt16inet_chksum(void*dataptr,uInt16len);
    uInt16inet_chksum_pbuf(structpbuf*p);
    uInt16inet_chksum_pseudo(structpbuf*p,
    structip_addr*src,structip_addr*dest,
    uInt8proto,uInt16proto_len);

    #ifdefHTONS
    #undefHTONS
    #endif/*HTONS*/
    #ifdefNTOHS
    #undefNTOHS
    #endif/*NTOHS*/
    #ifdefHTONL
    #undefHTONL
    #endif/*HTONL*/
    #ifdefNTOHL
    #undefNTOHL
    #endif/*NTOHL*/

    #ifndefHTONS
    #ifBYTE_ORDER==BIG_ENDIAN
    #defineHTONS(n)(n)
    #definehtons(n)HTONS(n)
    #else/*BYTE_ORDER==BIG_ENDIAN*/
    #defineHTONS(n)(((((uInt16)(n)&0xff))<<8)|(((uInt16)(n)&0xff00)>>8))
    #endif/*BYTE_ORDER==BIG_ENDIAN*/
    #endif/*HTONS*/

    #ifdefNTOHS
    #undefNTOHS
    #endif/*NTOHS*/

    #ifdefntohs
    #undefntohs
    #endif/*ntohs*/

    #defineNTOHSHTONS
    #definentohshtons

    #ifndefHTONL
    #ifBYTE_ORDER==BIG_ENDIAN
    #defineHTONL(n)(n)
    #definehtonl(n)HTONL(n)
    #else/*BYTE_ORDER==BIG_ENDIAN*/
    #defineHTONL(n)(((((uInt32)(n)&0xff))<<24)|\
    ((((uInt32)(n)&0xff00))<<8)|\
    ((((uInt32)(n)&0xff0000))>>8)|\
    ((((uInt32)(n)&0xff000000))>>24))
    #endif/*BYTE_ORDER==BIG_ENDIAN*/
    #endif/*HTONL*/

    #ifdefntohl
    #undefntohl
    #endif/*ntohl*/

    #ifdefNTOHL
    #undefNTOHL
    #endif/*NTOHL*/

    #defineNTOHLHTONL
    #definentohlhtonl

    #ifndef_MACHINE_ENDIAN_H_
    #ifndef_NETINET_IN_H
    #ifndef_LINUX_BYTEORDER_GENERIC_H

    #ifBYTE_ORDER==LITTLE_ENDIAN
    uInt16htons(uInt16n);
    uInt32htonl(uInt32n);
    #else
    #endif/*BYTE_ORDER==LITTLE_ENDIAN*/

    #endif/*_LINUX_BYTEORDER_GENERIC_H*/
    #endif/*_NETINET_IN_H*/
    #endif/*_MACHINE_ENDIAN_H_*/

    #endif/*__LWIP_INET_H__*/