<?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="udp_8h" kind="file"> <compoundname>udp.h</compoundname> <includes refid="arch_8h" local="yes">net/arch.h</includes> <includes refid="pbuf_8h" local="yes">net/pbuf.h</includes> <includes refid="ipv4_2inet_8h" local="yes">net/ipv4/inet.h</includes> <includes refid="ipv4_2ip_8h" local="yes">net/ipv4/ip.h</includes> <includes refid="err_8h" local="yes">net/err.h</includes> <includedby refid="api_8h" local="yes">src/sys/include/net/api.h</includedby> <includedby refid="api__msg_8h" local="yes">src/sys/include/net/api_msg.h</includedby> <includedby refid="tcpip_8c" local="yes">src/sys/net/api/tcpip.c</includedby> <includedby refid="tcpdump_8c" local="yes">src/sys/net/netif/tcpdump.c</includedby> <incdepgraph> <node id="1097"> <label>net/ipv4/ip.h</label> <link refid="ipv4_2ip_8h"/> <childnode refid="1088" relation="include"> </childnode> <childnode refid="1098" relation="include"> </childnode> <childnode refid="1091" relation="include"> </childnode> <childnode refid="1096" relation="include"> </childnode> <childnode refid="1100" relation="include"> </childnode> <childnode refid="1101" relation="include"> </childnode> </node> <node id="1099"> <label>arch/lib.h</label> <link refid="lib_8h"/> </node> <node id="1100"> <label>net/netif.h</label> <link refid="netif_8h"/> <childnode refid="1094" relation="include"> </childnode> <childnode refid="1101" relation="include"> </childnode> <childnode refid="1096" relation="include"> </childnode> <childnode refid="1093" relation="include"> </childnode> <childnode refid="1091" relation="include"> </childnode> </node> <node id="1087"> <label>src/sys/include/net/udp.h</label> <link refid="udp.h"/> <childnode refid="1088" relation="include"> </childnode> <childnode refid="1091" relation="include"> </childnode> <childnode refid="1093" relation="include"> </childnode> <childnode refid="1097" relation="include"> </childnode> <childnode refid="1101" relation="include"> </childnode> </node> <node id="1089"> <label>arch/cpu.h</label> <link refid="cpu_8h"/> </node> <node id="1102"> <label>ubixos/types.h</label> <link refid="types_8h"/> <childnode refid="1103" relation="include"> </childnode> </node> <node id="1103"> <label>sys/_types.h</label> <link refid="__types_8h"/> </node> <node id="1088"> <label>net/arch.h</label> <link refid="arch_8h"/> <childnode refid="1089" relation="include"> </childnode> <childnode refid="1090" relation="include"> </childnode> </node> <node id="1095"> <label>net/lwipopts.h</label> <link refid="lwipopts_8h"/> </node> <node id="1098"> <label>net/def.h</label> <link refid="def_8h"/> <childnode refid="1099" relation="include"> </childnode> </node> <node id="1096"> <label>net/ipv4/ip_addr.h</label> <link refid="ipv4_2ip__addr_8h"/> <childnode refid="1088" relation="include"> </childnode> </node> <node id="1101"> <label>net/err.h</label> <link refid="err_8h"/> <childnode refid="1102" relation="include"> </childnode> <childnode refid="1092" relation="include"> </childnode> <childnode refid="1090" relation="include"> </childnode> </node> <node id="1094"> <label>net/opt.h</label> <link refid="opt_8h"/> <childnode refid="1095" relation="include"> </childnode> </node> <node id="1091"> <label>net/pbuf.h</label> <link refid="pbuf_8h"/> <childnode refid="1092" relation="include"> </childnode> <childnode refid="1088" relation="include"> </childnode> </node> <node id="1092"> <label>net/debug.h</label> <link refid="debug_8h"/> </node> <node id="1093"> <label>net/ipv4/inet.h</label> <link refid="ipv4_2inet_8h"/> <childnode refid="1088" relation="include"> </childnode> <childnode refid="1094" relation="include"> </childnode> <childnode refid="1091" relation="include"> </childnode> <childnode refid="1096" relation="include"> </childnode> </node> <node id="1090"> <label>arch/cc.h</label> <link refid="cc_8h"/> </node> </incdepgraph> <invincdepgraph> <node id="1115"> <label>src/sys/net/net/udpecho.c</label> <link refid="udpecho_8c"/> </node> <node id="1116"> <label>src/sys/net/netif/tcpdump.c</label> <link refid="tcpdump_8c"/> </node> <node id="1104"> <label>src/sys/include/net/udp.h</label> <link refid="udp.h"/> <childnode refid="1105" relation="include"> </childnode> <childnode refid="1106" relation="include"> </childnode> <childnode refid="1109" relation="include"> </childnode> <childnode refid="1116" relation="include"> </childnode> </node> <node id="1113"> <label>src/sys/net/net/bot.c</label> <link refid="bot_8c"/> </node> <node id="1109"> <label>src/sys/net/api/tcpip.c</label> <link refid="tcpip_8c"/> </node> <node id="1107"> <label>src/sys/include/net/tcpip.h</label> <link refid="tcpip_8h"/> <childnode refid="1108" relation="include"> </childnode> <childnode refid="1109" relation="include"> </childnode> <childnode refid="1110" relation="include"> </childnode> </node> <node id="1106"> <label>src/sys/include/net/api_msg.h</label> <link refid="api__msg_8h"/> <childnode refid="1107" relation="include"> </childnode> <childnode refid="1111" relation="include"> </childnode> <childnode refid="1108" relation="include"> </childnode> </node> <node id="1114"> <label>src/sys/net/net/shell.c</label> <link refid="shell_8c"/> </node> <node id="1111"> <label>src/sys/net/api/api_lib.c</label> <link refid="api__lib_8c"/> </node> <node id="1110"> <label>src/sys/net/net/init.c</label> <link refid="init_8c"/> </node> <node id="1105"> <label>src/sys/include/net/api.h</label> <link refid="api_8h"/> <childnode refid="1106" relation="include"> </childnode> <childnode refid="1111" relation="include"> </childnode> <childnode refid="1112" relation="include"> </childnode> <childnode refid="1113" relation="include"> </childnode> <childnode refid="1114" relation="include"> </childnode> <childnode refid="1115" relation="include"> </childnode> </node> <node id="1112"> <label>src/sys/net/api/sockets.c</label> <link refid="sockets_8c"/> </node> <node id="1108"> <label>src/sys/net/api/api_msg.c</label> <link refid="api__msg_8c"/> </node> </invincdepgraph> <innerclass refid="structudp__hdr" prot="public">udp_hdr</innerclass> <innerclass refid="structudp__pcb" prot="public">udp_pcb</innerclass> <sectiondef kind="define"> <memberdef kind="define" id="udp_8h_137c8037a85578f1eeeef334f89a0a746" prot="public" static="no"> <name>udp_flags</name> <param><defname>pcb</defname></param> <initializer>((pcb)->flags)</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/udp.h" line="90" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/include/net/udp.h" bodystart="90" bodyend="-1"/> </memberdef> <memberdef kind="define" id="udp_8h_13f1f7350e351cf43afc1cb92361539b7" prot="public" static="no"> <name>UDP_FLAGS_NOCHKSUM</name> <initializer>0x01</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/udp.h" line="57" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/include/net/udp.h" bodystart="57" bodyend="-1"/> <referencedby refid="api__msg_8c_1cab3f82cc16d96db0db1f17b872613a4" compoundref="api__msg_8c" startline="243" endline="281">do_bind</referencedby> <referencedby refid="api__msg_8c_18ad3068b45627dbe48440d4d6e1607d1" compoundref="api__msg_8c" startline="305" endline="365">do_connect</referencedby> </memberdef> <memberdef kind="define" id="udp_8h_17bf6b42d94a2249626fd730c52a65cb2" prot="public" static="no"> <name>UDP_FLAGS_UDPLITE</name> <initializer>0x02</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/udp.h" line="58" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/include/net/udp.h" bodystart="58" bodyend="-1"/> <referencedby refid="api__msg_8c_1cab3f82cc16d96db0db1f17b872613a4" compoundref="api__msg_8c" startline="243" endline="281">do_bind</referencedby> <referencedby refid="api__msg_8c_18ad3068b45627dbe48440d4d6e1607d1" compoundref="api__msg_8c" startline="305" endline="365">do_connect</referencedby> </memberdef> <memberdef kind="define" id="udp_8h_15e211e5d295f6e70dee42f3083f89e71" prot="public" static="no"> <name>UDP_HLEN</name> <initializer>8</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/udp.h" line="48" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/include/net/udp.h" bodystart="48" bodyend="-1"/> </memberdef> <memberdef kind="define" id="udp_8h_19981d8c2b536c2d7051382c9cf27e5b1" prot="public" static="no"> <name>udp_setflags</name> <param><defname>pcb</defname></param> <param><defname>f</defname></param> <initializer>((pcb)->flags = (f))</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/udp.h" line="91" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/include/net/udp.h" bodystart="91" bodyend="-1"/> <referencedby refid="api__msg_8c_1cab3f82cc16d96db0db1f17b872613a4" compoundref="api__msg_8c" startline="243" endline="281">do_bind</referencedby> <referencedby refid="api__msg_8c_18ad3068b45627dbe48440d4d6e1607d1" compoundref="api__msg_8c" startline="305" endline="365">do_connect</referencedby> </memberdef> </sectiondef> <sectiondef kind="func"> <memberdef kind="function" id="udp_8h_1aec0b34185f62a12ad61ba5b43b60360" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type><ref refid="err_8h_1b7190f3da5c85931fc059e0312bc1407" kindref="member">err_t</ref></type> <definition>err_t udp_bind</definition> <argsstring>(struct udp_pcb *pcb, struct ip_addr *ipaddr, uInt16 port)</argsstring> <name>udp_bind</name> <param> <type>struct <ref refid="structudp__pcb" kindref="compound">udp_pcb</ref> *</type> <declname>pcb</declname> </param> <param> <type>struct <ref refid="structip__addr" kindref="compound">ip_addr</ref> *</type> <declname>ipaddr</declname> </param> <param> <type><ref refid="types_8h_13b65128d2644e9b80cec9a69bfa7e094" kindref="member">uInt16</ref></type> <declname>port</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/udp.h" line="79"/> <referencedby refid="api__msg_8c_1cab3f82cc16d96db0db1f17b872613a4" compoundref="api__msg_8c" startline="243" endline="281">do_bind</referencedby> </memberdef> <memberdef kind="function" id="udp_8h_187dbe1b8435cb7f2e2dbfb34e952ccc0" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type><ref refid="err_8h_1b7190f3da5c85931fc059e0312bc1407" kindref="member">err_t</ref></type> <definition>err_t udp_connect</definition> <argsstring>(struct udp_pcb *pcb, struct ip_addr *ipaddr, uInt16 port)</argsstring> <name>udp_connect</name> <param> <type>struct <ref refid="structudp__pcb" kindref="compound">udp_pcb</ref> *</type> <declname>pcb</declname> </param> <param> <type>struct <ref refid="structip__addr" kindref="compound">ip_addr</ref> *</type> <declname>ipaddr</declname> </param> <param> <type><ref refid="types_8h_13b65128d2644e9b80cec9a69bfa7e094" kindref="member">uInt16</ref></type> <declname>port</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/udp.h" line="81"/> <referencedby refid="api__msg_8c_18ad3068b45627dbe48440d4d6e1607d1" compoundref="api__msg_8c" startline="305" endline="365">do_connect</referencedby> </memberdef> <memberdef kind="function" id="udp_8h_1e7f7431ce99333577d7b82b26619309e" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void udp_init</definition> <argsstring>(void)</argsstring> <name>udp_init</name> <param> <type>void</type> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/udp.h" line="97"/> <referencedby refid="tcpip_8c_161474ad2c2c25ba58cc774e2bcc4ef5f" compoundref="tcpip_8c" startline="68" endline="98">tcpip_thread</referencedby> </memberdef> <memberdef kind="function" id="udp_8h_17b338a5515606bd51976fbc5bcec9611" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void udp_input</definition> <argsstring>(struct pbuf *p, struct netif *inp)</argsstring> <name>udp_input</name> <param> <type>struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type> <declname>p</declname> </param> <param> <type>struct <ref refid="structnetif" kindref="compound">netif</ref> *</type> <declname>inp</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/udp.h" line="96"/> </memberdef> <memberdef kind="function" id="udp_8h_1e941b362859d1f88b90f625a68eface8" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type><ref refid="types_8h_1a4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref></type> <definition>uInt8 udp_lookup</definition> <argsstring>(struct ip_hdr *iphdr, struct netif *inp)</argsstring> <name>udp_lookup</name> <param> <type>struct <ref refid="structip__hdr" kindref="compound">ip_hdr</ref> *</type> <declname>iphdr</declname> </param> <param> <type>struct <ref refid="structnetif" kindref="compound">netif</ref> *</type> <declname>inp</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/udp.h" line="95"/> </memberdef> <memberdef kind="function" id="udp_8h_1a6d6430499acae43d342f0e68ddbb209" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type><ref refid="structudp__pcb" kindref="compound">udp_pcb</ref> *</type> <definition>struct udp_pcb* udp_new</definition> <argsstring>(void)</argsstring> <name>udp_new</name> <param> <type>void</type> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/udp.h" line="76"/> <referencedby refid="api__msg_8c_1cab3f82cc16d96db0db1f17b872613a4" compoundref="api__msg_8c" startline="243" endline="281">do_bind</referencedby> <referencedby refid="api__msg_8c_18ad3068b45627dbe48440d4d6e1607d1" compoundref="api__msg_8c" startline="305" endline="365">do_connect</referencedby> </memberdef> <memberdef kind="function" id="udp_8h_1e6e4e0150998bb6e38359418c7461eb1" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void udp_recv</definition> <argsstring>(struct udp_pcb *pcb, void(*recv)(void *arg, struct udp_pcb *upcb, struct pbuf *p, struct ip_addr *addr, uInt16 port), void *recv_arg)</argsstring> <name>udp_recv</name> <param> <type>struct <ref refid="structudp__pcb" kindref="compound">udp_pcb</ref> *</type> <declname>pcb</declname> </param> <param> <type>void(*)(void *arg, struct <ref refid="structudp__pcb" kindref="compound">udp_pcb</ref> *upcb, struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *p, struct <ref refid="structip__addr" kindref="compound">ip_addr</ref> *addr, <ref refid="types_8h_13b65128d2644e9b80cec9a69bfa7e094" kindref="member">uInt16</ref> port)</type> <declname>recv</declname> </param> <param> <type>void *</type> <declname>recv_arg</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/udp.h" line="87"/> <referencedby refid="api__msg_8c_1cab3f82cc16d96db0db1f17b872613a4" compoundref="api__msg_8c" startline="243" endline="281">do_bind</referencedby> <referencedby refid="api__msg_8c_18ad3068b45627dbe48440d4d6e1607d1" compoundref="api__msg_8c" startline="305" endline="365">do_connect</referencedby> </memberdef> <memberdef kind="function" id="udp_8h_13aed8e469f74f960837ebf9f34acf646" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void udp_remove</definition> <argsstring>(struct udp_pcb *pcb)</argsstring> <name>udp_remove</name> <param> <type>struct <ref refid="structudp__pcb" kindref="compound">udp_pcb</ref> *</type> <declname>pcb</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/udp.h" line="77"/> <referencedby refid="api__msg_8c_1351ca82b3580d84ee0d70f7ab033a236" compoundref="api__msg_8c" startline="208" endline="240">do_delconn</referencedby> </memberdef> <memberdef kind="function" id="udp_8h_1a4546c43981f043c0ae4514d625cc3fc" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type><ref refid="err_8h_1b7190f3da5c85931fc059e0312bc1407" kindref="member">err_t</ref></type> <definition>err_t udp_send</definition> <argsstring>(struct udp_pcb *pcb, struct pbuf *p)</argsstring> <name>udp_send</name> <param> <type>struct <ref refid="structudp__pcb" kindref="compound">udp_pcb</ref> *</type> <declname>pcb</declname> </param> <param> <type>struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type> <declname>p</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/udp.h" line="88"/> <referencedby refid="api__msg_8c_1c47e25770a5c135b4ef043b8f9608d95" compoundref="api__msg_8c" startline="419" endline="435">do_send</referencedby> </memberdef> </sectiondef> <sectiondef kind="var"> <memberdef kind="variable" id="udp_8h_1fd3ea29267b7278798fadaebb0c4ffa0" prot="public" static="no" mutable="no"> <type><ref refid="structudp__hdr" kindref="compound">udp_hdr</ref></type> <definition>struct udp_hdr PACK_STRUCT_STRUCT</definition> <argsstring></argsstring> <name>PACK_STRUCT_STRUCT</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/udp.h" line="55"/> </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: udp_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_UDP_H__</highlight></codeline> <codeline lineno="36"><highlight class="preprocessor"></highlight><highlight class="preprocessor">#define<sp/>__LWIP_UDP_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"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"<ref refid="pbuf_8h" kindref="compound">net/pbuf.h</ref>"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="41"><highlight class="normal"></highlight><highlight class="comment">//UBU<sp/></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="42"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"<ref refid="ipv4_2inet_8h" kindref="compound">net/ipv4/inet.h</ref>"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="43"><highlight class="normal"></highlight><highlight class="comment">//UBU</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="44"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"<ref refid="ipv4_2ip_8h" kindref="compound">net/ipv4/ip.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">#include<sp/>"<ref refid="err_8h" kindref="compound">net/err.h</ref>"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="47"><highlight class="normal"></highlight></codeline> <codeline lineno="48" refid="udp_8h_15e211e5d295f6e70dee42f3083f89e71" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>UDP_HLEN<sp/>8</highlight></codeline> <codeline lineno="49"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="50" refid="structudp__hdr" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structudp__hdr" kindref="compound">udp_hdr</ref><sp/>{</highlight></codeline> <codeline lineno="51"><highlight class="normal"><sp/><sp/><ref refid="structudp__hdr_1fed717f931fc0751ca53ada6e500117b" kindref="member">PACK_STRUCT_FIELD</ref>(<ref refid="types_8h_13b65128d2644e9b80cec9a69bfa7e094" kindref="member">uInt16</ref><sp/>src);</highlight></codeline> <codeline lineno="52"><highlight class="normal"><sp/><sp/><ref refid="structudp__hdr_1fed717f931fc0751ca53ada6e500117b" kindref="member">PACK_STRUCT_FIELD</ref>(<ref refid="types_8h_13b65128d2644e9b80cec9a69bfa7e094" kindref="member">uInt16</ref><sp/>dest);<sp/><sp/></highlight><highlight class="comment">/*<sp/>src/dest<sp/>UDP<sp/>ports<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="53"><highlight class="normal"><sp/><sp/><ref refid="structudp__hdr_1fed717f931fc0751ca53ada6e500117b" kindref="member">PACK_STRUCT_FIELD</ref>(<ref refid="types_8h_13b65128d2644e9b80cec9a69bfa7e094" kindref="member">uInt16</ref><sp/>len);</highlight></codeline> <codeline lineno="54"><highlight class="normal"><sp/><sp/><ref refid="structudp__hdr_1fed717f931fc0751ca53ada6e500117b" kindref="member">PACK_STRUCT_FIELD</ref>(<ref refid="types_8h_13b65128d2644e9b80cec9a69bfa7e094" kindref="member">uInt16</ref><sp/>chksum);</highlight></codeline> <codeline lineno="55"><highlight class="normal">}<sp/><ref refid="cc_8h_133623da05bb55497534c3dc26ebebeb2" kindref="member">PACK_STRUCT_STRUCT</ref>;</highlight></codeline> <codeline lineno="56"><highlight class="normal"></highlight></codeline> <codeline lineno="57" refid="udp_8h_13f1f7350e351cf43afc1cb92361539b7" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>UDP_FLAGS_NOCHKSUM<sp/>0x01</highlight></codeline> <codeline lineno="58" refid="udp_8h_17bf6b42d94a2249626fd730c52a65cb2" refkind="member"><highlight class="preprocessor"></highlight><highlight class="preprocessor">#define<sp/>UDP_FLAGS_UDPLITE<sp/><sp/>0x02</highlight></codeline> <codeline lineno="59"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="60" refid="structudp__pcb" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structudp__pcb" kindref="compound">udp_pcb</ref><sp/>{</highlight></codeline> <codeline lineno="61" refid="structudp__pcb_14bb1770f21ebaaa28f7f280f5f2697db" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structudp__pcb" kindref="compound">udp_pcb</ref><sp/>*<ref refid="structudp__pcb_14bb1770f21ebaaa28f7f280f5f2697db" kindref="member">next</ref>;</highlight></codeline> <codeline lineno="62"><highlight class="normal"></highlight></codeline> <codeline lineno="63" refid="structudp__pcb_1719ac802c8824c1f64bb0d337b590b58" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structip__addr" kindref="compound">ip_addr</ref><sp/>local_ip,<sp/><ref refid="structudp__pcb_1719ac802c8824c1f64bb0d337b590b58" kindref="member">remote_ip</ref>;</highlight></codeline> <codeline lineno="64" refid="structudp__pcb_1c1831887907d6cb95e5784c87278136c" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="types_8h_13b65128d2644e9b80cec9a69bfa7e094" kindref="member">uInt16</ref><sp/><ref refid="structudp__pcb_1189bcb0abce9e46de6ec7115d11d439a" kindref="member">local_port</ref>,<sp/><ref refid="structudp__pcb_1c1831887907d6cb95e5784c87278136c" kindref="member">remote_port</ref>;</highlight></codeline> <codeline lineno="65"><highlight class="normal"><sp/><sp/></highlight></codeline> <codeline lineno="66" refid="structudp__pcb_1826a7c3427775774f060314a0c51f72d" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="types_8h_1a4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref><sp/><ref refid="structudp__pcb_1826a7c3427775774f060314a0c51f72d" kindref="member">flags</ref>;</highlight></codeline> <codeline lineno="67" refid="structudp__pcb_15381f996e4c16d8a91ec85bb425e3e2b" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="types_8h_13b65128d2644e9b80cec9a69bfa7e094" kindref="member">uInt16</ref><sp/><ref refid="structudp__pcb_15381f996e4c16d8a91ec85bb425e3e2b" kindref="member">chksum_len</ref>;</highlight></codeline> <codeline lineno="68"><highlight class="normal"><sp/><sp/></highlight></codeline> <codeline lineno="69"><highlight class="normal"><sp/><sp/>void<sp/>(*<sp/><ref refid="structudp__pcb_1fdbf1ee819ec8af2cdf561790a3086b6" kindref="member">recv</ref>)(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*arg,<sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structudp__pcb" kindref="compound">udp_pcb</ref><sp/>*pcb,<sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*p,</highlight></codeline> <codeline lineno="70"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structip__addr" kindref="compound">ip_addr</ref><sp/>*<ref refid="structip__addr_1aca6b7136a4c4efb4e0da1384d76f4b5" kindref="member">addr</ref>,<sp/><ref refid="types_8h_13b65128d2644e9b80cec9a69bfa7e094" kindref="member">uInt16</ref><sp/>port);</highlight></codeline> <codeline lineno="71" refid="structudp__pcb_111e4c40b8868aa40d923756a60598cab" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*<ref refid="structudp__pcb_111e4c40b8868aa40d923756a60598cab" kindref="member">recv_arg</ref>;<sp/><sp/></highlight></codeline> <codeline lineno="72"><highlight class="normal">};</highlight></codeline> <codeline lineno="73"><highlight class="normal"></highlight></codeline> <codeline lineno="74"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>The<sp/>following<sp/>functions<sp/>is<sp/>the<sp/>application<sp/>layer<sp/>interface<sp/>to<sp/>the</highlight></codeline> <codeline lineno="75"><highlight class="comment"><sp/><sp/><sp/>UDP<sp/>code.<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="76"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structudp__pcb" kindref="compound">udp_pcb</ref><sp/>*<sp/><ref refid="udp_8h_1a6d6430499acae43d342f0e68ddbb209" kindref="member">udp_new</ref><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="77"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="udp_8h_13aed8e469f74f960837ebf9f34acf646" kindref="member">udp_remove</ref><sp/><sp/><sp/><sp/><sp/>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structudp__pcb" kindref="compound">udp_pcb</ref><sp/>*pcb);</highlight></codeline> <codeline lineno="78"><highlight class="normal"><ref refid="err_8h_1b7190f3da5c85931fc059e0312bc1407" kindref="member">err_t</ref><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="udp_8h_1aec0b34185f62a12ad61ba5b43b60360" kindref="member">udp_bind</ref><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structudp__pcb" kindref="compound">udp_pcb</ref><sp/>*pcb,<sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structip__addr" kindref="compound">ip_addr</ref><sp/>*ipaddr,</highlight></codeline> <codeline lineno="79"><highlight class="normal"><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/><ref refid="types_8h_13b65128d2644e9b80cec9a69bfa7e094" kindref="member">uInt16</ref><sp/>port);</highlight></codeline> <codeline lineno="80"><highlight class="normal"><ref refid="err_8h_1b7190f3da5c85931fc059e0312bc1407" kindref="member">err_t</ref><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="udp_8h_187dbe1b8435cb7f2e2dbfb34e952ccc0" kindref="member">udp_connect</ref><sp/><sp/><sp/><sp/>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structudp__pcb" kindref="compound">udp_pcb</ref><sp/>*pcb,<sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structip__addr" kindref="compound">ip_addr</ref><sp/>*ipaddr,</highlight></codeline> <codeline lineno="81"><highlight class="normal"><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/><ref refid="types_8h_13b65128d2644e9b80cec9a69bfa7e094" kindref="member">uInt16</ref><sp/>port);</highlight></codeline> <codeline lineno="82"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="udp_8h_1e6e4e0150998bb6e38359418c7461eb1" kindref="member">udp_recv</ref><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structudp__pcb" kindref="compound">udp_pcb</ref><sp/>*pcb,</highlight></codeline> <codeline lineno="83"><highlight class="normal"><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/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>(*<sp/><ref refid="structudp__pcb_1fdbf1ee819ec8af2cdf561790a3086b6" kindref="member">recv</ref>)(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*arg,<sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structudp__pcb" kindref="compound">udp_pcb</ref><sp/>*upcb,</highlight></codeline> <codeline lineno="84"><highlight class="normal"><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/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*p,</highlight></codeline> <codeline lineno="85"><highlight class="normal"><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/></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="86"><highlight class="normal"><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/><ref refid="types_8h_13b65128d2644e9b80cec9a69bfa7e094" kindref="member">uInt16</ref><sp/>port),</highlight></codeline> <codeline lineno="87"><highlight class="normal"><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/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*<ref refid="structudp__pcb_111e4c40b8868aa40d923756a60598cab" kindref="member">recv_arg</ref>);</highlight></codeline> <codeline lineno="88"><highlight class="normal"><ref refid="err_8h_1b7190f3da5c85931fc059e0312bc1407" kindref="member">err_t</ref><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="udp_8h_1a4546c43981f043c0ae4514d625cc3fc" kindref="member">udp_send</ref><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structudp__pcb" kindref="compound">udp_pcb</ref><sp/>*pcb,<sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*p);</highlight></codeline> <codeline lineno="89"><highlight class="normal"></highlight></codeline> <codeline lineno="90" refid="udp_8h_137c8037a85578f1eeeef334f89a0a746" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>udp_flags(pcb)<sp/><sp/>((pcb)->flags)</highlight></codeline> <codeline lineno="91" refid="udp_8h_19981d8c2b536c2d7051382c9cf27e5b1" refkind="member"><highlight class="preprocessor"></highlight><highlight class="preprocessor">#define<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>udp_setflags(pcb,<sp/>f)<sp/><sp/>((pcb)->flags<sp/>=<sp/>(f))</highlight></codeline> <codeline lineno="92"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="93"><highlight class="normal"></highlight></codeline> <codeline lineno="94"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>The<sp/>following<sp/>functions<sp/>is<sp/>the<sp/>lower<sp/>layer<sp/>interface<sp/>to<sp/>UDP.<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="95"><highlight class="normal"><ref refid="types_8h_1a4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="udp_8h_1e941b362859d1f88b90f625a68eface8" kindref="member">udp_lookup</ref><sp/><sp/><sp/><sp/><sp/>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structip__hdr" kindref="compound">ip_hdr</ref><sp/>*iphdr,<sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structnetif" kindref="compound">netif</ref><sp/>*inp);</highlight></codeline> <codeline lineno="96"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="udp_8h_17b338a5515606bd51976fbc5bcec9611" kindref="member">udp_input</ref><sp/><sp/><sp/><sp/><sp/><sp/>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*p,<sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structnetif" kindref="compound">netif</ref><sp/>*inp);</highlight></codeline> <codeline lineno="97"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="udp_8h_1e7f7431ce99333577d7b82b26619309e" kindref="member">udp_init</ref><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="98"><highlight class="normal"></highlight></codeline> <codeline lineno="99"><highlight class="normal"></highlight></codeline> <codeline lineno="100"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/></highlight><highlight class="comment">/*<sp/>__LWIP_UDP_H__<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="101"><highlight class="normal"></highlight></codeline> <codeline lineno="102"><highlight class="normal"></highlight></codeline> </programlisting> <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/udp.h"/> </compounddef> </doxygen>