Newer
Older
UbixOS / doc / xml / pbuf_8h.xml
<?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="pbuf_8h" kind="file">
    <compoundname>pbuf.h</compoundname>
    <includes refid="debug_8h" local="yes">net/debug.h</includes>
    <includes refid="arch_8h" local="yes">net/arch.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="ipv4_2icmp_8h" local="yes">src/sys/include/net/ipv4/icmp.h</includedby>
    <includedby refid="ipv4_2inet_8h" local="yes">src/sys/include/net/ipv4/inet.h</includedby>
    <includedby refid="ipv4_2ip_8h" local="yes">src/sys/include/net/ipv4/ip.h</includedby>
    <includedby refid="ipv6_2inet_8h" local="yes">src/sys/include/net/ipv6/inet.h</includedby>
    <includedby refid="netif_8h" local="yes">src/sys/include/net/netif.h</includedby>
    <includedby refid="tcp_8h" local="yes">src/sys/include/net/tcp.h</includedby>
    <includedby refid="tcpip_8h" local="yes">src/sys/include/net/tcpip.h</includedby>
    <includedby refid="udp_8h" local="yes">src/sys/include/net/udp.h</includedby>
    <includedby refid="arp_8h" local="yes">src/sys/include/netif/arp.h</includedby>
    <includedby refid="tcpdump_8h" local="yes">src/sys/include/netif/tcpdump.h</includedby>
    <includedby refid="tcpip_8c" local="yes">src/sys/net/api/tcpip.c</includedby>
    <includedby refid="ethernetif_8c" local="yes">src/sys/net/netif/ethernetif.c</includedby>
    <incdepgraph>
      <node id="956">
        <label>arch/cpu.h</label>
        <link refid="cpu_8h"/>
      </node>
      <node id="955">
        <label>net/arch.h</label>
        <link refid="arch_8h"/>
        <childnode refid="956" relation="include">
        </childnode>
        <childnode refid="957" relation="include">
        </childnode>
      </node>
      <node id="953">
        <label>src/sys/include/net/pbuf.h</label>
        <link refid="pbuf.h"/>
        <childnode refid="954" relation="include">
        </childnode>
        <childnode refid="955" relation="include">
        </childnode>
      </node>
      <node id="954">
        <label>net/debug.h</label>
        <link refid="debug_8h"/>
      </node>
      <node id="957">
        <label>arch/cc.h</label>
        <link refid="cc_8h"/>
      </node>
    </incdepgraph>
    <invincdepgraph>
      <node id="969">
        <label>src/sys/net/net/udpecho.c</label>
        <link refid="udpecho_8c"/>
      </node>
      <node id="976">
        <label>src/sys/include/net/ipv4/ip.h</label>
        <link refid="ipv4_2ip_8h"/>
        <childnode refid="959" relation="include">
        </childnode>
        <childnode refid="960" relation="include">
        </childnode>
        <childnode refid="971" relation="include">
        </childnode>
        <childnode refid="977" relation="include">
        </childnode>
        <childnode refid="963" relation="include">
        </childnode>
        <childnode refid="978" relation="include">
        </childnode>
        <childnode refid="972" relation="include">
        </childnode>
        <childnode refid="973" relation="include">
        </childnode>
      </node>
      <node id="973">
        <label>src/sys/net/netif/tcpdump.c</label>
        <link refid="tcpdump_8c"/>
      </node>
      <node id="975">
        <label>src/sys/include/net/netif.h</label>
        <link refid="netif_8h"/>
        <childnode refid="970" relation="include">
        </childnode>
        <childnode refid="976" relation="include">
        </childnode>
        <childnode refid="979" relation="include">
        </childnode>
        <childnode refid="981" relation="include">
        </childnode>
        <childnode refid="982" relation="include">
        </childnode>
      </node>
      <node id="972">
        <label>src/sys/net/netif/loopif.c</label>
        <link refid="loopif_8c"/>
      </node>
      <node id="983">
        <label>src/sys/include/net/ipv6/inet.h</label>
        <link refid="ipv6_2inet_8h"/>
      </node>
      <node id="977">
        <label>src/sys/include/net/udp.h</label>
        <link refid="udp_8h"/>
        <childnode refid="959" relation="include">
        </childnode>
        <childnode refid="960" relation="include">
        </childnode>
        <childnode refid="963" relation="include">
        </childnode>
        <childnode refid="973" relation="include">
        </childnode>
      </node>
      <node id="979">
        <label>src/sys/include/netif/arp.h</label>
        <link refid="arp_8h"/>
        <childnode refid="978" relation="include">
        </childnode>
        <childnode refid="980" relation="include">
        </childnode>
      </node>
      <node id="971">
        <label>src/sys/include/net/tcp.h</label>
        <link refid="tcp_8h"/>
        <childnode refid="959" relation="include">
        </childnode>
        <childnode refid="960" relation="include">
        </childnode>
        <childnode refid="963" relation="include">
        </childnode>
        <childnode refid="972" relation="include">
        </childnode>
        <childnode refid="973" relation="include">
        </childnode>
      </node>
      <node id="980">
        <label>src/sys/net/netif/ethernetif.c</label>
        <link refid="ethernetif_8c"/>
      </node>
      <node id="978">
        <label>src/sys/net/netif/arp.c</label>
        <link refid="arp_8c"/>
      </node>
      <node id="970">
        <label>src/sys/include/net/ipv4/icmp.h</label>
        <link refid="ipv4_2icmp_8h"/>
        <childnode refid="971" relation="include">
        </childnode>
      </node>
      <node id="967">
        <label>src/sys/net/net/bot.c</label>
        <link refid="bot_8c"/>
      </node>
      <node id="963">
        <label>src/sys/net/api/tcpip.c</label>
        <link refid="tcpip_8c"/>
      </node>
      <node id="961">
        <label>src/sys/include/net/tcpip.h</label>
        <link refid="tcpip_8h"/>
        <childnode refid="962" relation="include">
        </childnode>
        <childnode refid="963" relation="include">
        </childnode>
        <childnode refid="964" relation="include">
        </childnode>
      </node>
      <node id="960">
        <label>src/sys/include/net/api_msg.h</label>
        <link refid="api__msg_8h"/>
        <childnode refid="961" relation="include">
        </childnode>
        <childnode refid="965" relation="include">
        </childnode>
        <childnode refid="962" relation="include">
        </childnode>
      </node>
      <node id="981">
        <label>src/sys/include/netif/ethernetif.h</label>
        <link refid="ethernetif_8h"/>
        <childnode refid="964" relation="include">
        </childnode>
      </node>
      <node id="968">
        <label>src/sys/net/net/shell.c</label>
        <link refid="shell_8c"/>
      </node>
      <node id="965">
        <label>src/sys/net/api/api_lib.c</label>
        <link refid="api__lib_8c"/>
      </node>
      <node id="964">
        <label>src/sys/net/net/init.c</label>
        <link refid="init_8c"/>
      </node>
      <node id="984">
        <label>src/sys/include/netif/tcpdump.h</label>
        <link refid="tcpdump_8h"/>
        <childnode refid="964" relation="include">
        </childnode>
        <childnode refid="972" relation="include">
        </childnode>
        <childnode refid="973" relation="include">
        </childnode>
      </node>
      <node id="959">
        <label>src/sys/include/net/api.h</label>
        <link refid="api_8h"/>
        <childnode refid="960" relation="include">
        </childnode>
        <childnode refid="965" relation="include">
        </childnode>
        <childnode refid="966" relation="include">
        </childnode>
        <childnode refid="967" relation="include">
        </childnode>
        <childnode refid="968" relation="include">
        </childnode>
        <childnode refid="969" relation="include">
        </childnode>
      </node>
      <node id="982">
        <label>src/sys/include/netif/loopif.h</label>
        <link refid="loopif_8h"/>
        <childnode refid="964" relation="include">
        </childnode>
        <childnode refid="972" relation="include">
        </childnode>
      </node>
      <node id="966">
        <label>src/sys/net/api/sockets.c</label>
        <link refid="sockets_8c"/>
      </node>
      <node id="962">
        <label>src/sys/net/api/api_msg.c</label>
        <link refid="api__msg_8c"/>
      </node>
      <node id="958">
        <label>src/sys/include/net/pbuf.h</label>
        <link refid="pbuf.h"/>
        <childnode refid="959" relation="include">
        </childnode>
        <childnode refid="960" relation="include">
        </childnode>
        <childnode refid="970" relation="include">
        </childnode>
        <childnode refid="974" relation="include">
        </childnode>
        <childnode refid="976" relation="include">
        </childnode>
        <childnode refid="983" relation="include">
        </childnode>
        <childnode refid="975" relation="include">
        </childnode>
        <childnode refid="971" relation="include">
        </childnode>
        <childnode refid="961" relation="include">
        </childnode>
        <childnode refid="977" relation="include">
        </childnode>
        <childnode refid="979" relation="include">
        </childnode>
        <childnode refid="984" relation="include">
        </childnode>
        <childnode refid="963" relation="include">
        </childnode>
        <childnode refid="980" relation="include">
        </childnode>
      </node>
      <node id="974">
        <label>src/sys/include/net/ipv4/inet.h</label>
        <link refid="ipv4_2inet_8h"/>
        <childnode refid="975" relation="include">
        </childnode>
        <childnode refid="977" relation="include">
        </childnode>
        <childnode refid="978" relation="include">
        </childnode>
        <childnode refid="973" relation="include">
        </childnode>
      </node>
    </invincdepgraph>
    <innerclass refid="structpbuf" prot="public">pbuf</innerclass>
      <sectiondef kind="define">
      <memberdef kind="define" id="pbuf_8h_1a804921a6fd47216f7a7f3fac704b3d9" prot="public" static="no">
        <name>PBUF_FLAG_POOL</name>
        <initializer>0x02</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/pbuf.h" line="63" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/include/net/pbuf.h" bodystart="63" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="pbuf_8h_1cf2ae058c765838582f1c099df7e16a1" prot="public" static="no">
        <name>PBUF_FLAG_RAM</name>
        <initializer>0x00</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/pbuf.h" line="61" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/include/net/pbuf.h" bodystart="61" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="pbuf_8h_163940b83910f19c67f77f0f329d5ab87" prot="public" static="no">
        <name>PBUF_FLAG_ROM</name>
        <initializer>0x01</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/pbuf.h" line="62" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/include/net/pbuf.h" bodystart="62" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="pbuf_8h_1ae0fea237167bb06ea4dc5333df5b0a7" prot="public" static="no">
        <name>PBUF_IP_HLEN</name>
        <initializer>20</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/pbuf.h" line="44" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/include/net/pbuf.h" bodystart="44" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="pbuf_8h_1f9da2e1ca60dc0c584938ccc5d662307" prot="public" static="no">
        <name>PBUF_TRANSPORT_HLEN</name>
        <initializer>20</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/pbuf.h" line="43" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/include/net/pbuf.h" bodystart="43" bodyend="-1"/>
      </memberdef>
      </sectiondef>
      <sectiondef kind="enum">
      <memberdef kind="enum" id="pbuf_8h_1b3c589840cc5a202e7278f41463f97e7" prot="public" static="no">
        <name>pbuf_flag</name>
        <enumvalue id="pbuf_8h_1b3c589840cc5a202e7278f41463f97e7c5e9f28455bca98944a030d4b84ecfab" prot="public">
          <name>PBUF_RAM</name>
          <briefdescription>
          </briefdescription>
          <detaileddescription>
          </detaileddescription>
        </enumvalue>
        <enumvalue id="pbuf_8h_1b3c589840cc5a202e7278f41463f97e7c120b0fe39efe35bb682e4aa3b82e2c9" prot="public">
          <name>PBUF_ROM</name>
          <briefdescription>
          </briefdescription>
          <detaileddescription>
          </detaileddescription>
        </enumvalue>
        <enumvalue id="pbuf_8h_1b3c589840cc5a202e7278f41463f97e7e969347127387b9b59a23ccd24b76d21" prot="public">
          <name>PBUF_POOL</name>
          <briefdescription>
          </briefdescription>
          <detaileddescription>
          </detaileddescription>
        </enumvalue>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/pbuf.h" line="53" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/include/net/pbuf.h" bodystart="53" bodyend="57"/>
      </memberdef>
      <memberdef kind="enum" id="pbuf_8h_1ee1baa59bb2f85ba575b5a8619ac1ebf" prot="public" static="no">
        <name>pbuf_layer</name>
        <enumvalue id="pbuf_8h_1ee1baa59bb2f85ba575b5a8619ac1ebf2ded3594a3977f8bf9cf09552be327b5" prot="public">
          <name>PBUF_TRANSPORT</name>
          <briefdescription>
          </briefdescription>
          <detaileddescription>
          </detaileddescription>
        </enumvalue>
        <enumvalue id="pbuf_8h_1ee1baa59bb2f85ba575b5a8619ac1ebffcc1e506061ba69dfa142eb6b3da5f13" prot="public">
          <name>PBUF_IP</name>
          <briefdescription>
          </briefdescription>
          <detaileddescription>
          </detaileddescription>
        </enumvalue>
        <enumvalue id="pbuf_8h_1ee1baa59bb2f85ba575b5a8619ac1ebfb4de441e737330558b609a990cd17346" prot="public">
          <name>PBUF_LINK</name>
          <briefdescription>
          </briefdescription>
          <detaileddescription>
          </detaileddescription>
        </enumvalue>
        <enumvalue id="pbuf_8h_1ee1baa59bb2f85ba575b5a8619ac1ebf21116654fbab6d5a4dfeb87a1bb8f0ba" prot="public">
          <name>PBUF_RAW</name>
          <briefdescription>
          </briefdescription>
          <detaileddescription>
          </detaileddescription>
        </enumvalue>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/pbuf.h" line="46" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/include/net/pbuf.h" bodystart="46" bodyend="51"/>
      </memberdef>
      </sectiondef>
      <sectiondef kind="func">
      <memberdef kind="function" id="pbuf_8h_1bb6c8efa7f7739e71cb286c6dd4a47ef" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="structpbuf" kindref="compound">pbuf</ref> *</type>
        <definition>struct pbuf* pbuf_alloc</definition>
        <argsstring>(pbuf_layer l, uInt16 size, pbuf_flag flag)</argsstring>
        <name>pbuf_alloc</name>
        <param>
          <type><ref refid="pbuf_8h_1ee1baa59bb2f85ba575b5a8619ac1ebf" kindref="member">pbuf_layer</ref></type>
          <declname>l</declname>
        </param>
        <param>
          <type><ref refid="types_8h_13b65128d2644e9b80cec9a69bfa7e094" kindref="member">uInt16</ref></type>
          <declname>size</declname>
        </param>
        <param>
          <type><ref refid="pbuf_8h_1b3c589840cc5a202e7278f41463f97e7" kindref="member">pbuf_flag</ref></type>
          <declname>flag</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/pbuf.h" line="105"/>
        <referencedby refid="arp_8c_19d1287b9a80c370797b2ac5c63f70e2e" compoundref="arp_8c" startline="266" endline="302">arp_query</referencedby>
        <referencedby refid="ethernetif_8c_1eb49a49ab62789d8e32fddf180d52ebf" compoundref="ethernetif_8c" startline="186" endline="263">ethernetif_output</referencedby>
        <referencedby refid="loopif_8c_172717f7b688d6aea03dacce84437632c" compoundref="loopif_8c" startline="46" endline="68">loopif_output</referencedby>
        <referencedby refid="ethernetif_8c_170bd3f580cdc400e75161e9751944836" compoundref="ethernetif_8c" startline="142" endline="173">low_level_input</referencedby>
        <referencedby refid="api__lib_8c_17770b72b0ae9e741fbb81f222e334a1a" compoundref="api__lib_8c" startline="78" endline="90">netbuf_alloc</referencedby>
        <referencedby refid="api__lib_8c_1f038b56dbdd67a6e48bf0125c8ef61ba" compoundref="api__lib_8c" startline="102" endline="111">netbuf_ref</referencedby>
      </memberdef>
      <memberdef kind="function" id="pbuf_8h_1831c9a72bda1d3bd4c7b96f5a0e3b891" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void pbuf_chain</definition>
        <argsstring>(struct pbuf *h, struct pbuf *t)</argsstring>
        <name>pbuf_chain</name>
        <param>
          <type>struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type>
          <declname>h</declname>
        </param>
        <param>
          <type>struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type>
          <declname>t</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/pbuf.h" line="144"/>
        <referencedby refid="ethernetif_8c_1eb49a49ab62789d8e32fddf180d52ebf" compoundref="ethernetif_8c" startline="186" endline="263">ethernetif_output</referencedby>
        <referencedby refid="api__lib_8c_1631e8bddd99b2397cd0b26973c659602" compoundref="api__lib_8c" startline="114" endline="119">netbuf_chain</referencedby>
      </memberdef>
      <memberdef kind="function" id="pbuf_8h_18e606e36100a9b82f68b694f3f1d0b36" 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 pbuf_clen</definition>
        <argsstring>(struct pbuf *p)</argsstring>
        <name>pbuf_clen</name>
        <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/pbuf.h" line="137"/>
      </memberdef>
      <memberdef kind="function" id="pbuf_8h_1bf3d29c4f43986b4cb5eb314d5b9729d" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="structpbuf" kindref="compound">pbuf</ref> *</type>
        <definition>struct pbuf* pbuf_dechain</definition>
        <argsstring>(struct pbuf *p)</argsstring>
        <name>pbuf_dechain</name>
        <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/pbuf.h" line="150"/>
      </memberdef>
      <memberdef kind="function" id="pbuf_8h_1334112aa2ac402c254d604c0dbbbb746" 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 pbuf_free</definition>
        <argsstring>(struct pbuf *p)</argsstring>
        <name>pbuf_free</name>
        <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/pbuf.h" line="132"/>
        <referencedby refid="arp_8c_157a25dd51cf73f048ad5364ecc2f040b" compoundref="arp_8c" startline="197" endline="250">arp_arp_input</referencedby>
        <referencedby refid="ethernetif_8c_1687c1030eeb3939b9aa8e1a0811c301a" compoundref="ethernetif_8c" startline="275" endline="306">ethernetif_input</referencedby>
        <referencedby refid="ethernetif_8c_1eb49a49ab62789d8e32fddf180d52ebf" compoundref="ethernetif_8c" startline="186" endline="263">ethernetif_output</referencedby>
        <referencedby refid="api__lib_8c_17770b72b0ae9e741fbb81f222e334a1a" compoundref="api__lib_8c" startline="78" endline="90">netbuf_alloc</referencedby>
        <referencedby refid="api__lib_8c_19dfd3ddfe0ec65009cb140c68404b09d" compoundref="api__lib_8c" startline="66" endline="75">netbuf_delete</referencedby>
        <referencedby refid="api__lib_8c_102f82348ac23431a4b1512feae25f26b" compoundref="api__lib_8c" startline="93" endline="99">netbuf_free</referencedby>
        <referencedby refid="api__lib_8c_1f038b56dbdd67a6e48bf0125c8ef61ba" compoundref="api__lib_8c" startline="102" endline="111">netbuf_ref</referencedby>
        <referencedby refid="api__lib_8c_1b411221f912a6d9e4c82ac3963989403" compoundref="api__lib_8c" startline="227" endline="278">netconn_delete</referencedby>
        <referencedby refid="api__msg_8c_15271a23a432de3322f8fa228a3f3a11f" compoundref="api__msg_8c" startline="47" endline="63">recv_tcp</referencedby>
        <referencedby refid="api__msg_8c_19920c045f07d61ccb1022a0af7feb0ed" compoundref="api__msg_8c" startline="66" endline="93">recv_udp</referencedby>
        <referencedby refid="tcpip_8c_1e510f195171bed8499ae94e264a92717" compoundref="tcpip_8c" startline="101" endline="118">tcpip_input</referencedby>
      </memberdef>
      <memberdef kind="function" id="pbuf_8h_1c83243784ae907d307b4ac444282ccc5" 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 pbuf_header</definition>
        <argsstring>(struct pbuf *p, Int16 header_size)</argsstring>
        <name>pbuf_header</name>
        <param>
          <type>struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type>
          <declname>p</declname>
        </param>
        <param>
          <type><ref refid="types_8h_1292a71e839a94f0bafde3510df52d972" kindref="member">Int16</ref></type>
          <declname>header_size</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/pbuf.h" line="119"/>
        <referencedby refid="ethernetif_8c_1687c1030eeb3939b9aa8e1a0811c301a" compoundref="ethernetif_8c" startline="275" endline="306">ethernetif_input</referencedby>
        <referencedby refid="ethernetif_8c_1eb49a49ab62789d8e32fddf180d52ebf" compoundref="ethernetif_8c" startline="186" endline="263">ethernetif_output</referencedby>
      </memberdef>
      <memberdef kind="function" id="pbuf_8h_1a98d7fe8196cfd072a5c2b8de4ea5d1e" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void pbuf_init</definition>
        <argsstring>(void)</argsstring>
        <name>pbuf_init</name>
        <param>
          <type>void</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/pbuf.h" line="85"/>
        <referencedby refid="init_8c_122b2914249628f6cba7d4e1f138c969f" compoundref="init_8c" startline="50" endline="63">net_init</referencedby>
      </memberdef>
      <memberdef kind="function" id="pbuf_8h_12acee36fb0831879ffa1c45598bc0a0f" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void pbuf_realloc</definition>
        <argsstring>(struct pbuf *p, uInt16 size)</argsstring>
        <name>pbuf_realloc</name>
        <param>
          <type>struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type>
          <declname>p</declname>
        </param>
        <param>
          <type><ref refid="types_8h_13b65128d2644e9b80cec9a69bfa7e094" kindref="member">uInt16</ref></type>
          <declname>size</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/pbuf.h" line="111"/>
      </memberdef>
      <memberdef kind="function" id="pbuf_8h_177f6bbd69e45e542014d9c547c7da74e" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void pbuf_ref</definition>
        <argsstring>(struct pbuf *p)</argsstring>
        <name>pbuf_ref</name>
        <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/pbuf.h" line="125"/>
      </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&apos;&apos;<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/>&lt;adam@sics.se&gt;</highlight></codeline>
