<?xml version='1.0' encoding='UTF-8' standalone='no'?> <doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.16"> <compounddef id="ip__addr_8h" kind="file" language="C++"> <compoundname>ip_addr.h</compoundname> <includes refid="opt_8h" local="no">net/opt.h</includes> <includes refid="def_8h" local="no">net/def.h</includes> <includes refid="ip4__addr_8h" local="no">net/ip4_addr.h</includes> <includes refid="ip6__addr_8h" local="no">net/ip6_addr.h</includes> <includedby refid="icmp_8h" local="yes">C:/Dev/git/UbixOS/sys/include/net/icmp.h</includedby> <includedby refid="igmp_8h" local="yes">C:/Dev/git/UbixOS/sys/include/net/igmp.h</includedby> <includedby refid="inet_8h" local="no">C:/Dev/git/UbixOS/sys/include/net/inet.h</includedby> <includedby refid="inet__chksum_8h" local="yes">C:/Dev/git/UbixOS/sys/include/net/inet_chksum.h</includedby> <includedby refid="ip_8h" local="yes">C:/Dev/git/UbixOS/sys/include/net/ip.h</includedby> <includedby refid="ip4__frag_8h" local="yes">C:/Dev/git/UbixOS/sys/include/net/ip4_frag.h</includedby> <includedby refid="netif_8h" local="no">C:/Dev/git/UbixOS/sys/include/net/netif.h</includedby> <includedby refid="snmp_8h" local="yes">C:/Dev/git/UbixOS/sys/include/net/snmp.h</includedby> <includedby refid="inet__chksum_8c" local="yes">C:/Dev/git/UbixOS/sys/net/core/inet_chksum.c</includedby> <includedby refid="netif_8c" local="yes">C:/Dev/git/UbixOS/sys/net/core/netif.c</includedby> <includedby refid="net_2init_8c" local="no">C:/Dev/git/UbixOS/sys/net/net/init.c</includedby> <incdepgraph> <node id="17"> <label>stdarg.h</label> <link refid="stdarg_8h"/> </node> <node id="18"> <label>ubixos/kpanic.h</label> <link refid="kpanic_8h"/> </node> <node id="15"> <label>sys/io.h</label> <link refid="io_8h"/> </node> <node id="8"> <label>sys/select.h</label> <link refid="select_8h"/> <childnode refid="9" relation="include"> </childnode> <childnode refid="7" relation="include"> </childnode> <childnode refid="10" relation="include"> </childnode> <childnode refid="11" relation="include"> </childnode> <childnode refid="12" relation="include"> </childnode> </node> <node id="13"> <label>net/arch/cc.h</label> <link refid="cc_8h"/> <childnode refid="14" relation="include"> </childnode> </node> <node id="12"> <label>sys/_sigset.h</label> <link refid="__sigset_8h"/> <childnode refid="7" relation="include"> </childnode> </node> <node id="3"> <label>net/lwipopts.h</label> <link refid="lwipopts_8h"/> </node> <node id="6"> <label>sys/types.h</label> <link refid="include_2sys_2types_8h"/> <childnode refid="7" relation="include"> </childnode> <childnode refid="8" relation="include"> </childnode> </node> <node id="19"> <label>net/def.h</label> <link refid="def_8h"/> <childnode refid="5" relation="include"> </childnode> <childnode refid="2" relation="include"> </childnode> </node> <node id="5"> <label>net/arch.h</label> <link refid="arch_8h"/> <childnode refid="6" relation="include"> </childnode> <childnode refid="13" relation="include"> </childnode> <childnode refid="16" relation="include"> </childnode> <childnode refid="18" relation="include"> </childnode> </node> <node id="21"> <label>net/ip6_addr.h</label> <link refid="ip6__addr_8h"/> <childnode refid="2" relation="include"> </childnode> <childnode refid="19" relation="include"> </childnode> </node> <node id="2"> <label>net/opt.h</label> <link refid="opt_8h"/> <childnode refid="3" relation="include"> </childnode> <childnode refid="4" relation="include"> </childnode> </node> <node id="16"> <label>lib/kprintf.h</label> <link refid="kprintf_8h"/> <childnode refid="6" relation="include"> </childnode> <childnode refid="17" relation="include"> </childnode> </node> <node id="4"> <label>net/debug.h</label> <link refid="debug_8h"/> <childnode refid="5" relation="include"> </childnode> <childnode refid="2" relation="include"> </childnode> </node> <node id="20"> <label>net/ip4_addr.h</label> <link refid="ip4__addr_8h"/> <childnode refid="2" relation="include"> </childnode> <childnode refid="19" relation="include"> </childnode> </node> <node id="1"> <label>C:/Dev/git/UbixOS/sys/include/net/ip_addr.h</label> <link refid="ip__addr_8h"/> <childnode refid="2" relation="include"> </childnode> <childnode refid="19" relation="include"> </childnode> <childnode refid="20" relation="include"> </childnode> <childnode refid="21" relation="include"> </childnode> </node> <node id="9"> <label>sys/cdefs.h</label> <link refid="cdefs_8h"/> </node> <node id="14"> <label>ubixos/time.h</label> <link refid="time_8h"/> <childnode refid="6" relation="include"> </childnode> <childnode refid="10" relation="include"> </childnode> <childnode refid="15" relation="include"> </childnode> </node> <node id="7"> <label>sys/_types.h</label> <link refid="__types_8h"/> </node> <node id="10"> <label>sys/_timespec.h</label> <link refid="__timespec_8h"/> <childnode refid="7" relation="include"> </childnode> </node> <node id="11"> <label>sys/_timeval.h</label> <link refid="__timeval_8h"/> <childnode refid="7" relation="include"> </childnode> </node> </incdepgraph> <invincdepgraph> <node id="15"> <label>C:/Dev/git/UbixOS/sys/net/core/ipv6/ip6_frag.c</label> <link refid="ip6__frag_8c"/> </node> <node id="3"> <label>C:/Dev/git/UbixOS/sys/include/net/igmp.h</label> <link refid="igmp_8h"/> <childnode refid="4" relation="include"> </childnode> <childnode refid="5" relation="include"> </childnode> <childnode refid="6" relation="include"> </childnode> <childnode refid="7" relation="include"> </childnode> </node> <node id="55"> <label>C:/Dev/git/UbixOS/sys/lib/ogprintf.cc</label> <link refid="ogprintf_8cc"/> </node> <node id="36"> <label>C:/Dev/git/UbixOS/sys/fs/ubixfs/block.c</label> <link refid="block_8c"/> </node> <node id="11"> <label>C:/Dev/git/UbixOS/sys/net/core/inet_chksum.c</label> <link refid="inet__chksum_8c"/> </node> <node id="56"> <label>C:/Dev/git/UbixOS/sys/sde/colours.cc</label> <link refid="colours_8cc"/> </node> <node id="21"> <label>C:/Dev/git/UbixOS/sys/init/main.c</label> <link refid="main_8c"/> </node> <node id="37"> <label>C:/Dev/git/UbixOS/sys/fs/ubixfs/dirCache.c</label> <link refid="dirCache_8c"/> </node> <node id="43"> <label>C:/Dev/git/UbixOS/sys/arch/armv6/fork.c</label> <link refid="armv6_2fork_8c"/> </node> <node id="58"> <label>C:/Dev/git/UbixOS/sys/sde/sde.cc</label> <link refid="sde_8cc"/> </node> <node id="57"> <label>C:/Dev/git/UbixOS/sys/sde/main.cc</label> <link refid="main_8cc"/> </node> <node id="30"> <label>C:/Dev/git/UbixOS/sys/fs/vfs/inode.c</label> <link refid="inode_8c"/> </node> <node id="48"> <label>C:/Dev/git/UbixOS/sys/isa/atkbd.c</label> <link refid="atkbd_8c"/> </node> <node id="14"> <label>C:/Dev/git/UbixOS/sys/net/api/tcpip.c</label> <link refid="tcpip_8c"/> </node> <node id="71"> <label>C:/Dev/git/UbixOS/sys/include/netif/slipif.h</label> <link refid="slipif_8h"/> </node> <node id="24"> <label>C:/Dev/git/UbixOS/sys/fs/fat/fat.c</label> <link refid="fat_8c"/> </node> <node id="19"> <label>C:/Dev/git/UbixOS/sys/include/net/net.h</label> <link refid="net_8h"/> <childnode refid="20" relation="include"> </childnode> <childnode refid="22" relation="include"> </childnode> <childnode refid="64" relation="include"> </childnode> </node> <node id="29"> <label>C:/Dev/git/UbixOS/sys/fs/vfs/file.c</label> <link refid="file_8c"/> </node> <node id="2"> <label>C:/Dev/git/UbixOS/sys/include/net/icmp.h</label> <link refid="icmp_8h"/> </node> <node id="8"> <label>C:/Dev/git/UbixOS/sys/include/net/inet.h</label> <link refid="inet_8h"/> <childnode refid="9" relation="include"> </childnode> </node> <node id="38"> <label>C:/Dev/git/UbixOS/sys/fs/ubixfs/directory.c</label> <link refid="directory_8c"/> </node> <node id="17"> <label>C:/Dev/git/UbixOS/sys/include/net/icmp6.h</label> <link refid="icmp6_8h"/> <childnode refid="15" relation="include"> </childnode> </node> <node id="32"> <label>C:/Dev/git/UbixOS/sys/fs/vfs/vfs.c</label> <link refid="vfs_8c"/> </node> <node id="72"> <label>C:/Dev/git/UbixOS/sys/include/net/snmp.h</label> <link refid="snmp_8h"/> <childnode refid="6" relation="include"> </childnode> <childnode refid="68" relation="include"> </childnode> </node> <node id="50"> <label>C:/Dev/git/UbixOS/sys/kernel/endtask.c</label> <link refid="endtask_8c"/> </node> <node id="64"> <label>C:/Dev/git/UbixOS/sys/pci/lnc.c</label> <link refid="lnc_8c"/> </node> <node id="63"> <label>C:/Dev/git/UbixOS/sys/kmods/kmod.c</label> <link refid="kmod_8c"/> </node> <node id="34"> <label>C:/Dev/git/UbixOS/sys/include/ubixfs/ubixfs.h</label> <link refid="include_2ubixfs_2ubixfs_8h"/> <childnode refid="35" relation="include"> </childnode> <childnode refid="36" relation="include"> </childnode> <childnode refid="37" relation="include"> </childnode> <childnode refid="38" relation="include"> </childnode> <childnode refid="25" relation="include"> </childnode> <childnode refid="26" relation="include"> </childnode> <childnode refid="39" relation="include"> </childnode> <childnode refid="20" relation="include"> </childnode> </node> <node id="66"> <label>C:/Dev/git/UbixOS/sys/include/net/priv/tcpip_priv.h</label> <link refid="tcpip__priv_8h"/> <childnode refid="14" relation="include"> </childnode> <childnode refid="5" relation="include"> </childnode> <childnode refid="7" relation="include"> </childnode> </node> <node id="49"> <label>C:/Dev/git/UbixOS/sys/isa/ne2k.c</label> <link refid="ne2k_8c"/> </node> <node id="42"> <label>C:/Dev/git/UbixOS/sys/include/ubixos/vitals.h</label> <link refid="vitals_8h"/> <childnode refid="43" relation="include"> </childnode> <childnode refid="35" relation="include"> </childnode> <childnode refid="44" relation="include"> </childnode> <childnode refid="45" relation="include"> </childnode> <childnode refid="46" relation="include"> </childnode> <childnode refid="29" relation="include"> </childnode> <childnode refid="47" relation="include"> </childnode> <childnode refid="32" relation="include"> </childnode> <childnode refid="20" relation="include"> </childnode> <childnode refid="48" relation="include"> </childnode> <childnode refid="49" relation="include"> </childnode> <childnode refid="50" relation="include"> </childnode> <childnode refid="51" relation="include"> </childnode> <childnode refid="52" relation="include"> </childnode> <childnode refid="53" relation="include"> </childnode> <childnode refid="54" relation="include"> </childnode> <childnode refid="55" relation="include"> </childnode> <childnode refid="56" relation="include"> </childnode> <childnode refid="57" relation="include"> </childnode> <childnode refid="58" relation="include"> </childnode> <childnode refid="59" relation="include"> </childnode> <childnode refid="60" relation="include"> </childnode> </node> <node id="28"> <label>C:/Dev/git/UbixOS/sys/fs/ufs/ufs.c</label> <link refid="ufs_8c"/> </node> <node id="45"> <label>C:/Dev/git/UbixOS/sys/arch/i386/fork.c</label> <link refid="i386_2fork_8c"/> </node> <node id="59"> <label>C:/Dev/git/UbixOS/sys/vmm/paging.c</label> <link refid="paging_8c"/> </node> <node id="22"> <label>C:/Dev/git/UbixOS/sys/include/vfs/vfs.h</label> <link refid="include_2vfs_2vfs_8h"/> <childnode refid="23" relation="include"> </childnode> <childnode refid="24" relation="include"> </childnode> <childnode refid="25" relation="include"> </childnode> <childnode refid="26" relation="include"> </childnode> <childnode refid="27" relation="include"> </childnode> <childnode refid="28" relation="include"> </childnode> <childnode refid="29" relation="include"> </childnode> <childnode refid="30" relation="include"> </childnode> <childnode refid="31" relation="include"> </childnode> <childnode refid="32" relation="include"> </childnode> <childnode refid="33" relation="include"> </childnode> <childnode refid="34" relation="include"> </childnode> <childnode refid="20" relation="include"> </childnode> <childnode refid="42" relation="include"> </childnode> <childnode refid="61" relation="include"> </childnode> <childnode refid="62" relation="include"> </childnode> <childnode refid="63" relation="include"> </childnode> </node> <node id="62"> <label>C:/Dev/git/UbixOS/sys/kernel/ld.c</label> <link refid="ld_8c"/> </node> <node id="46"> <label>C:/Dev/git/UbixOS/sys/arch/i386/systemtask.c</label> <link refid="i386_2systemtask_8c"/> </node> <node id="33"> <label>C:/Dev/git/UbixOS/sys/include/sys/buf.h</label> <link refid="buf_8h"/> <childnode refid="27" relation="include"> </childnode> </node> <node id="25"> <label>C:/Dev/git/UbixOS/sys/fs/ubixfs/thread.c</label> <link refid="thread_8c"/> </node> <node id="65"> <label>C:/Dev/git/UbixOS/sys/include/net/tcpip.h</label> <link refid="tcpip_8h"/> <childnode refid="66" relation="include"> </childnode> <childnode refid="67" relation="include"> </childnode> <childnode refid="68" relation="include"> </childnode> </node> <node id="4"> <label>C:/Dev/git/UbixOS/sys/net/core/init.c</label> <link refid="core_2init_8c"/> </node> <node id="68"> <label>C:/Dev/git/UbixOS/sys/net/netif/ethernetif.c</label> <link refid="ethernetif_8c"/> </node> <node id="16"> <label>C:/Dev/git/UbixOS/sys/include/net/netif.h</label> <link refid="netif_8h"/> <childnode refid="2" relation="include"> </childnode> <childnode refid="17" relation="include"> </childnode> <childnode refid="3" relation="include"> </childnode> <childnode refid="12" relation="include"> </childnode> <childnode refid="13" relation="include"> </childnode> <childnode refid="18" relation="include"> </childnode> <childnode refid="19" relation="include"> </childnode> <childnode refid="65" relation="include"> </childnode> <childnode refid="69" relation="include"> </childnode> <childnode refid="71" relation="include"> </childnode> <childnode refid="49" relation="include"> </childnode> <childnode refid="4" relation="include"> </childnode> <childnode refid="6" relation="include"> </childnode> <childnode refid="64" relation="include"> </childnode> </node> <node id="18"> <label>C:/Dev/git/UbixOS/sys/include/net/ip6_frag.h</label> <link refid="ip6__frag_8h"/> <childnode refid="15" relation="include"> </childnode> <childnode refid="5" relation="include"> </childnode> <childnode refid="7" relation="include"> </childnode> </node> <node id="31"> <label>C:/Dev/git/UbixOS/sys/fs/vfs/namei.c</label> <link refid="namei_8c"/> </node> <node id="40"> <label>C:/Dev/git/UbixOS/sys/fs/common/gpt.c</label> <link refid="gpt_8c"/> </node> <node id="23"> <label>C:/Dev/git/UbixOS/sys/fs/devfs/devfs.c</label> <link refid="devfs_8c"/> </node> <node id="13"> <label>C:/Dev/git/UbixOS/sys/include/net/ip4_frag.h</label> <link refid="ip4__frag_8h"/> <childnode refid="5" relation="include"> </childnode> <childnode refid="7" relation="include"> </childnode> </node> <node id="60"> <label>C:/Dev/git/UbixOS/sys/vmm/vmm_memory.c</label> <link refid="vmm__memory_8c"/> </node> <node id="6"> <label>C:/Dev/git/UbixOS/sys/net/core/netif.c</label> <link refid="netif_8c"/> </node> <node id="5"> <label>C:/Dev/git/UbixOS/sys/net/core/memp.c</label> <link refid="memp_8c"/> </node> <node id="7"> <label>C:/Dev/git/UbixOS/sys/net/core/timeouts.c</label> <link refid="timeouts_8c"/> </node> <node id="51"> <label>C:/Dev/git/UbixOS/sys/kernel/syscall.c</label> <link refid="kernel_2syscall_8c"/> </node> <node id="44"> <label>C:/Dev/git/UbixOS/sys/arch/armv6/systemtask.c</label> <link refid="armv6_2systemtask_8c"/> </node> <node id="12"> <label>C:/Dev/git/UbixOS/sys/include/net/ip.h</label> <link refid="ip_8h"/> <childnode refid="13" relation="include"> </childnode> <childnode refid="14" relation="include"> </childnode> <childnode refid="4" relation="include"> </childnode> <childnode refid="15" relation="include"> </childnode> <childnode refid="6" relation="include"> </childnode> </node> <node id="1"> <label>C:/Dev/git/UbixOS/sys/include/net/ip_addr.h</label> <link refid="ip__addr_8h"/> <childnode refid="2" relation="include"> </childnode> <childnode refid="3" relation="include"> </childnode> <childnode refid="8" relation="include"> </childnode> <childnode refid="10" relation="include"> </childnode> <childnode refid="12" relation="include"> </childnode> <childnode refid="13" relation="include"> </childnode> <childnode refid="16" relation="include"> </childnode> <childnode refid="72" relation="include"> </childnode> <childnode refid="11" relation="include"> </childnode> <childnode refid="6" relation="include"> </childnode> <childnode refid="67" relation="include"> </childnode> </node> <node id="26"> <label>C:/Dev/git/UbixOS/sys/fs/ubixfs/ubixfs.c</label> <link refid="ubixfs_8c"/> </node> <node id="35"> <label>C:/Dev/git/UbixOS/sys/arch/armv6/syscall.c</label> <link refid="arch_2armv6_2syscall_8c"/> </node> <node id="27"> <label>C:/Dev/git/UbixOS/sys/fs/ufs/ffs.c</label> <link refid="ffs_8c"/> </node> <node id="61"> <label>C:/Dev/git/UbixOS/sys/include/ufs/ffs.h</label> <link refid="ffs_8h"/> <childnode refid="27" relation="include"> </childnode> <childnode refid="28" relation="include"> </childnode> </node> <node id="69"> <label>C:/Dev/git/UbixOS/sys/include/netif/ethernet.h</label> <link refid="f_2ethernet_8h"/> <childnode refid="70" relation="include"> </childnode> <childnode refid="14" relation="include"> </childnode> <childnode refid="6" relation="include"> </childnode> <childnode refid="67" relation="include"> </childnode> </node> <node id="47"> <label>C:/Dev/git/UbixOS/sys/fs/vfs/mount.c</label> <link refid="mount_8c"/> </node> <node id="70"> <label>C:/Dev/git/UbixOS/sys/include/netif/etharp.h</label> <link refid="f_2etharp_8h"/> </node> <node id="41"> <label>C:/Dev/git/UbixOS/sys/pci/hd.c</label> <link refid="hd_8c"/> </node> <node id="67"> <label>C:/Dev/git/UbixOS/sys/net/net/init.c</label> <link refid="net_2init_8c"/> </node> <node id="39"> <label>C:/Dev/git/UbixOS/sys/include/pci/hd.h</label> <link refid="hd_8h"/> <childnode refid="40" relation="include"> </childnode> <childnode refid="20" relation="include"> </childnode> <childnode refid="41" relation="include"> </childnode> </node> <node id="20"> <label>C:/Dev/git/UbixOS/sys/include/ubixos/init.h</label> <link refid="ubixos_2init_8h"/> <childnode refid="21" relation="include"> </childnode> </node> <node id="10"> <label>C:/Dev/git/UbixOS/sys/include/net/inet_chksum.h</label> <link refid="inet__chksum_8h"/> <childnode refid="11" relation="include"> </childnode> </node> <node id="54"> <label>C:/Dev/git/UbixOS/sys/kernel/vitals.c</label> <link refid="vitals_8c"/> </node> <node id="53"> <label>C:/Dev/git/UbixOS/sys/kernel/ubthread.c</label> <link refid="ubthread_8c"/> </node> <node id="52"> <label>C:/Dev/git/UbixOS/sys/kernel/time.c</label> <link refid="time_8c"/> </node> <node id="9"> <label>C:/Dev/git/UbixOS/sys/lib/net.c</label> <link refid="net_8c"/> </node> </invincdepgraph> <sectiondef kind="define"> <memberdef kind="define" id="ip__addr_8h_1ae221446ab455b8a1a0d2a4153b9c1bb3" prot="public" static="no"> <name>IP46_ADDR_ANY</name> <param><defname>type</defname></param> <initializer>(IP6_ADDR_ANY)</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="331" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="331" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1a06e75bcd198012b5ba39480c233608bd" prot="public" static="no"> <name>ip_2_ip6</name> <param><defname>ipaddr</defname></param> <initializer>(ipaddr)</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="301" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="301" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1a9ee53b601b89dcb517496ba0bccf9bd0" prot="public" static="no"> <name>IP_ADDR6</name> <param><defname>ipaddr</defname></param> <param><defname>i0</defname></param> <param><defname>i1</defname></param> <param><defname>i2</defname></param> <param><defname>i3</defname></param> <initializer>IP6_ADDR(ipaddr,i0,i1,i2,i3)</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="302" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="302" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1abfb1ce44d6a8791336bf3ac06aa086ca" prot="public" static="no"> <name>IP_ADDR6_HOST</name> <param><defname>ipaddr</defname></param> <param><defname>i0</defname></param> <param><defname>i1</defname></param> <param><defname>i2</defname></param> <param><defname>i3</defname></param> <initializer><ref refid="ip__addr_8h_1a9ee53b601b89dcb517496ba0bccf9bd0" kindref="member">IP_ADDR6</ref>(ipaddr,<ref refid="def_8h_1afea9c21aa1f56180cdf6fb42ef14a294" kindref="member">PP_HTONL</ref>(i0),<ref refid="def_8h_1afea9c21aa1f56180cdf6fb42ef14a294" kindref="member">PP_HTONL</ref>(i1),<ref refid="def_8h_1afea9c21aa1f56180cdf6fb42ef14a294" kindref="member">PP_HTONL</ref>(i2),<ref refid="def_8h_1afea9c21aa1f56180cdf6fb42ef14a294" kindref="member">PP_HTONL</ref>(i3))</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="303" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="303" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1a008c9c92d770cc030ea054e6b259835a" prot="public" static="no"> <name>ip_addr_cmp</name> <param><defname>addr1</defname></param> <param><defname>addr2</defname></param> <initializer>ip6_addr_cmp(addr1, addr2)</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="316" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="316" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1a77a933975db287f6aa5c2e70249ba18f" prot="public" static="no"> <name>ip_addr_copy</name> <param><defname>dest</defname></param> <param><defname>src</defname></param> <initializer>ip6_addr_copy(dest, src)</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="305" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="305" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1abe6f7908ce8a91dc587e2ebc2172e651" prot="public" static="no"> <name>ip_addr_copy_from_ip6</name> <param><defname>dest</defname></param> <param><defname>src</defname></param> <initializer>ip6_addr_copy(dest, src)</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="306" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="306" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1af7d84bce2fb861a97f3047ecd69ab018" prot="public" static="no"> <name>ip_addr_debug_print</name> <param><defname>debug</defname></param> <param><defname>ipaddr</defname></param> <initializer>ip6_addr_debug_print(debug, ipaddr)</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="323" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="323" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1ac3d7eec8027db2203117e6f30df8fba5" prot="public" static="no"> <name>ip_addr_debug_print_val</name> <param><defname>debug</defname></param> <param><defname>ipaddr</defname></param> <initializer>ip6_addr_debug_print_val(debug, ipaddr)</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="324" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="324" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1a535520cd0a0d08a4c4c29b331c55830f" prot="public" static="no"> <name>ip_addr_get_network</name> <param><defname>target</defname></param> <param><defname>host</defname></param> <param><defname>mask</defname></param> <initializer>ip6_addr_set_zero(target)</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="314" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="314" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1a279118890e6a90aa740051fb8b0cc5f4" prot="public" static="no"> <name>ip_addr_isany</name> <param><defname>ipaddr</defname></param> <initializer>ip6_addr_isany(ipaddr)</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="317" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="317" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1acd8f5aa151cff966fd28368b85f38c05" prot="public" static="no"> <name>ip_addr_isany_val</name> <param><defname>ipaddr</defname></param> <initializer>ip6_addr_isany_val(ipaddr)</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="318" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="318" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1a11275b39f9b8e876e8124a16410e8840" prot="public" static="no"> <name>ip_addr_isbroadcast</name> <param><defname>addr</defname></param> <param><defname>netif</defname></param> <initializer>0</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="321" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="321" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1a33bc079baaf513a9a7381b9531a1f653" prot="public" static="no"> <name>ip_addr_islinklocal</name> <param><defname>ipaddr</defname></param> <initializer>ip6_addr_islinklocal(ipaddr)</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="320" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="320" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1a0fc8bf6662809274750868683b3a422e" prot="public" static="no"> <name>ip_addr_isloopback</name> <param><defname>ipaddr</defname></param> <initializer>ip6_addr_isloopback(ipaddr)</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="319" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="319" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1a2170d3ee13dd22722222228e7b1c5752" prot="public" static="no"> <name>ip_addr_ismulticast</name> <param><defname>ipaddr</defname></param> <initializer>ip6_addr_ismulticast(ipaddr)</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="322" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="322" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1a3a2123f0bbf6fe843c8542e349c680eb" prot="public" static="no"> <name>ip_addr_netcmp</name> <param><defname>addr1</defname></param> <param><defname>addr2</defname></param> <param><defname>mask</defname></param> <initializer>0</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="315" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="315" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1a234cb2e45cd58a80bc3ef433d23f4c57" prot="public" static="no"> <name>IP_ADDR_PCB_VERSION_MATCH</name> <param><defname>addr</defname></param> <param><defname>pcb</defname></param> <initializer>1</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="239" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="239" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1a81ed1fbe375d867d6e77c83976c07671" prot="public" static="no"> <name>IP_ADDR_PCB_VERSION_MATCH_EXACT</name> <param><defname>pcb</defname></param> <param><defname>ipaddr</defname></param> <initializer>1</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="240" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="240" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1a40db7feae2b92f7a7a01d65a85b06e18" prot="public" static="no"> <name>ip_addr_set</name> <param><defname>dest</defname></param> <param><defname>src</defname></param> <initializer>ip6_addr_set(dest, src)</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="307" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="307" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1a8853fce54b1816dca3af90b48677e673" prot="public" static="no"> <name>ip_addr_set_any</name> <param><defname>is_ipv6</defname></param> <param><defname>ipaddr</defname></param> <initializer>ip6_addr_set_any(ipaddr)</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="311" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="311" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1a3528798be1d2f1ec6a6bccd35694edce" prot="public" static="no"> <name>ip_addr_set_hton</name> <param><defname>dest</defname></param> <param><defname>src</defname></param> <initializer>ip6_addr_set_hton(dest, src)</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="313" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="313" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1aea5e4795598bc33fa2db1773c8e6fbac" prot="public" static="no"> <name>ip_addr_set_ipaddr</name> <param><defname>dest</defname></param> <param><defname>src</defname></param> <initializer>ip6_addr_set(dest, src)</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="308" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="308" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1a8f9d56ac85cd87338a1823e4a58ba1da" prot="public" static="no"> <name>ip_addr_set_loopback</name> <param><defname>is_ipv6</defname></param> <param><defname>ipaddr</defname></param> <initializer>ip6_addr_set_loopback(ipaddr)</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="312" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="312" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1aae7edb585c062ae03bfbd3af7bf671bc" prot="public" static="no"> <name>ip_addr_set_zero</name> <param><defname>ipaddr</defname></param> <initializer>ip6_addr_set_zero(ipaddr)</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="309" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="309" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1afb3a0e5241683aff573e195f31ba8845" prot="public" static="no"> <name>ip_addr_set_zero_ip6</name> <param><defname>ipaddr</defname></param> <initializer>ip6_addr_set_zero(ipaddr)</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="310" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="310" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1abe43b154533b73585c4e58f568370ede" prot="public" static="no"> <name>IP_ANY_TYPE</name> <initializer>IP_ADDR_ANY</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="400" column="10" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="400" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1aa2d07afd28376f89da2cdcf5d2497ce7" prot="public" static="no"> <name>IP_GET_TYPE</name> <param><defname>ipaddr</defname></param> <initializer><ref refid="group__ipaddr_1ggaf2142f0dfdcc938e2db16aa745ed585caae510fd8ec7fe405b594b57af61f9a02" kindref="member">IPADDR_TYPE_V6</ref></initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="300" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="300" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1a83b17dbf7d1faf5c8f8c20b039db8bb8" prot="public" static="no"> <name>IP_IS_ANY_TYPE_VAL</name> <param><defname>ipaddr</defname></param> <initializer>0</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="297" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="297" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1abee5dab2191bb0f3355d7f30d1496f24" prot="public" static="no"> <name>IP_IS_V4</name> <param><defname>ipaddr</defname></param> <initializer>0</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="295" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="295" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1ab1a059f07bd9c50aa58447d963b823a1" prot="public" static="no"> <name>IP_IS_V4_VAL</name> <param><defname>ipaddr</defname></param> <initializer>0</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="293" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="293" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1a9bac7e938757f1d24df2404e8b57cb7d" prot="public" static="no"> <name>IP_IS_V6</name> <param><defname>ipaddr</defname></param> <initializer>1</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="296" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="296" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1a1578e34703e86711a7fb7dcc3857004d" prot="public" static="no"> <name>IP_IS_V6_VAL</name> <param><defname>ipaddr</defname></param> <initializer>1</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="294" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="294" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1a4d435d88b2eaebaea1ef75ee586204fd" prot="public" static="no"> <name>IP_SET_TYPE</name> <param><defname>ipaddr</defname></param> <param><defname>iptype</defname></param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="299" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="299" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1aaa800ce1929a1bb0f3d64bebd44e4051" prot="public" static="no"> <name>IP_SET_TYPE_VAL</name> <param><defname>ipaddr</defname></param> <param><defname>iptype</defname></param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="298" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="298" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1a1266e500b1db0b7cdc4b269cace49746" prot="public" static="no"> <name>IPADDR6_INIT</name> <param><defname>a</defname></param> <param><defname>b</defname></param> <param><defname>c</defname></param> <param><defname>d</defname></param> <initializer>{ { a, b, c, d } }</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="291" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="291" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1adaff748da2b808995993dd3db5420f08" prot="public" static="no"> <name>IPADDR6_INIT_HOST</name> <param><defname>a</defname></param> <param><defname>b</defname></param> <param><defname>c</defname></param> <param><defname>d</defname></param> <initializer>{ { <ref refid="def_8h_1afea9c21aa1f56180cdf6fb42ef14a294" kindref="member">PP_HTONL</ref>(a), <ref refid="def_8h_1afea9c21aa1f56180cdf6fb42ef14a294" kindref="member">PP_HTONL</ref>(b), <ref refid="def_8h_1afea9c21aa1f56180cdf6fb42ef14a294" kindref="member">PP_HTONL</ref>(c), <ref refid="def_8h_1afea9c21aa1f56180cdf6fb42ef14a294" kindref="member">PP_HTONL</ref>(d) } }</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="292" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="292" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1a9b9fae6ad88a288c3c6da050644e2a48" prot="public" static="no"> <name>ipaddr_aton</name> <param><defname>cp</defname></param> <param><defname>addr</defname></param> <initializer>ip6addr_aton(cp, addr)</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="327" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="327" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1ad345f630acbf2a01536d10d3aacee04f" prot="public" static="no"> <name>ipaddr_ntoa</name> <param><defname>ipaddr</defname></param> <initializer>ip6addr_ntoa(ipaddr)</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="325" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="325" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1ac5a2215f804102c72f59dcdf1ccf6449" prot="public" static="no"> <name>ipaddr_ntoa_r</name> <param><defname>ipaddr</defname></param> <param><defname>buf</defname></param> <param><defname>buflen</defname></param> <initializer>ip6addr_ntoa_r(ipaddr, <ref refid="structbuf" kindref="compound">buf</ref>, buflen)</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="326" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="326" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ip__addr_8h_1a8619278bcbf705844f584f36972fc758" prot="public" static="no"> <name>IPADDR_STRLEN_MAX</name> <initializer>IP6ADDR_STRLEN_MAX</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="329" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="329" bodyend="-1"/> </memberdef> </sectiondef> <sectiondef kind="enum"> <memberdef kind="enum" id="group__ipaddr_1gaf2142f0dfdcc938e2db16aa745ed585c" prot="public" static="no" strong="no"> <type></type> <name>lwip_ip_addr_type</name> <enumvalue id="group__ipaddr_1ggaf2142f0dfdcc938e2db16aa745ed585cace47fa82608deeb1c1c7c2c891eb5049" prot="public"> <name>IPADDR_TYPE_V4</name> <initializer>= 0U</initializer> <briefdescription> </briefdescription> <detaileddescription> <para>IPv4 </para> </detaileddescription> </enumvalue> <enumvalue id="group__ipaddr_1ggaf2142f0dfdcc938e2db16aa745ed585caae510fd8ec7fe405b594b57af61f9a02" prot="public"> <name>IPADDR_TYPE_V6</name> <initializer>= 6U</initializer> <briefdescription> </briefdescription> <detaileddescription> <para>IPv6 </para> </detaileddescription> </enumvalue> <enumvalue id="group__ipaddr_1ggaf2142f0dfdcc938e2db16aa745ed585cac6b2c99cf920e08efcb55dc40e42944e" prot="public"> <name>IPADDR_TYPE_ANY</name> <initializer>= 46U</initializer> <briefdescription> </briefdescription> <detaileddescription> <para>IPv4+IPv6 ("dual-stack") </para> </detaileddescription> </enumvalue> <briefdescription> </briefdescription> <detaileddescription> <para>IP address types for use in ip_addr_t.type member. <simplesect kind="see"><para>tcp_new_ip_type(), udp_new_ip_type(), raw_new_ip_type(). </para> </simplesect> </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="54" column="23" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="54" bodyend="61"/> </memberdef> </sectiondef> <sectiondef kind="typedef"> <memberdef kind="typedef" id="ip__addr_8h_1a88b43639738c4de2d3cd22e3a1fd7696" prot="public" static="no"> <type>ip6_addr_t</type> <definition>typedef ip6_addr_t ip_addr_t</definition> <argsstring></argsstring> <name>ip_addr_t</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" line="290" column="20" bodyfile="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h" bodystart="290" bodyend="-1"/> </memberdef> </sectiondef> <briefdescription> </briefdescription> <detaileddescription> <para>IP address API (common IPv4 and IPv6) </para> </detaileddescription> <programlisting> <codeline lineno="1"></codeline> <codeline lineno="6"><highlight class="comment">/*</highlight></codeline> <codeline lineno="7"><highlight class="comment"><sp/>*<sp/>Copyright<sp/>(c)<sp/>2001-2004<sp/>Swedish<sp/>Institute<sp/>of<sp/>Computer<sp/>Science.</highlight></codeline> <codeline lineno="8"><highlight class="comment"><sp/>*<sp/>All<sp/>rights<sp/>reserved.</highlight></codeline> <codeline lineno="9"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="10"><highlight class="comment"><sp/>*<sp/>Redistribution<sp/>and<sp/>use<sp/>in<sp/>source<sp/>and<sp/>binary<sp/>forms,<sp/>with<sp/>or<sp/>without<sp/>modification,</highlight></codeline> <codeline lineno="11"><highlight class="comment"><sp/>*<sp/>are<sp/>permitted<sp/>provided<sp/>that<sp/>the<sp/>following<sp/>conditions<sp/>are<sp/>met:</highlight></codeline> <codeline lineno="12"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="13"><highlight class="comment"><sp/>*<sp/>1.<sp/>Redistributions<sp/>of<sp/>source<sp/>code<sp/>must<sp/>retain<sp/>the<sp/>above<sp/>copyright<sp/>notice,</highlight></codeline> <codeline lineno="14"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>this<sp/>list<sp/>of<sp/>conditions<sp/>and<sp/>the<sp/>following<sp/>disclaimer.</highlight></codeline> <codeline lineno="15"><highlight class="comment"><sp/>*<sp/>2.<sp/>Redistributions<sp/>in<sp/>binary<sp/>form<sp/>must<sp/>reproduce<sp/>the<sp/>above<sp/>copyright<sp/>notice,</highlight></codeline> <codeline lineno="16"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>this<sp/>list<sp/>of<sp/>conditions<sp/>and<sp/>the<sp/>following<sp/>disclaimer<sp/>in<sp/>the<sp/>documentation</highlight></codeline> <codeline lineno="17"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>and/or<sp/>other<sp/>materials<sp/>provided<sp/>with<sp/>the<sp/>distribution.</highlight></codeline> <codeline lineno="18"><highlight class="comment"><sp/>*<sp/>3.<sp/>The<sp/>name<sp/>of<sp/>the<sp/>author<sp/>may<sp/>not<sp/>be<sp/>used<sp/>to<sp/>endorse<sp/>or<sp/>promote<sp/>products</highlight></codeline> <codeline lineno="19"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>derived<sp/>from<sp/>this<sp/>software<sp/>without<sp/>specific<sp/>prior<sp/>written<sp/>permission.</highlight></codeline> <codeline lineno="20"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="21"><highlight class="comment"><sp/>*<sp/>THIS<sp/>SOFTWARE<sp/>IS<sp/>PROVIDED<sp/>BY<sp/>THE<sp/>AUTHOR<sp/>``AS<sp/>IS''<sp/>AND<sp/>ANY<sp/>EXPRESS<sp/>OR<sp/>IMPLIED</highlight></codeline> <codeline lineno="22"><highlight class="comment"><sp/>*<sp/>WARRANTIES,<sp/>INCLUDING,<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO,<sp/>THE<sp/>IMPLIED<sp/>WARRANTIES<sp/>OF</highlight></codeline> <codeline lineno="23"><highlight class="comment"><sp/>*<sp/>MERCHANTABILITY<sp/>AND<sp/>FITNESS<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE<sp/>ARE<sp/>DISCLAIMED.<sp/>IN<sp/>NO<sp/>EVENT</highlight></codeline> <codeline lineno="24"><highlight class="comment"><sp/>*<sp/>SHALL<sp/>THE<sp/>AUTHOR<sp/>BE<sp/>LIABLE<sp/>FOR<sp/>ANY<sp/>DIRECT,<sp/>INDIRECT,<sp/>INCIDENTAL,<sp/>SPECIAL,</highlight></codeline> <codeline lineno="25"><highlight class="comment"><sp/>*<sp/>EXEMPLARY,<sp/>OR<sp/>CONSEQUENTIAL<sp/>DAMAGES<sp/>(INCLUDING,<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO,<sp/>PROCUREMENT</highlight></codeline> <codeline lineno="26"><highlight class="comment"><sp/>*<sp/>OF<sp/>SUBSTITUTE<sp/>GOODS<sp/>OR<sp/>SERVICES;<sp/>LOSS<sp/>OF<sp/>USE,<sp/>DATA,<sp/>OR<sp/>PROFITS;<sp/>OR<sp/>BUSINESS</highlight></codeline> <codeline lineno="27"><highlight class="comment"><sp/>*<sp/>INTERRUPTION)<sp/>HOWEVER<sp/>CAUSED<sp/>AND<sp/>ON<sp/>ANY<sp/>THEORY<sp/>OF<sp/>LIABILITY,<sp/>WHETHER<sp/>IN</highlight></codeline> <codeline lineno="28"><highlight class="comment"><sp/>*<sp/>CONTRACT,<sp/>STRICT<sp/>LIABILITY,<sp/>OR<sp/>TORT<sp/>(INCLUDING<sp/>NEGLIGENCE<sp/>OR<sp/>OTHERWISE)<sp/>ARISING</highlight></codeline> <codeline lineno="29"><highlight class="comment"><sp/>*<sp/>IN<sp/>ANY<sp/>WAY<sp/>OUT<sp/>OF<sp/>THE<sp/>USE<sp/>OF<sp/>THIS<sp/>SOFTWARE,<sp/>EVEN<sp/>IF<sp/>ADVISED<sp/>OF<sp/>THE<sp/>POSSIBILITY</highlight></codeline> <codeline lineno="30"><highlight class="comment"><sp/>*<sp/>OF<sp/>SUCH<sp/>DAMAGE.</highlight></codeline> <codeline lineno="31"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="32"><highlight class="comment"><sp/>*<sp/>This<sp/>file<sp/>is<sp/>part<sp/>of<sp/>the<sp/>lwIP<sp/>TCP/IP<sp/>stack.</highlight></codeline> <codeline lineno="33"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="34"><highlight class="comment"><sp/>*<sp/>Author:<sp/>Adam<sp/>Dunkels<sp/><adam@sics.se></highlight></codeline> <codeline lineno="35"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="36"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="37"><highlight class="normal"></highlight><highlight class="preprocessor">#ifndef<sp/>LWIP_HDR_IP_ADDR_H</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="38"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>LWIP_HDR_IP_ADDR_H</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="39"><highlight class="normal"></highlight></codeline> <codeline lineno="40"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="opt_8h" kindref="compound">net/opt.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="41"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="def_8h" kindref="compound">net/def.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="42"><highlight class="normal"></highlight></codeline> <codeline lineno="43"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="ip4__addr_8h" kindref="compound">net/ip4_addr.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="44"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="ip6__addr_8h" kindref="compound">net/ip6_addr.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="45"><highlight class="normal"></highlight></codeline> <codeline lineno="46"><highlight class="normal"></highlight><highlight class="preprocessor">#ifdef<sp/>__cplusplus</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="47"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="stringliteral">"C"</highlight><highlight class="normal"><sp/>{</highlight></codeline> <codeline lineno="48"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="49"><highlight class="normal"></highlight></codeline> <codeline lineno="54" refid="group__ipaddr_1gaf2142f0dfdcc938e2db16aa745ed585c" refkind="member"><highlight class="keyword">enum</highlight><highlight class="normal"><sp/><ref refid="group__ipaddr_1gaf2142f0dfdcc938e2db16aa745ed585c" kindref="member">lwip_ip_addr_type</ref><sp/>{</highlight></codeline> <codeline lineno="56" refid="group__ipaddr_1ggaf2142f0dfdcc938e2db16aa745ed585cace47fa82608deeb1c1c7c2c891eb5049" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="group__ipaddr_1ggaf2142f0dfdcc938e2db16aa745ed585cace47fa82608deeb1c1c7c2c891eb5049" kindref="member">IPADDR_TYPE_V4</ref><sp/>=<sp/><sp/><sp/>0U,</highlight></codeline> <codeline lineno="58" refid="group__ipaddr_1ggaf2142f0dfdcc938e2db16aa745ed585caae510fd8ec7fe405b594b57af61f9a02" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="group__ipaddr_1ggaf2142f0dfdcc938e2db16aa745ed585caae510fd8ec7fe405b594b57af61f9a02" kindref="member">IPADDR_TYPE_V6</ref><sp/>=<sp/><sp/><sp/>6U,</highlight></codeline> <codeline lineno="60" refid="group__ipaddr_1ggaf2142f0dfdcc938e2db16aa745ed585cac6b2c99cf920e08efcb55dc40e42944e" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="group__ipaddr_1ggaf2142f0dfdcc938e2db16aa745ed585cac6b2c99cf920e08efcb55dc40e42944e" kindref="member">IPADDR_TYPE_ANY</ref><sp/>=<sp/>46U</highlight></codeline> <codeline lineno="61"><highlight class="normal">};</highlight></codeline> <codeline lineno="62"><highlight class="normal"></highlight></codeline> <codeline lineno="63"><highlight class="normal"></highlight><highlight class="preprocessor">#if<sp/>LWIP_IPV4<sp/>&&<sp/>LWIP_IPV6</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="64"><highlight class="normal"></highlight></codeline> <codeline lineno="69"><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">ip_addr<sp/>{</highlight></codeline> <codeline lineno="70"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">union<sp/></highlight><highlight class="normal">{</highlight></codeline> <codeline lineno="71"><highlight class="normal"><sp/><sp/><sp/><sp/>ip6_addr_t<sp/>ip6;</highlight></codeline> <codeline lineno="72"><highlight class="normal"><sp/><sp/><sp/><sp/>ip4_addr_t<sp/>ip4;</highlight></codeline> <codeline lineno="73"><highlight class="normal"><sp/><sp/>}<sp/>u_addr;</highlight></codeline> <codeline lineno="75"><highlight class="normal"><sp/><sp/><ref refid="group__compiler__abstraction_1ga4caecabca98b43919dd11be1c0d4cd8e" kindref="member">u8_t</ref><sp/>type;</highlight></codeline> <codeline lineno="76"><highlight class="normal">}<sp/><ref refid="ip__addr_8h_1a88b43639738c4de2d3cd22e3a1fd7696" kindref="member">ip_addr_t</ref>;</highlight></codeline> <codeline lineno="77"><highlight class="normal"></highlight></codeline> <codeline lineno="78"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="ip__addr_8h_1a88b43639738c4de2d3cd22e3a1fd7696" kindref="member">ip_addr_t</ref><sp/>ip_addr_any_type;</highlight></codeline> <codeline lineno="79"><highlight class="normal"></highlight></codeline> <codeline lineno="81"><highlight class="preprocessor">#define<sp/>IPADDR4_INIT(u32val)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/>{<sp/>{<sp/>{<sp/>u32val,<sp/>0ul,<sp/>0ul,<sp/>0ul<sp/>}<sp/>}<sp/>},<sp/>IPADDR_TYPE_V4<sp/>}</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="82"><highlight class="normal"></highlight></codeline> <codeline lineno="83"><highlight class="preprocessor">#define<sp/>IPADDR4_INIT_BYTES(a,b,c,d)<sp/><sp/><sp/>IPADDR4_INIT(PP_HTONL(LWIP_MAKEU32(a,b,c,d)))</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="84"><highlight class="normal"></highlight></codeline> <codeline lineno="85"><highlight class="preprocessor">#define<sp/>IPADDR6_INIT(a,<sp/>b,<sp/>c,<sp/>d)<sp/><sp/><sp/><sp/><sp/><sp/>{<sp/>{<sp/>{<sp/>{<sp/>a,<sp/>b,<sp/>c,<sp/>d<sp/>}<sp/>}<sp/>},<sp/>IPADDR_TYPE_V6<sp/>}</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="86"><highlight class="normal"></highlight></codeline> <codeline lineno="87"><highlight class="preprocessor">#define<sp/>IPADDR6_INIT_HOST(a,<sp/>b,<sp/>c,<sp/>d)<sp/>{<sp/>{<sp/>{<sp/>{<sp/>PP_HTONL(a),<sp/>PP_HTONL(b),<sp/>PP_HTONL(c),<sp/>PP_HTONL(d)<sp/>}<sp/>}<sp/>},<sp/>IPADDR_TYPE_V6<sp/>}</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="88"><highlight class="normal"></highlight></codeline> <codeline lineno="90"><highlight class="preprocessor">#define<sp/>IP_IS_ANY_TYPE_VAL(ipaddr)<sp/><sp/><sp/><sp/>(IP_GET_TYPE(&ipaddr)<sp/>==<sp/>IPADDR_TYPE_ANY)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="91"><highlight class="normal"></highlight></codeline> <codeline lineno="92"><highlight class="preprocessor">#define<sp/>IPADDR_ANY_TYPE_INIT<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/>{<sp/>{<sp/>{<sp/>0ul,<sp/>0ul,<sp/>0ul,<sp/>0ul<sp/>}<sp/>}<sp/>},<sp/>IPADDR_TYPE_ANY<sp/>}</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="93"><highlight class="normal"></highlight></codeline> <codeline lineno="95"><highlight class="preprocessor">#define<sp/>IP_IS_V4_VAL(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(IP_GET_TYPE(&ipaddr)<sp/>==<sp/>IPADDR_TYPE_V4)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="96"><highlight class="normal"></highlight></codeline> <codeline lineno="97"><highlight class="preprocessor">#define<sp/>IP_IS_V6_VAL(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(IP_GET_TYPE(&ipaddr)<sp/>==<sp/>IPADDR_TYPE_V6)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="98"><highlight class="normal"></highlight></codeline> <codeline lineno="99"><highlight class="preprocessor">#define<sp/>IP_IS_V4(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(((ipaddr)<sp/>==<sp/>NULL)<sp/>||<sp/>IP_IS_V4_VAL(*(ipaddr)))</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="100"><highlight class="normal"></highlight></codeline> <codeline lineno="101"><highlight class="preprocessor">#define<sp/>IP_IS_V6(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(((ipaddr)<sp/>!=<sp/>NULL)<sp/>&&<sp/>IP_IS_V6_VAL(*(ipaddr)))</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="102"><highlight class="normal"></highlight></codeline> <codeline lineno="103"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_SET_TYPE_VAL(ipaddr,<sp/>iptype)<sp/>do<sp/>{<sp/>(ipaddr).type<sp/>=<sp/>(iptype);<sp/>}while(0)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="104"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_SET_TYPE(ipaddr,<sp/>iptype)<sp/><sp/><sp/><sp/><sp/>do<sp/>{<sp/>if((ipaddr)<sp/>!=<sp/>NULL)<sp/>{<sp/>IP_SET_TYPE_VAL(*(ipaddr),<sp/>iptype);<sp/>}}while(0)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="105"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_GET_TYPE(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>((ipaddr)->type)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="106"><highlight class="normal"></highlight></codeline> <codeline lineno="107"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_ADDR_PCB_VERSION_MATCH_EXACT(pcb,<sp/>ipaddr)<sp/>(IP_GET_TYPE(&pcb->local_ip)<sp/>==<sp/>IP_GET_TYPE(ipaddr))</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="108"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_ADDR_PCB_VERSION_MATCH(pcb,<sp/>ipaddr)<sp/>(IP_IS_ANY_TYPE_VAL(pcb->local_ip)<sp/>||<sp/>IP_ADDR_PCB_VERSION_MATCH_EXACT(pcb,<sp/>ipaddr))</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="109"><highlight class="normal"></highlight></codeline> <codeline lineno="113"><highlight class="preprocessor">#define<sp/>ip_2_ip6(ipaddr)<sp/><sp/><sp/>(&((ipaddr)->u_addr.ip6))</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="114"><highlight class="normal"></highlight></codeline> <codeline lineno="117"><highlight class="preprocessor">#define<sp/>ip_2_ip4(ipaddr)<sp/><sp/><sp/>(&((ipaddr)->u_addr.ip4))</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="118"><highlight class="normal"></highlight></codeline> <codeline lineno="120"><highlight class="preprocessor">#define<sp/>IP_ADDR4(ipaddr,a,b,c,d)<sp/><sp/><sp/><sp/><sp/><sp/>do<sp/>{<sp/>IP4_ADDR(ip_2_ip4(ipaddr),a,b,c,d);<sp/>\</highlight></codeline> <codeline lineno="121"><highlight class="preprocessor"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>IP_SET_TYPE_VAL(*(ipaddr),<sp/>IPADDR_TYPE_V4);<sp/>}<sp/>while(0)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="122"><highlight class="normal"></highlight></codeline> <codeline lineno="123"><highlight class="preprocessor">#define<sp/>IP_ADDR6(ipaddr,i0,i1,i2,i3)<sp/><sp/>do<sp/>{<sp/>IP6_ADDR(ip_2_ip6(ipaddr),i0,i1,i2,i3);<sp/>\</highlight></codeline> <codeline lineno="124"><highlight class="preprocessor"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>IP_SET_TYPE_VAL(*(ipaddr),<sp/>IPADDR_TYPE_V6);<sp/>}<sp/>while(0)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="125"><highlight class="normal"></highlight></codeline> <codeline lineno="126"><highlight class="preprocessor">#define<sp/>IP_ADDR6_HOST(ipaddr,i0,i1,i2,i3)<sp/><sp/>IP_ADDR6(ipaddr,PP_HTONL(i0),PP_HTONL(i1),PP_HTONL(i2),PP_HTONL(i3))</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="127"><highlight class="normal"></highlight></codeline> <codeline lineno="129"><highlight class="preprocessor">#define<sp/>ip_addr_copy(dest,<sp/>src)<sp/><sp/><sp/><sp/><sp/><sp/>do{<sp/>IP_SET_TYPE_VAL(dest,<sp/>IP_GET_TYPE(&src));<sp/>if(IP_IS_V6_VAL(src)){<sp/>\</highlight></codeline> <codeline lineno="130"><highlight class="preprocessor"><sp/><sp/>ip6_addr_copy(*ip_2_ip6(&(dest)),<sp/>*ip_2_ip6(&(src)));<sp/>}else{<sp/>\</highlight></codeline> <codeline lineno="131"><highlight class="preprocessor"><sp/><sp/>ip4_addr_copy(*ip_2_ip4(&(dest)),<sp/>*ip_2_ip4(&(src)));<sp/>}}while(0)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="132"><highlight class="normal"></highlight></codeline> <codeline lineno="133"><highlight class="preprocessor">#define<sp/>ip_addr_copy_from_ip6(dest,<sp/>src)<sp/><sp/><sp/><sp/><sp/><sp/>do{<sp/>\</highlight></codeline> <codeline lineno="134"><highlight class="preprocessor"><sp/><sp/>ip6_addr_copy(*ip_2_ip6(&(dest)),<sp/>src);<sp/>IP_SET_TYPE_VAL(dest,<sp/>IPADDR_TYPE_V6);<sp/>}while(0)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="135"><highlight class="normal"></highlight></codeline> <codeline lineno="136"><highlight class="preprocessor">#define<sp/>ip_addr_copy_from_ip4(dest,<sp/>src)<sp/><sp/><sp/><sp/><sp/><sp/>do{<sp/>\</highlight></codeline> <codeline lineno="137"><highlight class="preprocessor"><sp/><sp/>ip4_addr_copy(*ip_2_ip4(&(dest)),<sp/>src);<sp/>IP_SET_TYPE_VAL(dest,<sp/>IPADDR_TYPE_V4);<sp/>}while(0)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="138"><highlight class="normal"></highlight></codeline> <codeline lineno="139"><highlight class="preprocessor">#define<sp/>ip_addr_set_ip4_u32(ipaddr,<sp/>val)<sp/><sp/>do{if(ipaddr){ip4_addr_set_u32(ip_2_ip4(ipaddr),<sp/>val);<sp/>\</highlight></codeline> <codeline lineno="140"><highlight class="preprocessor"><sp/><sp/>IP_SET_TYPE(ipaddr,<sp/>IPADDR_TYPE_V4);<sp/>}}while(0)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="141"><highlight class="normal"></highlight></codeline> <codeline lineno="142"><highlight class="preprocessor">#define<sp/>ip_addr_get_ip4_u32(ipaddr)<sp/><sp/>(((ipaddr)<sp/>&&<sp/>IP_IS_V4(ipaddr))<sp/>?<sp/>\</highlight></codeline> <codeline lineno="143"><highlight class="preprocessor"><sp/><sp/>ip4_addr_get_u32(ip_2_ip4(ipaddr))<sp/>:<sp/>0)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="144"><highlight class="normal"></highlight></codeline> <codeline lineno="145"><highlight class="preprocessor">#define<sp/>ip_addr_set(dest,<sp/>src)<sp/>do{<sp/>IP_SET_TYPE(dest,<sp/>IP_GET_TYPE(src));<sp/>if(IP_IS_V6(src)){<sp/>\</highlight></codeline> <codeline lineno="146"><highlight class="preprocessor"><sp/><sp/>ip6_addr_set(ip_2_ip6(dest),<sp/>ip_2_ip6(src));<sp/>}else{<sp/>\</highlight></codeline> <codeline lineno="147"><highlight class="preprocessor"><sp/><sp/>ip4_addr_set(ip_2_ip4(dest),<sp/>ip_2_ip4(src));<sp/>}}while(0)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="148"><highlight class="normal"></highlight></codeline> <codeline lineno="149"><highlight class="preprocessor">#define<sp/>ip_addr_set_ipaddr(dest,<sp/>src)<sp/>ip_addr_set(dest,<sp/>src)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="150"><highlight class="normal"></highlight></codeline> <codeline lineno="151"><highlight class="preprocessor">#define<sp/>ip_addr_set_zero(ipaddr)<sp/><sp/><sp/><sp/><sp/>do{<sp/>\</highlight></codeline> <codeline lineno="152"><highlight class="preprocessor"><sp/><sp/>ip6_addr_set_zero(ip_2_ip6(ipaddr));<sp/>IP_SET_TYPE(ipaddr,<sp/>0);<sp/>}while(0)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="153"><highlight class="normal"></highlight></codeline> <codeline lineno="154"><highlight class="preprocessor">#define<sp/>ip_addr_set_zero_ip4(ipaddr)<sp/><sp/><sp/><sp/><sp/>do{<sp/>\</highlight></codeline> <codeline lineno="155"><highlight class="preprocessor"><sp/><sp/>ip6_addr_set_zero(ip_2_ip6(ipaddr));<sp/>IP_SET_TYPE(ipaddr,<sp/>IPADDR_TYPE_V4);<sp/>}while(0)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="156"><highlight class="normal"></highlight></codeline> <codeline lineno="157"><highlight class="preprocessor">#define<sp/>ip_addr_set_zero_ip6(ipaddr)<sp/><sp/><sp/><sp/><sp/>do{<sp/>\</highlight></codeline> <codeline lineno="158"><highlight class="preprocessor"><sp/><sp/>ip6_addr_set_zero(ip_2_ip6(ipaddr));<sp/>IP_SET_TYPE(ipaddr,<sp/>IPADDR_TYPE_V6);<sp/>}while(0)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="159"><highlight class="normal"></highlight></codeline> <codeline lineno="160"><highlight class="preprocessor">#define<sp/>ip_addr_set_any(is_ipv6,<sp/>ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/>do{if(is_ipv6){<sp/>\</highlight></codeline> <codeline lineno="161"><highlight class="preprocessor"><sp/><sp/>ip6_addr_set_any(ip_2_ip6(ipaddr));<sp/>IP_SET_TYPE(ipaddr,<sp/>IPADDR_TYPE_V6);<sp/>}else{<sp/>\</highlight></codeline> <codeline lineno="162"><highlight class="preprocessor"><sp/><sp/>ip4_addr_set_any(ip_2_ip4(ipaddr));<sp/>IP_SET_TYPE(ipaddr,<sp/>IPADDR_TYPE_V4);<sp/>}}while(0)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="163"><highlight class="normal"></highlight></codeline> <codeline lineno="164"><highlight class="preprocessor">#define<sp/>ip_addr_set_loopback(is_ipv6,<sp/>ipaddr)<sp/>do{if(is_ipv6){<sp/>\</highlight></codeline> <codeline lineno="165"><highlight class="preprocessor"><sp/><sp/>ip6_addr_set_loopback(ip_2_ip6(ipaddr));<sp/>IP_SET_TYPE(ipaddr,<sp/>IPADDR_TYPE_V6);<sp/>}else{<sp/>\</highlight></codeline> <codeline lineno="166"><highlight class="preprocessor"><sp/><sp/>ip4_addr_set_loopback(ip_2_ip4(ipaddr));<sp/>IP_SET_TYPE(ipaddr,<sp/>IPADDR_TYPE_V4);<sp/>}}while(0)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="167"><highlight class="normal"></highlight></codeline> <codeline lineno="168"><highlight class="preprocessor">#define<sp/>ip_addr_set_hton(dest,<sp/>src)<sp/><sp/>do{if(IP_IS_V6(src)){<sp/>\</highlight></codeline> <codeline lineno="169"><highlight class="preprocessor"><sp/><sp/>ip6_addr_set_hton(ip_2_ip6(ipaddr),<sp/>(src));<sp/>IP_SET_TYPE(dest,<sp/>IPADDR_TYPE_V6);<sp/>}else{<sp/>\</highlight></codeline> <codeline lineno="170"><highlight class="preprocessor"><sp/><sp/>ip4_addr_set_hton(ip_2_ip4(ipaddr),<sp/>(src));<sp/>IP_SET_TYPE(dest,<sp/>IPADDR_TYPE_V4);<sp/>}}while(0)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="171"><highlight class="normal"></highlight></codeline> <codeline lineno="172"><highlight class="preprocessor">#define<sp/>ip_addr_get_network(target,<sp/>host,<sp/>netmask)<sp/>do{if(IP_IS_V6(host)){<sp/>\</highlight></codeline> <codeline lineno="173"><highlight class="preprocessor"><sp/><sp/>ip4_addr_set_zero(ip_2_ip4(target));<sp/>IP_SET_TYPE(target,<sp/>IPADDR_TYPE_V6);<sp/>}<sp/>else<sp/>{<sp/>\</highlight></codeline> <codeline lineno="174"><highlight class="preprocessor"><sp/><sp/>ip4_addr_get_network(ip_2_ip4(target),<sp/>ip_2_ip4(host),<sp/>ip_2_ip4(netmask));<sp/>IP_SET_TYPE(target,<sp/>IPADDR_TYPE_V4);<sp/>}}while(0)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="175"><highlight class="normal"></highlight></codeline> <codeline lineno="176"><highlight class="preprocessor">#define<sp/>ip_addr_netcmp(addr1,<sp/>addr2,<sp/>mask)<sp/>((IP_IS_V6(addr1)<sp/>&&<sp/>IP_IS_V6(addr2))<sp/>?<sp/>\</highlight></codeline> <codeline lineno="177"><highlight class="preprocessor"><sp/><sp/>0<sp/>:<sp/>\</highlight></codeline> <codeline lineno="178"><highlight class="preprocessor"><sp/><sp/>ip4_addr_netcmp(ip_2_ip4(addr1),<sp/>ip_2_ip4(addr2),<sp/>mask))</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="179"><highlight class="normal"></highlight></codeline> <codeline lineno="180"><highlight class="preprocessor">#define<sp/>ip_addr_cmp(addr1,<sp/>addr2)<sp/><sp/><sp/><sp/>((IP_GET_TYPE(addr1)<sp/>!=<sp/>IP_GET_TYPE(addr2))<sp/>?<sp/>0<sp/>:<sp/>(IP_IS_V6_VAL(*(addr1))<sp/>?<sp/>\</highlight></codeline> <codeline lineno="181"><highlight class="preprocessor"><sp/><sp/>ip6_addr_cmp(ip_2_ip6(addr1),<sp/>ip_2_ip6(addr2))<sp/>:<sp/>\</highlight></codeline> <codeline lineno="182"><highlight class="preprocessor"><sp/><sp/>ip4_addr_cmp(ip_2_ip4(addr1),<sp/>ip_2_ip4(addr2))))</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="183"><highlight class="normal"></highlight></codeline> <codeline lineno="184"><highlight class="preprocessor">#define<sp/>ip_addr_isany(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>((IP_IS_V6(ipaddr))<sp/>?<sp/>\</highlight></codeline> <codeline lineno="185"><highlight class="preprocessor"><sp/><sp/>ip6_addr_isany(ip_2_ip6(ipaddr))<sp/>:<sp/>\</highlight></codeline> <codeline lineno="186"><highlight class="preprocessor"><sp/><sp/>ip4_addr_isany(ip_2_ip4(ipaddr)))</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="187"><highlight class="normal"></highlight></codeline> <codeline lineno="188"><highlight class="preprocessor">#define<sp/>ip_addr_isany_val(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>((IP_IS_V6_VAL(ipaddr))<sp/>?<sp/>\</highlight></codeline> <codeline lineno="189"><highlight class="preprocessor"><sp/><sp/>ip6_addr_isany_val(*ip_2_ip6(&(ipaddr)))<sp/>:<sp/>\</highlight></codeline> <codeline lineno="190"><highlight class="preprocessor"><sp/><sp/>ip4_addr_isany_val(*ip_2_ip4(&(ipaddr))))</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="191"><highlight class="normal"></highlight></codeline> <codeline lineno="192"><highlight class="preprocessor">#define<sp/>ip_addr_isbroadcast(ipaddr,<sp/>netif)<sp/>((IP_IS_V6(ipaddr))<sp/>?<sp/>\</highlight></codeline> <codeline lineno="193"><highlight class="preprocessor"><sp/><sp/>0<sp/>:<sp/>\</highlight></codeline> <codeline lineno="194"><highlight class="preprocessor"><sp/><sp/>ip4_addr_isbroadcast(ip_2_ip4(ipaddr),<sp/>netif))</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="195"><highlight class="normal"></highlight></codeline> <codeline lineno="196"><highlight class="preprocessor">#define<sp/>ip_addr_ismulticast(ipaddr)<sp/><sp/>((IP_IS_V6(ipaddr))<sp/>?<sp/>\</highlight></codeline> <codeline lineno="197"><highlight class="preprocessor"><sp/><sp/>ip6_addr_ismulticast(ip_2_ip6(ipaddr))<sp/>:<sp/>\</highlight></codeline> <codeline lineno="198"><highlight class="preprocessor"><sp/><sp/>ip4_addr_ismulticast(ip_2_ip4(ipaddr)))</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="199"><highlight class="normal"></highlight></codeline> <codeline lineno="200"><highlight class="preprocessor">#define<sp/>ip_addr_isloopback(ipaddr)<sp/><sp/>((IP_IS_V6(ipaddr))<sp/>?<sp/>\</highlight></codeline> <codeline lineno="201"><highlight class="preprocessor"><sp/><sp/>ip6_addr_isloopback(ip_2_ip6(ipaddr))<sp/>:<sp/>\</highlight></codeline> <codeline lineno="202"><highlight class="preprocessor"><sp/><sp/>ip4_addr_isloopback(ip_2_ip4(ipaddr)))</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="203"><highlight class="normal"></highlight></codeline> <codeline lineno="204"><highlight class="preprocessor">#define<sp/>ip_addr_islinklocal(ipaddr)<sp/><sp/>((IP_IS_V6(ipaddr))<sp/>?<sp/>\</highlight></codeline> <codeline lineno="205"><highlight class="preprocessor"><sp/><sp/>ip6_addr_islinklocal(ip_2_ip6(ipaddr))<sp/>:<sp/>\</highlight></codeline> <codeline lineno="206"><highlight class="preprocessor"><sp/><sp/>ip4_addr_islinklocal(ip_2_ip4(ipaddr)))</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="207"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_debug_print(debug,<sp/>ipaddr)<sp/>do<sp/>{<sp/>if(IP_IS_V6(ipaddr))<sp/>{<sp/>\</highlight></codeline> <codeline lineno="208"><highlight class="preprocessor"><sp/><sp/>ip6_addr_debug_print(debug,<sp/>ip_2_ip6(ipaddr));<sp/>}<sp/>else<sp/>{<sp/>\</highlight></codeline> <codeline lineno="209"><highlight class="preprocessor"><sp/><sp/>ip4_addr_debug_print(debug,<sp/>ip_2_ip4(ipaddr));<sp/>}}while(0)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="210"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_debug_print_val(debug,<sp/>ipaddr)<sp/>do<sp/>{<sp/>if(IP_IS_V6_VAL(ipaddr))<sp/>{<sp/>\</highlight></codeline> <codeline lineno="211"><highlight class="preprocessor"><sp/><sp/>ip6_addr_debug_print_val(debug,<sp/>*ip_2_ip6(&(ipaddr)));<sp/>}<sp/>else<sp/>{<sp/>\</highlight></codeline> <codeline lineno="212"><highlight class="preprocessor"><sp/><sp/>ip4_addr_debug_print_val(debug,<sp/>*ip_2_ip4(&(ipaddr)));<sp/>}}while(0)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="213"><highlight class="normal"></highlight></codeline> <codeline lineno="214"><highlight class="preprocessor">#define<sp/>ipaddr_ntoa(addr)<sp/><sp/><sp/>(((addr)<sp/>==<sp/>NULL)<sp/>?<sp/>"NULL"<sp/>:<sp/>\</highlight></codeline> <codeline lineno="215"><highlight class="preprocessor"><sp/><sp/>((IP_IS_V6(addr))<sp/>?<sp/>ip6addr_ntoa(ip_2_ip6(addr))<sp/>:<sp/>ip4addr_ntoa(ip_2_ip4(addr))))</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="216"><highlight class="normal"></highlight></codeline> <codeline lineno="217"><highlight class="preprocessor">#define<sp/>ipaddr_ntoa_r(addr,<sp/>buf,<sp/>buflen)<sp/><sp/><sp/>(((addr)<sp/>==<sp/>NULL)<sp/>?<sp/>"NULL"<sp/>:<sp/>\</highlight></codeline> <codeline lineno="218"><highlight class="preprocessor"><sp/><sp/>((IP_IS_V6(addr))<sp/>?<sp/>ip6addr_ntoa_r(ip_2_ip6(addr),<sp/>buf,<sp/>buflen)<sp/>:<sp/>ip4addr_ntoa_r(ip_2_ip4(addr),<sp/>buf,<sp/>buflen)))</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="219"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ip__addr_8h_1a9b9fae6ad88a288c3c6da050644e2a48" kindref="member">ipaddr_aton</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*cp,<sp/><ref refid="ip__addr_8h_1a88b43639738c4de2d3cd22e3a1fd7696" kindref="member">ip_addr_t</ref><sp/>*addr);</highlight></codeline> <codeline lineno="220"><highlight class="normal"></highlight></codeline> <codeline lineno="222"><highlight class="preprocessor">#define<sp/>IPADDR_STRLEN_MAX<sp/><sp/><sp/>IP6ADDR_STRLEN_MAX</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="223"><highlight class="normal"></highlight></codeline> <codeline lineno="225"><highlight class="preprocessor">#define<sp/>ip4_2_ipv4_mapped_ipv6(ip6addr,<sp/>ip4addr)<sp/>do<sp/>{<sp/>\</highlight></codeline> <codeline lineno="226"><highlight class="preprocessor"><sp/><sp/>(ip6addr)->addr[3]<sp/>=<sp/>(ip4addr)->addr;<sp/>\</highlight></codeline> <codeline lineno="227"><highlight class="preprocessor"><sp/><sp/>(ip6addr)->addr[2]<sp/>=<sp/>PP_HTONL(0x0000FFFFUL);<sp/>\</highlight></codeline> <codeline lineno="228"><highlight class="preprocessor"><sp/><sp/>(ip6addr)->addr[1]<sp/>=<sp/>0;<sp/>\</highlight></codeline> <codeline lineno="229"><highlight class="preprocessor"><sp/><sp/>(ip6addr)->addr[0]<sp/>=<sp/>0;<sp/>}<sp/>while(0);</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="230"><highlight class="normal"></highlight></codeline> <codeline lineno="232"><highlight class="preprocessor">#define<sp/>unmap_ipv4_mapped_ipv6(ip4addr,<sp/>ip6addr)<sp/>\</highlight></codeline> <codeline lineno="233"><highlight class="preprocessor"><sp/><sp/>(ip4addr)->addr<sp/>=<sp/>(ip6addr)->addr[3];</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="234"><highlight class="normal"></highlight></codeline> <codeline lineno="235"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP46_ADDR_ANY(type)<sp/>(((type)<sp/>==<sp/>IPADDR_TYPE_V6)?<sp/>IP6_ADDR_ANY<sp/>:<sp/>IP4_ADDR_ANY)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="236"><highlight class="normal"></highlight></codeline> <codeline lineno="237"><highlight class="normal"></highlight><highlight class="preprocessor">#else<sp/></highlight><highlight class="comment">/*<sp/>LWIP_IPV4<sp/>&&<sp/>LWIP_IPV6<sp/>*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="238"><highlight class="normal"></highlight></codeline> <codeline lineno="239" refid="ip__addr_8h_1a234cb2e45cd58a80bc3ef433d23f4c57" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_ADDR_PCB_VERSION_MATCH(addr,<sp/>pcb)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>1</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="240" refid="ip__addr_8h_1a81ed1fbe375d867d6e77c83976c07671" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_ADDR_PCB_VERSION_MATCH_EXACT(pcb,<sp/>ipaddr)<sp/>1</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="241"><highlight class="normal"></highlight></codeline> <codeline lineno="242"><highlight class="normal"></highlight><highlight class="preprocessor">#if<sp/>LWIP_IPV4</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="243"><highlight class="normal"></highlight></codeline> <codeline lineno="244"><highlight class="normal"></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/>ip4_addr_t<sp/><ref refid="ip__addr_8h_1a88b43639738c4de2d3cd22e3a1fd7696" kindref="member">ip_addr_t</ref>;</highlight></codeline> <codeline lineno="245"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IPADDR4_INIT(u32val)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/>u32val<sp/>}</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="246"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IPADDR4_INIT_BYTES(a,b,c,d)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>IPADDR4_INIT(PP_HTONL(LWIP_MAKEU32(a,b,c,d)))</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="247"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_IS_V4_VAL(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>1</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="248"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_IS_V6_VAL(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="249"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_IS_V4(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>1</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="250"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_IS_V6(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="251"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_IS_ANY_TYPE_VAL(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="252"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_SET_TYPE_VAL(ipaddr,<sp/>iptype)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="253"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_SET_TYPE(ipaddr,<sp/>iptype)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="254"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_GET_TYPE(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>IPADDR_TYPE_V4</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="255"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_2_ip4(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(ipaddr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="256"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_ADDR4(ipaddr,a,b,c,d)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>IP4_ADDR(ipaddr,a,b,c,d)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="257"><highlight class="normal"></highlight></codeline> <codeline lineno="258"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_copy(dest,<sp/>src)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip4_addr_copy(dest,<sp/>src)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="259"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_copy_from_ip4(dest,<sp/>src)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip4_addr_copy(dest,<sp/>src)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="260"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_set_ip4_u32(ipaddr,<sp/>val)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip4_addr_set_u32(ip_2_ip4(ipaddr),<sp/>val)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="261"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_get_ip4_u32(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip4_addr_get_u32(ip_2_ip4(ipaddr))</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="262"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_set(dest,<sp/>src)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip4_addr_set(dest,<sp/>src)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="263"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_set_ipaddr(dest,<sp/>src)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip4_addr_set(dest,<sp/>src)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="264"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_set_zero(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip4_addr_set_zero(ipaddr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="265"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_set_zero_ip4(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip4_addr_set_zero(ipaddr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="266"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_set_any(is_ipv6,<sp/>ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip4_addr_set_any(ipaddr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="267"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_set_loopback(is_ipv6,<sp/>ipaddr)<sp/><sp/><sp/>ip4_addr_set_loopback(ipaddr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="268"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_set_hton(dest,<sp/>src)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip4_addr_set_hton(dest,<sp/>src)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="269"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_get_network(target,<sp/>host,<sp/>mask)<sp/>ip4_addr_get_network(target,<sp/>host,<sp/>mask)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="270"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_netcmp(addr1,<sp/>addr2,<sp/>mask)<sp/><sp/><sp/><sp/><sp/><sp/>ip4_addr_netcmp(addr1,<sp/>addr2,<sp/>mask)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="271"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_cmp(addr1,<sp/>addr2)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip4_addr_cmp(addr1,<sp/>addr2)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="272"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_isany(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip4_addr_isany(ipaddr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="273"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_isany_val(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip4_addr_isany_val(ipaddr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="274"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_isloopback(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip4_addr_isloopback(ipaddr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="275"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_islinklocal(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip4_addr_islinklocal(ipaddr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="276"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_isbroadcast(addr,<sp/>netif)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip4_addr_isbroadcast(addr,<sp/>netif)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="277"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_ismulticast(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip4_addr_ismulticast(ipaddr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="278"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_debug_print(debug,<sp/>ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/>ip4_addr_debug_print(debug,<sp/>ipaddr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="279"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_debug_print_val(debug,<sp/>ipaddr)<sp/><sp/>ip4_addr_debug_print_val(debug,<sp/>ipaddr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="280"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ipaddr_ntoa(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip4addr_ntoa(ipaddr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="281"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ipaddr_ntoa_r(ipaddr,<sp/>buf,<sp/>buflen)<sp/><sp/><sp/><sp/><sp/><sp/>ip4addr_ntoa_r(ipaddr,<sp/>buf,<sp/>buflen)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="282"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ipaddr_aton(cp,<sp/>addr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip4addr_aton(cp,<sp/>addr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="283"><highlight class="normal"></highlight></codeline> <codeline lineno="284"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IPADDR_STRLEN_MAX<sp/><sp/><sp/>IP4ADDR_STRLEN_MAX</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="285"><highlight class="normal"></highlight></codeline> <codeline lineno="286"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP46_ADDR_ANY(type)<sp/>(IP4_ADDR_ANY)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="287"><highlight class="normal"></highlight></codeline> <codeline lineno="288"><highlight class="normal"></highlight><highlight class="preprocessor">#else<sp/></highlight><highlight class="comment">/*<sp/>LWIP_IPV4<sp/>*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="289"><highlight class="normal"></highlight></codeline> <codeline lineno="290" refid="ip__addr_8h_1a88b43639738c4de2d3cd22e3a1fd7696" refkind="member"><highlight class="normal"></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/>ip6_addr_t<sp/><ref refid="ip__addr_8h_1a88b43639738c4de2d3cd22e3a1fd7696" kindref="member">ip_addr_t</ref>;</highlight></codeline> <codeline lineno="291" refid="ip__addr_8h_1a1266e500b1db0b7cdc4b269cace49746" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IPADDR6_INIT(a,<sp/>b,<sp/>c,<sp/>d)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/>{<sp/>a,<sp/>b,<sp/>c,<sp/>d<sp/>}<sp/>}</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="292" refid="ip__addr_8h_1adaff748da2b808995993dd3db5420f08" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IPADDR6_INIT_HOST(a,<sp/>b,<sp/>c,<sp/>d)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{<sp/>{<sp/>PP_HTONL(a),<sp/>PP_HTONL(b),<sp/>PP_HTONL(c),<sp/>PP_HTONL(d)<sp/>}<sp/>}</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="293" refid="ip__addr_8h_1ab1a059f07bd9c50aa58447d963b823a1" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_IS_V4_VAL(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="294" refid="ip__addr_8h_1a1578e34703e86711a7fb7dcc3857004d" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_IS_V6_VAL(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>1</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="295" refid="ip__addr_8h_1abee5dab2191bb0f3355d7f30d1496f24" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_IS_V4(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="296" refid="ip__addr_8h_1a9bac7e938757f1d24df2404e8b57cb7d" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_IS_V6(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>1</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="297" refid="ip__addr_8h_1a83b17dbf7d1faf5c8f8c20b039db8bb8" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_IS_ANY_TYPE_VAL(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="298" refid="ip__addr_8h_1aaa800ce1929a1bb0f3d64bebd44e4051" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_SET_TYPE_VAL(ipaddr,<sp/>iptype)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="299" refid="ip__addr_8h_1a4d435d88b2eaebaea1ef75ee586204fd" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_SET_TYPE(ipaddr,<sp/>iptype)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="300" refid="ip__addr_8h_1aa2d07afd28376f89da2cdcf5d2497ce7" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_GET_TYPE(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>IPADDR_TYPE_V6</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="301" refid="ip__addr_8h_1a06e75bcd198012b5ba39480c233608bd" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_2_ip6(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(ipaddr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="302" refid="ip__addr_8h_1a9ee53b601b89dcb517496ba0bccf9bd0" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_ADDR6(ipaddr,i0,i1,i2,i3)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>IP6_ADDR(ipaddr,i0,i1,i2,i3)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="303" refid="ip__addr_8h_1abfb1ce44d6a8791336bf3ac06aa086ca" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_ADDR6_HOST(ipaddr,i0,i1,i2,i3)<sp/><sp/><sp/><sp/><sp/><sp/><sp/>IP_ADDR6(ipaddr,PP_HTONL(i0),PP_HTONL(i1),PP_HTONL(i2),PP_HTONL(i3))</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="304"><highlight class="normal"></highlight></codeline> <codeline lineno="305" refid="ip__addr_8h_1a77a933975db287f6aa5c2e70249ba18f" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_copy(dest,<sp/>src)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip6_addr_copy(dest,<sp/>src)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="306" refid="ip__addr_8h_1abe6f7908ce8a91dc587e2ebc2172e651" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_copy_from_ip6(dest,<sp/>src)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip6_addr_copy(dest,<sp/>src)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="307" refid="ip__addr_8h_1a40db7feae2b92f7a7a01d65a85b06e18" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_set(dest,<sp/>src)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip6_addr_set(dest,<sp/>src)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="308" refid="ip__addr_8h_1aea5e4795598bc33fa2db1773c8e6fbac" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_set_ipaddr(dest,<sp/>src)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip6_addr_set(dest,<sp/>src)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="309" refid="ip__addr_8h_1aae7edb585c062ae03bfbd3af7bf671bc" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_set_zero(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip6_addr_set_zero(ipaddr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="310" refid="ip__addr_8h_1afb3a0e5241683aff573e195f31ba8845" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_set_zero_ip6(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip6_addr_set_zero(ipaddr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="311" refid="ip__addr_8h_1a8853fce54b1816dca3af90b48677e673" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_set_any(is_ipv6,<sp/>ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip6_addr_set_any(ipaddr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="312" refid="ip__addr_8h_1a8f9d56ac85cd87338a1823e4a58ba1da" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_set_loopback(is_ipv6,<sp/>ipaddr)<sp/><sp/><sp/>ip6_addr_set_loopback(ipaddr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="313" refid="ip__addr_8h_1a3528798be1d2f1ec6a6bccd35694edce" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_set_hton(dest,<sp/>src)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip6_addr_set_hton(dest,<sp/>src)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="314" refid="ip__addr_8h_1a535520cd0a0d08a4c4c29b331c55830f" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_get_network(target,<sp/>host,<sp/>mask)<sp/>ip6_addr_set_zero(target)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="315" refid="ip__addr_8h_1a3a2123f0bbf6fe843c8542e349c680eb" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_netcmp(addr1,<sp/>addr2,<sp/>mask)<sp/><sp/><sp/><sp/><sp/><sp/>0</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="316" refid="ip__addr_8h_1a008c9c92d770cc030ea054e6b259835a" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_cmp(addr1,<sp/>addr2)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip6_addr_cmp(addr1,<sp/>addr2)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="317" refid="ip__addr_8h_1a279118890e6a90aa740051fb8b0cc5f4" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_isany(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip6_addr_isany(ipaddr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="318" refid="ip__addr_8h_1acd8f5aa151cff966fd28368b85f38c05" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_isany_val(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip6_addr_isany_val(ipaddr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="319" refid="ip__addr_8h_1a0fc8bf6662809274750868683b3a422e" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_isloopback(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip6_addr_isloopback(ipaddr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="320" refid="ip__addr_8h_1a33bc079baaf513a9a7381b9531a1f653" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_islinklocal(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip6_addr_islinklocal(ipaddr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="321" refid="ip__addr_8h_1a11275b39f9b8e876e8124a16410e8840" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_isbroadcast(addr,<sp/>netif)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="322" refid="ip__addr_8h_1a2170d3ee13dd22722222228e7b1c5752" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_ismulticast(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip6_addr_ismulticast(ipaddr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="323" refid="ip__addr_8h_1af7d84bce2fb861a97f3047ecd69ab018" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_debug_print(debug,<sp/>ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/>ip6_addr_debug_print(debug,<sp/>ipaddr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="324" refid="ip__addr_8h_1ac3d7eec8027db2203117e6f30df8fba5" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ip_addr_debug_print_val(debug,<sp/>ipaddr)<sp/><sp/>ip6_addr_debug_print_val(debug,<sp/>ipaddr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="325" refid="ip__addr_8h_1ad345f630acbf2a01536d10d3aacee04f" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ipaddr_ntoa(ipaddr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip6addr_ntoa(ipaddr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="326" refid="ip__addr_8h_1ac5a2215f804102c72f59dcdf1ccf6449" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ipaddr_ntoa_r(ipaddr,<sp/>buf,<sp/>buflen)<sp/><sp/><sp/><sp/><sp/><sp/>ip6addr_ntoa_r(ipaddr,<sp/>buf,<sp/>buflen)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="327" refid="ip__addr_8h_1a9b9fae6ad88a288c3c6da050644e2a48" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>ipaddr_aton(cp,<sp/>addr)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ip6addr_aton(cp,<sp/>addr)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="328"><highlight class="normal"></highlight></codeline> <codeline lineno="329" refid="ip__addr_8h_1a8619278bcbf705844f584f36972fc758" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IPADDR_STRLEN_MAX<sp/><sp/><sp/>IP6ADDR_STRLEN_MAX</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="330"><highlight class="normal"></highlight></codeline> <codeline lineno="331" refid="ip__addr_8h_1ae221446ab455b8a1a0d2a4153b9c1bb3" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP46_ADDR_ANY(type)<sp/>(IP6_ADDR_ANY)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="332"><highlight class="normal"></highlight></codeline> <codeline lineno="333"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/></highlight><highlight class="comment">/*<sp/>LWIP_IPV4<sp/>*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="334"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/></highlight><highlight class="comment">/*<sp/>LWIP_IPV4<sp/>&&<sp/>LWIP_IPV6<sp/>*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="335"><highlight class="normal"></highlight></codeline> <codeline lineno="336"><highlight class="normal"></highlight><highlight class="preprocessor">#if<sp/>LWIP_IPV4</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="337"><highlight class="normal"></highlight></codeline> <codeline lineno="338"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="ip__addr_8h_1a88b43639738c4de2d3cd22e3a1fd7696" kindref="member">ip_addr_t</ref><sp/>ip_addr_any;</highlight></codeline> <codeline lineno="339"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="ip__addr_8h_1a88b43639738c4de2d3cd22e3a1fd7696" kindref="member">ip_addr_t</ref><sp/>ip_addr_broadcast;</highlight></codeline> <codeline lineno="340"><highlight class="normal"></highlight></codeline> <codeline lineno="351"><highlight class="preprocessor">#define<sp/>IP_ADDR_ANY<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>IP4_ADDR_ANY</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="352"><highlight class="normal"></highlight></codeline> <codeline lineno="357"><highlight class="preprocessor">#define<sp/>IP4_ADDR_ANY<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(&ip_addr_any)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="358"><highlight class="normal"></highlight></codeline> <codeline lineno="363"><highlight class="preprocessor">#define<sp/>IP4_ADDR_ANY4<sp/><sp/><sp/><sp/><sp/><sp/><sp/>(ip_2_ip4(&ip_addr_any))</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="364"><highlight class="normal"></highlight></codeline> <codeline lineno="366"><highlight class="preprocessor">#define<sp/>IP_ADDR_BROADCAST<sp/><sp/><sp/>(&ip_addr_broadcast)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="367"><highlight class="normal"></highlight></codeline> <codeline lineno="368"><highlight class="preprocessor">#define<sp/>IP4_ADDR_BROADCAST<sp/><sp/>(ip_2_ip4(&ip_addr_broadcast))</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="369"><highlight class="normal"></highlight></codeline> <codeline lineno="370"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/></highlight><highlight class="comment">/*<sp/>LWIP_IPV4*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="371"><highlight class="normal"></highlight></codeline> <codeline lineno="372"><highlight class="normal"></highlight><highlight class="preprocessor">#if<sp/>LWIP_IPV6</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="373"><highlight class="normal"></highlight></codeline> <codeline lineno="374"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="ip__addr_8h_1a88b43639738c4de2d3cd22e3a1fd7696" kindref="member">ip_addr_t</ref><sp/>ip6_addr_any;</highlight></codeline> <codeline lineno="375"><highlight class="normal"></highlight></codeline> <codeline lineno="381"><highlight class="preprocessor">#define<sp/>IP6_ADDR_ANY<sp/><sp/><sp/>(&ip6_addr_any)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="382"><highlight class="normal"></highlight></codeline> <codeline lineno="387"><highlight class="preprocessor">#define<sp/>IP6_ADDR_ANY6<sp/><sp/>(ip_2_ip6(&ip6_addr_any))</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="388"><highlight class="normal"></highlight></codeline> <codeline lineno="389"><highlight class="normal"></highlight><highlight class="preprocessor">#if<sp/>!LWIP_IPV4</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="390"><highlight class="normal"></highlight></codeline> <codeline lineno="391"><highlight class="preprocessor">#define<sp/>IP_ADDR_ANY<sp/>IP6_ADDR_ANY</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="392"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/></highlight><highlight class="comment">/*<sp/>!LWIP_IPV4<sp/>*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="393"><highlight class="normal"></highlight></codeline> <codeline lineno="394"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="395"><highlight class="normal"></highlight></codeline> <codeline lineno="396"><highlight class="normal"></highlight><highlight class="preprocessor">#if<sp/>LWIP_IPV4<sp/>&&<sp/>LWIP_IPV6</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="397"><highlight class="normal"></highlight></codeline> <codeline lineno="398"><highlight class="preprocessor">#define<sp/>IP_ANY_TYPE<sp/><sp/><sp/><sp/>(&ip_addr_any_type)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="399"><highlight class="normal"></highlight><highlight class="preprocessor">#else</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="400" refid="ip__addr_8h_1abe43b154533b73585c4e58f568370ede" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_ANY_TYPE<sp/><sp/><sp/><sp/>IP_ADDR_ANY</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="401"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="402"><highlight class="normal"></highlight></codeline> <codeline lineno="403"><highlight class="normal"></highlight><highlight class="preprocessor">#ifdef<sp/>__cplusplus</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="404"><highlight class="normal">}</highlight></codeline> <codeline lineno="405"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="406"><highlight class="normal"></highlight></codeline> <codeline lineno="407"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/></highlight><highlight class="comment">/*<sp/>LWIP_HDR_IP_ADDR_H<sp/>*/</highlight><highlight class="preprocessor"></highlight></codeline> </programlisting> <location file="C:/Dev/git/UbixOS/sys/include/net/ip_addr.h"/> </compounddef> </doxygen>