<?xml version='1.0' encoding='iso-8859-1' standalone='no'?> <doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.4.7"> <compounddef id="ipv6_2ip__addr_8h" kind="file"> <compoundname>ip_addr.h</compoundname> <includes refid="arch_8h" local="yes">net/arch.h</includes> <includedby refid="ipv6_2inet_8h" local="yes">src/sys/include/net/ipv6/inet.h</includedby> <incdepgraph> <node id="802"> <label>arch/cpu.h</label> <link refid="cpu_8h"/> </node> <node id="801"> <label>net/arch.h</label> <link refid="arch_8h"/> <childnode refid="802" relation="include"> </childnode> <childnode refid="803" relation="include"> </childnode> </node> <node id="800"> <label>src/sys/include/net/ipv6/ip_addr.h</label> <link refid="ipv6/ip_addr.h"/> <childnode refid="801" relation="include"> </childnode> </node> <node id="803"> <label>arch/cc.h</label> <link refid="cc_8h"/> </node> </incdepgraph> <invincdepgraph> <node id="805"> <label>src/sys/include/net/ipv6/inet.h</label> <link refid="ipv6_2inet_8h"/> </node> <node id="804"> <label>src/sys/include/net/ipv6/ip_addr.h</label> <link refid="ipv6/ip_addr.h"/> <childnode refid="805" relation="include"> </childnode> </node> </invincdepgraph> <innerclass refid="structip__addr" prot="public">ip_addr</innerclass> <sectiondef kind="define"> <memberdef kind="define" id="ipv6_2ip__addr_8h_101f9a78dc454fd887b9a83f2bda3d061" prot="public" static="no"> <name>IP6_ADDR</name> <param><defname>ipaddr</defname></param> <param><defname>a</defname></param> <param><defname>b</defname></param> <param><defname>c</defname></param> <param><defname>d</defname></param> <param><defname>e</defname></param> <param><defname>f</defname></param> <param><defname>g</defname></param> <param><defname>h</defname></param> <initializer>do { (ipaddr)->addr[0] = htonl((u32_t)((a & 0xffff) << 16) | (b & 0xffff)); \ (ipaddr)->addr[1] = htonl(((c & 0xffff) << 16) | (d & 0xffff)); \ (ipaddr)->addr[2] = htonl(((e & 0xffff) << 16) | (f & 0xffff)); \ (ipaddr)->addr[3] = htonl(((g & 0xffff) << 16) | (h & 0xffff)); } while(0)</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/ipv6/ip_addr.h" line="49" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/include/net/ipv6/ip_addr.h" bodystart="46" bodyend="-1"/> </memberdef> <memberdef kind="define" id="ipv6_2ip__addr_8h_13e5e67b7292b156034560fef2202776c" prot="public" static="no"> <name>IP_ADDR_ANY</name> <initializer>0</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/ipv6/ip_addr.h" line="40" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/include/net/ipv6/ip_addr.h" bodystart="40" bodyend="-1"/> </memberdef> </sectiondef> <sectiondef kind="func"> <memberdef kind="function" id="ipv6_2ip__addr_8h_1727f0ee83441893bbba917e64b40e569" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int ip_addr_cmp</definition> <argsstring>(struct ip_addr *addr1, struct ip_addr *addr2)</argsstring> <name>ip_addr_cmp</name> <param> <type>struct <ref refid="structip__addr" kindref="compound">ip_addr</ref> *</type> <declname>addr1</declname> </param> <param> <type>struct <ref refid="structip__addr" kindref="compound">ip_addr</ref> *</type> <declname>addr2</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/ipv6/ip_addr.h" line="53"/> </memberdef> <memberdef kind="function" id="ipv6_2ip__addr_8h_1705c1340d5e2f07c5a626d09dec45075" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int ip_addr_isany</definition> <argsstring>(struct ip_addr *addr)</argsstring> <name>ip_addr_isany</name> <param> <type>struct <ref refid="structip__addr" kindref="compound">ip_addr</ref> *</type> <declname>addr</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/ipv6/ip_addr.h" line="55"/> </memberdef> <memberdef kind="function" id="ipv6_2ip__addr_8h_10f87b2234b23ccf5ccb3b2451f716fdb" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int ip_addr_maskcmp</definition> <argsstring>(struct ip_addr *addr1, struct ip_addr *addr2, struct ip_addr *mask)</argsstring> <name>ip_addr_maskcmp</name> <param> <type>struct <ref refid="structip__addr" kindref="compound">ip_addr</ref> *</type> <declname>addr1</declname> </param> <param> <type>struct <ref refid="structip__addr" kindref="compound">ip_addr</ref> *</type> <declname>addr2</declname> </param> <param> <type>struct <ref refid="structip__addr" kindref="compound">ip_addr</ref> *</type> <declname>mask</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/ipv6/ip_addr.h" line="52"/> </memberdef> <memberdef kind="function" id="ipv6_2ip__addr_8h_1e0eaca9c859c2caf0190e99e34135d1a" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void ip_addr_set</definition> <argsstring>(struct ip_addr *dest, struct ip_addr *src)</argsstring> <name>ip_addr_set</name> <param> <type>struct <ref refid="structip__addr" kindref="compound">ip_addr</ref> *</type> <declname>dest</declname> </param> <param> <type>struct <ref refid="structip__addr" kindref="compound">ip_addr</ref> *</type> <declname>src</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/ipv6/ip_addr.h" line="54"/> </memberdef> </sectiondef> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <programlisting> <codeline lineno="1"><highlight class="comment">/*</highlight></codeline> <codeline lineno="2"><highlight class="comment"><sp/>*<sp/>Copyright<sp/>(c)<sp/>2001,<sp/>Swedish<sp/>Institute<sp/>of<sp/>Computer<sp/>Science.</highlight></codeline> <codeline lineno="3"><highlight class="comment"><sp/>*<sp/>All<sp/>rights<sp/>reserved.<sp/></highlight></codeline> <codeline lineno="4"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="5"><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/></highlight></codeline> <codeline lineno="6"><highlight class="comment"><sp/>*<sp/>modification,<sp/>are<sp/>permitted<sp/>provided<sp/>that<sp/>the<sp/>following<sp/>conditions<sp/></highlight></codeline> <codeline lineno="7"><highlight class="comment"><sp/>*<sp/>are<sp/>met:<sp/></highlight></codeline> <codeline lineno="8"><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/></highlight></codeline> <codeline lineno="9"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>notice,<sp/>this<sp/>list<sp/>of<sp/>conditions<sp/>and<sp/>the<sp/>following<sp/>disclaimer.<sp/></highlight></codeline> <codeline lineno="10"><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/></highlight></codeline> <codeline lineno="11"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>notice,<sp/>this<sp/>list<sp/>of<sp/>conditions<sp/>and<sp/>the<sp/>following<sp/>disclaimer<sp/>in<sp/>the<sp/></highlight></codeline> <codeline lineno="12"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>documentation<sp/>and/or<sp/>other<sp/>materials<sp/>provided<sp/>with<sp/>the<sp/>distribution.<sp/></highlight></codeline> <codeline lineno="13"><highlight class="comment"><sp/>*<sp/>3.<sp/>Neither<sp/>the<sp/>name<sp/>of<sp/>the<sp/>Institute<sp/>nor<sp/>the<sp/>names<sp/>of<sp/>its<sp/>contributors<sp/></highlight></codeline> <codeline lineno="14"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>may<sp/>be<sp/>used<sp/>to<sp/>endorse<sp/>or<sp/>promote<sp/>products<sp/>derived<sp/>from<sp/>this<sp/>software<sp/></highlight></codeline> <codeline lineno="15"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>without<sp/>specific<sp/>prior<sp/>written<sp/>permission.<sp/></highlight></codeline> <codeline lineno="16"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="17"><highlight class="comment"><sp/>*<sp/>THIS<sp/>SOFTWARE<sp/>IS<sp/>PROVIDED<sp/>BY<sp/>THE<sp/>INSTITUTE<sp/>AND<sp/>CONTRIBUTORS<sp/>``AS<sp/>IS''<sp/>AND<sp/></highlight></codeline> <codeline lineno="18"><highlight class="comment"><sp/>*<sp/>ANY<sp/>EXPRESS<sp/>OR<sp/>IMPLIED<sp/>WARRANTIES,<sp/>INCLUDING,<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO,<sp/>THE<sp/></highlight></codeline> <codeline lineno="19"><highlight class="comment"><sp/>*<sp/>IMPLIED<sp/>WARRANTIES<sp/>OF<sp/>MERCHANTABILITY<sp/>AND<sp/>FITNESS<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE<sp/></highlight></codeline> <codeline lineno="20"><highlight class="comment"><sp/>*<sp/>ARE<sp/>DISCLAIMED.<sp/><sp/>IN<sp/>NO<sp/>EVENT<sp/>SHALL<sp/>THE<sp/>INSTITUTE<sp/>OR<sp/>CONTRIBUTORS<sp/>BE<sp/>LIABLE<sp/></highlight></codeline> <codeline lineno="21"><highlight class="comment"><sp/>*<sp/>FOR<sp/>ANY<sp/>DIRECT,<sp/>INDIRECT,<sp/>INCIDENTAL,<sp/>SPECIAL,<sp/>EXEMPLARY,<sp/>OR<sp/>CONSEQUENTIAL<sp/></highlight></codeline> <codeline lineno="22"><highlight class="comment"><sp/>*<sp/>DAMAGES<sp/>(INCLUDING,<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO,<sp/>PROCUREMENT<sp/>OF<sp/>SUBSTITUTE<sp/>GOODS<sp/></highlight></codeline> <codeline lineno="23"><highlight class="comment"><sp/>*<sp/>OR<sp/>SERVICES;<sp/>LOSS<sp/>OF<sp/>USE,<sp/>DATA,<sp/>OR<sp/>PROFITS;<sp/>OR<sp/>BUSINESS<sp/>INTERRUPTION)<sp/></highlight></codeline> <codeline lineno="24"><highlight class="comment"><sp/>*<sp/>HOWEVER<sp/>CAUSED<sp/>AND<sp/>ON<sp/>ANY<sp/>THEORY<sp/>OF<sp/>LIABILITY,<sp/>WHETHER<sp/>IN<sp/>CONTRACT,<sp/>STRICT<sp/></highlight></codeline> <codeline lineno="25"><highlight class="comment"><sp/>*<sp/>LIABILITY,<sp/>OR<sp/>TORT<sp/>(INCLUDING<sp/>NEGLIGENCE<sp/>OR<sp/>OTHERWISE)<sp/>ARISING<sp/>IN<sp/>ANY<sp/>WAY<sp/></highlight></codeline> <codeline lineno="26"><highlight class="comment"><sp/>*<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<sp/>OF<sp/></highlight></codeline> <codeline lineno="27"><highlight class="comment"><sp/>*<sp/>SUCH<sp/>DAMAGE.<sp/></highlight></codeline> <codeline lineno="28"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="29"><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="30"><highlight class="comment"><sp/>*<sp/></highlight></codeline> <codeline lineno="31"><highlight class="comment"><sp/>*<sp/>Author:<sp/>Adam<sp/>Dunkels<sp/><adam@sics.se></highlight></codeline> <codeline lineno="32"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="33"><highlight class="comment"><sp/>*<sp/>$Id: ipv6_2ip__addr_8h.xml 88 2016-01-12 00:11:29Z reddawg $</highlight></codeline> <codeline lineno="34"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="35"><highlight class="normal"></highlight><highlight class="preprocessor">#ifndef<sp/>__LWIP_IP_ADDR_H__</highlight></codeline> <codeline lineno="36"><highlight class="preprocessor"></highlight><highlight class="preprocessor">#define<sp/>__LWIP_IP_ADDR_H__</highlight></codeline> <codeline lineno="37"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="38"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"<ref refid="arch_8h" kindref="compound">net/arch.h</ref>"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="39"><highlight class="normal"></highlight></codeline> <codeline lineno="40" refid="ipv6_2ip__addr_8h_13e5e67b7292b156034560fef2202776c" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP_ADDR_ANY<sp/>0</highlight></codeline> <codeline lineno="41"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="42"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structip__addr" kindref="compound">ip_addr</ref><sp/>{</highlight></codeline> <codeline lineno="43" refid="structip__addr_1aca6b7136a4c4efb4e0da1384d76f4b5" refkind="member"><highlight class="normal"><sp/><sp/>u32_t<sp/><ref refid="structip__addr_1aca6b7136a4c4efb4e0da1384d76f4b5" kindref="member">addr</ref>[4];</highlight></codeline> <codeline lineno="44"><highlight class="normal">};</highlight></codeline> <codeline lineno="45"><highlight class="normal"></highlight></codeline> <codeline lineno="46" refid="ipv6_2ip__addr_8h_101f9a78dc454fd887b9a83f2bda3d061" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>IP6_ADDR(ipaddr,<sp/>a,b,c,d,e,f,g,h)<sp/>do<sp/>{<sp/>(ipaddr)->addr[0]<sp/>=<sp/>htonl((u32_t)((a<sp/>&<sp/>0xffff)<sp/><<<sp/>16)<sp/>|<sp/>(b<sp/>&<sp/>0xffff));<sp/>\</highlight></codeline> <codeline lineno="47"><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/><sp/><sp/><sp/><sp/>(ipaddr)->addr[1]<sp/>=<sp/>htonl(((c<sp/>&<sp/>0xffff)<sp/><<<sp/>16)<sp/>|<sp/>(d<sp/>&<sp/>0xffff));<sp/>\</highlight></codeline> <codeline lineno="48"><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/><sp/><sp/><sp/><sp/>(ipaddr)->addr[2]<sp/>=<sp/>htonl(((e<sp/>&<sp/>0xffff)<sp/><<<sp/>16)<sp/>|<sp/>(f<sp/>&<sp/>0xffff));<sp/>\</highlight></codeline> <codeline lineno="49"><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/><sp/><sp/><sp/><sp/>(ipaddr)->addr[3]<sp/>=<sp/>htonl(((g<sp/>&<sp/>0xffff)<sp/><<<sp/>16)<sp/>|<sp/>(h<sp/>&<sp/>0xffff));<sp/>}<sp/>while(0)</highlight></codeline> <codeline lineno="50"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="51"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ipv4_2ip__addr_8h_1f656f30425e386d96d0e1a1b2dcb3952" kindref="member">ip_addr_maskcmp</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structip__addr" kindref="compound">ip_addr</ref><sp/>*addr1,<sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structip__addr" kindref="compound">ip_addr</ref><sp/>*addr2,</highlight></codeline> <codeline lineno="52"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structip__addr" kindref="compound">ip_addr</ref><sp/>*mask);</highlight></codeline> <codeline lineno="53"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ipv4_2ip__addr_8h_1008c9c92d770cc030ea054e6b259835a" kindref="member">ip_addr_cmp</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structip__addr" kindref="compound">ip_addr</ref><sp/>*addr1,<sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structip__addr" kindref="compound">ip_addr</ref><sp/>*addr2);</highlight></codeline> <codeline lineno="54"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="ipv4_2ip__addr_8h_140db7feae2b92f7a7a01d65a85b06e18" kindref="member">ip_addr_set</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structip__addr" kindref="compound">ip_addr</ref><sp/>*dest,<sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structip__addr" kindref="compound">ip_addr</ref><sp/>*src);</highlight></codeline> <codeline lineno="55"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ipv4_2ip__addr_8h_10d51c2bb5f2af51392540af1c5df511a" kindref="member">ip_addr_isany</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structip__addr" kindref="compound">ip_addr</ref><sp/>*addr);</highlight></codeline> <codeline lineno="56"><highlight class="normal"></highlight></codeline> <codeline lineno="57"><highlight class="normal"></highlight></codeline> <codeline lineno="58"><highlight class="normal"></highlight><highlight class="preprocessor">#if<sp/>IP_DEBUG</highlight></codeline> <codeline lineno="59"><highlight class="preprocessor"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="ipv4_2ip__addr_8h_1a41e0b5b64b12921f01894962c6fc9d9" kindref="member">ip_addr_debug_print</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structip__addr" kindref="compound">ip_addr</ref><sp/>*addr);</highlight></codeline> <codeline lineno="60"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/></highlight><highlight class="comment">/*<sp/>IP_DEBUG<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="61"><highlight class="normal"></highlight></codeline> <codeline lineno="62"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/></highlight><highlight class="comment">/*<sp/>__LWIP_IP_ADDR_H__<sp/>*/</highlight><highlight class="normal"></highlight></codeline> </programlisting> <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/ipv6/ip_addr.h"/> </compounddef> </doxygen>