netif.h
net/opt.h
net/err.h
net/ipv4/ip_addr.h
net/ipv4/inet.h
net/pbuf.h
src/sys/include/net/ipv4/icmp.h
src/sys/include/net/ipv4/ip.h
src/sys/include/netif/arp.h
src/sys/include/netif/ethernetif.h
src/sys/include/netif/loopif.h
src/sys/include/net/netif.h
arch/cpu.h
ubixos/types.h
sys/_types.h
net/arch.h
net/lwipopts.h
net/ipv4/ip_addr.h
net/err.h
net/opt.h
net/pbuf.h
net/debug.h
net/ipv4/inet.h
net/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
netif
netif * struct netif* netif_add (struct ip_addr *ipaddr, struct ip_addr *netmask, struct ip_addr *gw, void(*init)(struct netif *netif), err_t(*input)(struct pbuf *p, struct netif *netif)) netif_add struct ip_addr * ipaddr struct ip_addr * netmask struct ip_addr * gw void(*)(struct netif *netif) init err_t(*)(struct pbuf *p, struct netif *netif) input netMainThread
netif * struct netif* netif_find (char *name) netif_find char * name
void void netif_init () netif_init netMainThread
void void netif_set_default (struct netif *netif) netif_set_default struct netif * netif netMainThread
void void netif_set_gw (struct netif *netif, struct ip_addr *gw) netif_set_gw struct netif * netif struct ip_addr * gw
void void netif_set_ipaddr (struct netif *netif, struct ip_addr *ipaddr) netif_set_ipaddr struct netif * netif struct ip_addr * ipaddr
void void netif_set_netmask (struct netif *netif, struct ip_addr *netmast) netif_set_netmask struct netif * netif struct ip_addr * netmast
netif * struct netif* netif_default netif_default
netif * struct netif* netif_list netif_list

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

    #include"net/opt.h"

    #include"net/err.h"

    #include"net/ipv4/ip_addr.h"
    #include"net/ipv4/inet.h"

    #include"net/pbuf.h"

    structnetif{
    structnetif*next;
    uInt8num;
    structip_addrip_addr;
    structip_addrnetmask;/*netmaskinnetworkbyteorder*/
    structip_addrgw;
    charhwaddr[6];

    /*Thisfunctioniscalledbythenetworkdevicedriver
    whenitwantstopassapackettotheTCP/IPstack.*/
    err_t(*input)(structpbuf*p,structnetif*inp);

    /*Thefollowingtwofieldsshouldbefilledinbythe
    initializationfunctionforthedevicedriver.*/

    charname[2];
    /*ThisfunctioniscalledbytheIPmodulewhenitwants
    tosendapacketontheinterface.*/
    err_t(*output)(structnetif*netif,structpbuf*p,structip_addr*ipaddr);
    err_t(*linkoutput)(structnetif*netif,structpbuf*p);

    /*Thisfieldcanbesetbuthedevicedriverandcouldpoint
    tostateinformationforthedevice.*/
    void*state;
    };

    /*Thelistofnetworkinterfaces.*/
    externstructnetif*netif_list;
    externstructnetif*netif_default;

    /*netif_init()mustbecalledfirst.*/
    voidnetif_init();

    structnetif*netif_add(structip_addr*ipaddr,structip_addr*netmask,
    structip_addr*gw,
    void(*init)(structnetif*netif),
    err_t(*input)(structpbuf*p,structnetif*netif));

    /*Returnsanetworkinterfacegivenitsname.Thenameisoftheform
    "et0",wherethefirsttwolettersarethe"name"fieldinthe
    netifstructure,andthedigitisinthenumfieldinthesame
    structure.*/
    structnetif*netif_find(char*name);

    voidnetif_set_default(structnetif*netif);

    voidnetif_set_ipaddr(structnetif*netif,structip_addr*ipaddr);
    voidnetif_set_netmask(structnetif*netif,structip_addr*netmast);
    voidnetif_set_gw(structnetif*netif,structip_addr*gw);

    #endif/*__LWIP_NETIF_H__*/