<codeline lineno="32"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="33"><highlight class="comment"><sp/>*<sp/>$Id: pbuf_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="comment">/*-----------------------------------------------------------------------------------*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="36"><highlight class="normal"></highlight><highlight class="preprocessor">#ifndef<sp/>__LWIP_PBUF_H__</highlight></codeline>
<codeline lineno="37"><highlight class="preprocessor"></highlight><highlight class="preprocessor">#define<sp/>__LWIP_PBUF_H__</highlight></codeline>
<codeline lineno="38"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="39"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;<ref refid="debug_8h" kindref="compound">net/debug.h</ref>&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="40"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;<ref refid="arch_8h" kindref="compound">net/arch.h</ref>&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="41"><highlight class="normal"></highlight></codeline>
<codeline lineno="42"><highlight class="normal"></highlight></codeline>
<codeline lineno="43" refid="pbuf_8h_1f9da2e1ca60dc0c584938ccc5d662307" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>PBUF_TRANSPORT_HLEN<sp/>20</highlight></codeline>
<codeline lineno="44" refid="pbuf_8h_1ae0fea237167bb06ea4dc5333df5b0a7" refkind="member"><highlight class="preprocessor"></highlight><highlight class="preprocessor">#define<sp/>PBUF_IP_HLEN<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>20</highlight></codeline>
<codeline lineno="45"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="46" refid="pbuf_8h_1ee1baa59bb2f85ba575b5a8619ac1ebf" refkind="member"><highlight class="normal"></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">enum</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="47"><highlight class="normal"><sp/><sp/><ref refid="pbuf_8h_1ee1baa59bb2f85ba575b5a8619ac1ebf2ded3594a3977f8bf9cf09552be327b5" kindref="member">PBUF_TRANSPORT</ref>,</highlight></codeline>
<codeline lineno="48"><highlight class="normal"><sp/><sp/><ref refid="pbuf_8h_1ee1baa59bb2f85ba575b5a8619ac1ebffcc1e506061ba69dfa142eb6b3da5f13" kindref="member">PBUF_IP</ref>,</highlight></codeline>
<codeline lineno="49"><highlight class="normal"><sp/><sp/><ref refid="pbuf_8h_1ee1baa59bb2f85ba575b5a8619ac1ebfb4de441e737330558b609a990cd17346" kindref="member">PBUF_LINK</ref>,</highlight></codeline>
<codeline lineno="50"><highlight class="normal"><sp/><sp/><ref refid="pbuf_8h_1ee1baa59bb2f85ba575b5a8619ac1ebf21116654fbab6d5a4dfeb87a1bb8f0ba" kindref="member">PBUF_RAW</ref></highlight></codeline>
<codeline lineno="51"><highlight class="normal">}<sp/><ref refid="pbuf_8h_1ee1baa59bb2f85ba575b5a8619ac1ebf" kindref="member">pbuf_layer</ref>;</highlight></codeline>
<codeline lineno="52"><highlight class="normal"></highlight></codeline>
<codeline lineno="53" refid="pbuf_8h_1b3c589840cc5a202e7278f41463f97e7" refkind="member"><highlight class="normal"></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">enum</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="54"><highlight class="normal"><sp/><sp/><ref refid="pbuf_8h_1b3c589840cc5a202e7278f41463f97e7c5e9f28455bca98944a030d4b84ecfab" kindref="member">PBUF_RAM</ref>,</highlight></codeline>
<codeline lineno="55"><highlight class="normal"><sp/><sp/><ref refid="pbuf_8h_1b3c589840cc5a202e7278f41463f97e7c120b0fe39efe35bb682e4aa3b82e2c9" kindref="member">PBUF_ROM</ref>,</highlight></codeline>
<codeline lineno="56"><highlight class="normal"><sp/><sp/><ref refid="pbuf_8h_1b3c589840cc5a202e7278f41463f97e7e969347127387b9b59a23ccd24b76d21" kindref="member">PBUF_POOL</ref></highlight></codeline>
<codeline lineno="57"><highlight class="normal">}<sp/><ref refid="pbuf_8h_1b3c589840cc5a202e7278f41463f97e7" kindref="member">pbuf_flag</ref>;</highlight></codeline>
<codeline lineno="58"><highlight class="normal"></highlight></codeline>
<codeline lineno="59"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>Definitions<sp/>for<sp/>the<sp/>pbuf<sp/>flag<sp/>field<sp/>(these<sp/>are<sp/>not<sp/>the<sp/>flags<sp/>that</highlight></codeline>
<codeline lineno="60"><highlight class="comment"><sp/><sp/><sp/>are<sp/>passed<sp/>to<sp/>pbuf_alloc()).<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="61" refid="pbuf_8h_1cf2ae058c765838582f1c099df7e16a1" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>PBUF_FLAG_RAM<sp/><sp/><sp/>0x00<sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>Flags<sp/>that<sp/>pbuf<sp/>data<sp/>is<sp/>stored<sp/>in<sp/>RAM.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="62" refid="pbuf_8h_163940b83910f19c67f77f0f329d5ab87" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>PBUF_FLAG_ROM<sp/><sp/><sp/>0x01<sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>Flags<sp/>that<sp/>pbuf<sp/>data<sp/>is<sp/>stored<sp/>in<sp/>ROM.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="63" refid="pbuf_8h_1a804921a6fd47216f7a7f3fac704b3d9" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>PBUF_FLAG_POOL<sp/><sp/>0x02<sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>Flags<sp/>that<sp/>the<sp/>pbuf<sp/>comes<sp/>from<sp/>the</highlight></codeline>
<codeline lineno="64"><highlight class="comment"><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/>pbuf<sp/>pool.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="65"><highlight class="normal"></highlight></codeline>
<codeline lineno="66" refid="structpbuf" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>{</highlight></codeline>
<codeline lineno="67" refid="structpbuf_15e5763c94fd18d78937b0b58ce7df341" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*<ref refid="structpbuf_15e5763c94fd18d78937b0b58ce7df341" kindref="member">next</ref>;</highlight></codeline>
<codeline lineno="68"><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="69"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>high<sp/>4<sp/>bits,<sp/>flags,<sp/>low<sp/>4<sp/>bits<sp/>reference<sp/>count<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="70" refid="structpbuf_1a8c1fc523add879c501909327c60a419" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="types_8h_1a4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref><sp/><ref refid="structpbuf_1577f939137bc908b0256e24b517c705c" kindref="member">flags</ref>,<sp/><ref refid="structpbuf_1a8c1fc523add879c501909327c60a419" kindref="member">ref</ref>;</highlight></codeline>
<codeline lineno="71" refid="structpbuf_18d32dc3e964369d4eec638fc37fbc460" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*<ref refid="structpbuf_18d32dc3e964369d4eec638fc37fbc460" kindref="member">payload</ref>;</highlight></codeline>
<codeline lineno="72"><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="73"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Total<sp/>length<sp/>of<sp/>buffer<sp/>+<sp/>additionally<sp/>chained<sp/>buffers.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="74" refid="structpbuf_13b42932c0b26c9ff2b8fe88bd25fb127" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="types_8h_13b65128d2644e9b80cec9a69bfa7e094" kindref="member">uInt16</ref><sp/><ref refid="structpbuf_13b42932c0b26c9ff2b8fe88bd25fb127" kindref="member">tot_len</ref>;</highlight></codeline>
<codeline lineno="75"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Length<sp/>of<sp/>this<sp/>buffer.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="76" refid="structpbuf_1238f00a0024a32992599c9d1abf9bb44" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="types_8h_13b65128d2644e9b80cec9a69bfa7e094" kindref="member">uInt16</ref><sp/><ref refid="structpbuf_1238f00a0024a32992599c9d1abf9bb44" kindref="member">len</ref>;<sp/><sp/></highlight></codeline>
<codeline lineno="77"><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="78"><highlight class="normal">};</highlight></codeline>
<codeline lineno="79"><highlight class="normal"></highlight></codeline>
<codeline lineno="80"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>pbuf_init():</highlight></codeline>
<codeline lineno="81"><highlight class="comment"></highlight></codeline>
<codeline lineno="82"><highlight class="comment"><sp/><sp/><sp/>Initializes<sp/>the<sp/>pbuf<sp/>module.<sp/>The<sp/>num<sp/>parameter<sp/>determines<sp/>how<sp/>many</highlight></codeline>
<codeline lineno="83"><highlight class="comment"><sp/><sp/><sp/>pbufs<sp/>that<sp/>should<sp/>be<sp/>allocated<sp/>to<sp/>the<sp/>pbuf<sp/>pool,<sp/>and<sp/>the<sp/>size</highlight></codeline>
<codeline lineno="84"><highlight class="comment"><sp/><sp/><sp/>parameter<sp/>specifies<sp/>the<sp/>size<sp/>of<sp/>the<sp/>data<sp/>allocated<sp/>to<sp/>those.<sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="85"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="pbuf_8h_1a98d7fe8196cfd072a5c2b8de4ea5d1e" kindref="member">pbuf_init</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="86"><highlight class="normal"></highlight></codeline>
<codeline lineno="87"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>pbuf_alloc():</highlight></codeline>
<codeline lineno="88"><highlight class="comment"><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="89"><highlight class="comment"><sp/><sp/><sp/>Allocates<sp/>a<sp/>pbuf<sp/>at<sp/>protocol<sp/>layer<sp/>l.<sp/>The<sp/>actual<sp/>memory<sp/>allocated</highlight></codeline>
<codeline lineno="90"><highlight class="comment"><sp/><sp/><sp/>for<sp/>the<sp/>pbuf<sp/>is<sp/>determined<sp/>by<sp/>the<sp/>layer<sp/>at<sp/>which<sp/>the<sp/>pbuf<sp/>is</highlight></codeline>
<codeline lineno="91"><highlight class="comment"><sp/><sp/><sp/>allocated<sp/>and<sp/>the<sp/>requested<sp/>size<sp/>(from<sp/>the<sp/>size<sp/>parameter).<sp/>The</highlight></codeline>
<codeline lineno="92"><highlight class="comment"><sp/><sp/><sp/>flag<sp/>parameter<sp/>decides<sp/>how<sp/>and<sp/>where<sp/>the<sp/>pbuf<sp/>should<sp/>be<sp/>allocated</highlight></codeline>
<codeline lineno="93"><highlight class="comment"><sp/><sp/><sp/>as<sp/>follows:</highlight></codeline>
<codeline lineno="94"><highlight class="comment"><sp/></highlight></codeline>
<codeline lineno="95"><highlight class="comment"><sp/><sp/><sp/>*<sp/>PBUF_RAM:<sp/>buffer<sp/>memory<sp/>for<sp/>pbuf<sp/>is<sp/>allocated<sp/>as<sp/>one<sp/>large</highlight></codeline>
<codeline lineno="96"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>chunk.<sp/>This<sp/>includesprotocol<sp/>headers<sp/>as<sp/>well.</highlight></codeline>
<codeline lineno="97"><highlight class="comment"><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="98"><highlight class="comment"><sp/><sp/><sp/>*<sp/>RBUF_ROM:<sp/>no<sp/>buffer<sp/>memory<sp/>is<sp/>allocated<sp/>for<sp/>the<sp/>pbuf,<sp/>even<sp/>for</highlight></codeline>
<codeline lineno="99"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>protocol<sp/>headers.<sp/><sp/>Additional<sp/>headers<sp/>must<sp/>be</highlight></codeline>
<codeline lineno="100"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>prepended<sp/>by<sp/>allocating<sp/>another<sp/>pbuf<sp/>and<sp/>chain<sp/>in<sp/>to</highlight></codeline>
<codeline lineno="101"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>the<sp/>front<sp/>of<sp/>the<sp/>ROM<sp/>pbuf.</highlight></codeline>
<codeline lineno="102"><highlight class="comment"></highlight></codeline>
<codeline lineno="103"><highlight class="comment"><sp/><sp/><sp/>*<sp/>PBUF_ROOL:<sp/>the<sp/>pbuf<sp/>is<sp/>allocated<sp/>as<sp/>a<sp/>pbuf<sp/>chain,<sp/>with<sp/>pbufs<sp/>from</highlight></codeline>
<codeline lineno="104"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>the<sp/>pbuf<sp/>pool<sp/>that<sp/>is<sp/>allocated<sp/>during<sp/>pbuf_init().<sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="105"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*<ref refid="pbuf_8h_1bb6c8efa7f7739e71cb286c6dd4a47ef" kindref="member">pbuf_alloc</ref>(<ref refid="pbuf_8h_1ee1baa59bb2f85ba575b5a8619ac1ebf" kindref="member">pbuf_layer</ref><sp/>l,<sp/><ref refid="types_8h_13b65128d2644e9b80cec9a69bfa7e094" kindref="member">uInt16</ref><sp/>size,<sp/><ref refid="pbuf_8h_1b3c589840cc5a202e7278f41463f97e7" kindref="member">pbuf_flag</ref><sp/>flag);</highlight></codeline>
<codeline lineno="106"><highlight class="normal"></highlight></codeline>
<codeline lineno="107"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>pbuf_realloc():</highlight></codeline>
<codeline lineno="108"><highlight class="comment"></highlight></codeline>
<codeline lineno="109"><highlight class="comment"><sp/><sp/><sp/>Shrinks<sp/>the<sp/>pbuf<sp/>to<sp/>the<sp/>size<sp/>given<sp/>by<sp/>the<sp/>size<sp/>parameter.<sp/></highlight></codeline>
<codeline lineno="110"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="111"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="pbuf_8h_12acee36fb0831879ffa1c45598bc0a0f" kindref="member">pbuf_realloc</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*p,<sp/><ref refid="types_8h_13b65128d2644e9b80cec9a69bfa7e094" kindref="member">uInt16</ref><sp/>size);<sp/></highlight></codeline>
<codeline lineno="112"><highlight class="normal"></highlight></codeline>
<codeline lineno="113"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>pbuf_header():</highlight></codeline>
<codeline lineno="114"><highlight class="comment"></highlight></codeline>
<codeline lineno="115"><highlight class="comment"><sp/><sp/><sp/>Tries<sp/>to<sp/>move<sp/>the<sp/>p-&gt;payload<sp/>pointer<sp/>header_size<sp/>number<sp/>of<sp/>bytes</highlight></codeline>
<codeline lineno="116"><highlight class="comment"><sp/><sp/><sp/>upward<sp/>within<sp/>the<sp/>pbuf.<sp/>The<sp/>return<sp/>value<sp/>is<sp/>non-zero<sp/>if<sp/>it</highlight></codeline>
<codeline lineno="117"><highlight class="comment"><sp/><sp/><sp/>fails.<sp/>If<sp/>so,<sp/>an<sp/>additional<sp/>pbuf<sp/>should<sp/>be<sp/>allocated<sp/>for<sp/>the<sp/>header</highlight></codeline>
<codeline lineno="118"><highlight class="comment"><sp/><sp/><sp/>and<sp/>it<sp/>should<sp/>be<sp/>chained<sp/>to<sp/>the<sp/>front.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="119"><highlight class="normal"><ref refid="types_8h_1a4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref><sp/><ref refid="pbuf_8h_1c83243784ae907d307b4ac444282ccc5" kindref="member">pbuf_header</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*p,<sp/><ref refid="types_8h_1292a71e839a94f0bafde3510df52d972" kindref="member">Int16</ref><sp/>header_size);</highlight></codeline>
<codeline lineno="120"><highlight class="normal"></highlight></codeline>
<codeline lineno="121"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>pbuf_ref():</highlight></codeline>
<codeline lineno="122"><highlight class="comment"></highlight></codeline>
<codeline lineno="123"><highlight class="comment"><sp/><sp/><sp/>Increments<sp/>the<sp/>reference<sp/>count<sp/>of<sp/>the<sp/>pbuf<sp/>p.</highlight></codeline>
<codeline lineno="124"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="125"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="pbuf_8h_177f6bbd69e45e542014d9c547c7da74e" kindref="member">pbuf_ref</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*p);</highlight></codeline>
<codeline lineno="126"><highlight class="normal"></highlight></codeline>
<codeline lineno="127"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>pbuf_free():</highlight></codeline>
<codeline lineno="128"><highlight class="comment"></highlight></codeline>
<codeline lineno="129"><highlight class="comment"><sp/><sp/><sp/>Decrements<sp/>the<sp/>reference<sp/>count<sp/>and<sp/>deallocates<sp/>the<sp/>pbuf<sp/>if<sp/>the</highlight></codeline>
<codeline lineno="130"><highlight class="comment"><sp/><sp/><sp/>reference<sp/>count<sp/>is<sp/>zero.<sp/>If<sp/>the<sp/>pbuf<sp/>is<sp/>a<sp/>chain<sp/>all<sp/>pbufs<sp/>in<sp/>the</highlight></codeline>
<codeline lineno="131"><highlight class="comment"><sp/><sp/><sp/>chain<sp/>are<sp/>deallocated.<sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="132"><highlight class="normal"><ref refid="types_8h_1a4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref><sp/><ref refid="pbuf_8h_1334112aa2ac402c254d604c0dbbbb746" kindref="member">pbuf_free</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*p);</highlight></codeline>
<codeline lineno="133"><highlight class="normal"></highlight></codeline>
<codeline lineno="134"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>pbuf_clen():</highlight></codeline>
<codeline lineno="135"><highlight class="comment"></highlight></codeline>
<codeline lineno="136"><highlight class="comment"><sp/><sp/><sp/>Returns<sp/>the<sp/>length<sp/>of<sp/>the<sp/>pbuf<sp/>chain.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="137"><highlight class="normal"><ref refid="types_8h_1a4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref><sp/><ref refid="pbuf_8h_18e606e36100a9b82f68b694f3f1d0b36" kindref="member">pbuf_clen</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*p);<sp/><sp/></highlight></codeline>
<codeline lineno="138"><highlight class="normal"></highlight></codeline>
<codeline lineno="139"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>pbuf_chain():</highlight></codeline>
<codeline lineno="140"><highlight class="comment"></highlight></codeline>
<codeline lineno="141"><highlight class="comment"><sp/><sp/><sp/>Chains<sp/>pbuf<sp/>t<sp/>on<sp/>the<sp/>end<sp/>of<sp/>pbuf<sp/>h.<sp/>Pbuf<sp/>h<sp/>will<sp/>have<sp/>it&apos;s<sp/>tot_len</highlight></codeline>
<codeline lineno="142"><highlight class="comment"><sp/><sp/><sp/>field<sp/>adjusted<sp/>accordingly.<sp/>Pbuf<sp/>t<sp/>should<sp/>no<sp/>be<sp/>used<sp/>any<sp/>more<sp/>after</highlight></codeline>
<codeline lineno="143"><highlight class="comment"><sp/><sp/><sp/>a<sp/>call<sp/>to<sp/>this<sp/>function,<sp/>since<sp/>pbuf<sp/>t<sp/>is<sp/>now<sp/>a<sp/>part<sp/>of<sp/>pbuf<sp/>h.<sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="144"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="pbuf_8h_1831c9a72bda1d3bd4c7b96f5a0e3b891" kindref="member">pbuf_chain</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*h,<sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*t);</highlight></codeline>
<codeline lineno="145"><highlight class="normal"></highlight></codeline>
<codeline lineno="146"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>pbuf_dechain():</highlight></codeline>
<codeline lineno="147"><highlight class="comment"></highlight></codeline>
<codeline lineno="148"><highlight class="comment"><sp/><sp/><sp/>Picks<sp/>off<sp/>the<sp/>first<sp/>pbuf<sp/>from<sp/>the<sp/>pbuf<sp/>chain<sp/>p.<sp/>Returns<sp/>the<sp/>tail<sp/>of</highlight></codeline>
<codeline lineno="149"><highlight class="comment"><sp/><sp/><sp/>the<sp/>pbuf<sp/>chain<sp/>or<sp/>NULL<sp/>if<sp/>the<sp/>pbuf<sp/>p<sp/>was<sp/>not<sp/>chained.<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="150"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*<ref refid="pbuf_8h_1bf3d29c4f43986b4cb5eb314d5b9729d" kindref="member">pbuf_dechain</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*p);</highlight></codeline>
<codeline lineno="151"><highlight class="normal"></highlight></codeline>
<codeline lineno="152"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/></highlight><highlight class="comment">/*<sp/>__LWIP_PBUF_H__<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
    </programlisting>
    <location file="/usr/home/reddawg/source/ubix2/src/sys/include/net/pbuf.h"/>
  </compounddef>
</doxygen>