<?xml version='1.0' encoding='UTF-8' standalone='no'?> <doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.16"> <compounddef id="pbuf_8h" kind="file" language="C++"> <compoundname>pbuf.h</compoundname> <includes refid="opt_8h" local="no">net/opt.h</includes> <includes refid="err_8h" local="no">net/err.h</includes> <includedby refid="icmp_8h" local="yes">C:/Dev/git/UbixOS/sys/include/net/icmp.h</includedby> <includedby refid="icmp6_8h" local="yes">C:/Dev/git/UbixOS/sys/include/net/icmp6.h</includedby> <includedby refid="igmp_8h" local="yes">C:/Dev/git/UbixOS/sys/include/net/igmp.h</includedby> <includedby refid="inet__chksum_8h" local="yes">C:/Dev/git/UbixOS/sys/include/net/inet_chksum.h</includedby> <includedby refid="ip_8h" local="yes">C:/Dev/git/UbixOS/sys/include/net/ip.h</includedby> <includedby refid="ip4__frag_8h" local="yes">C:/Dev/git/UbixOS/sys/include/net/ip4_frag.h</includedby> <includedby refid="ip6__frag_8h" local="yes">C:/Dev/git/UbixOS/sys/include/net/ip6_frag.h</includedby> <includedby refid="netif_8h" local="no">C:/Dev/git/UbixOS/sys/include/net/netif.h</includedby> <includedby refid="f_2ethernet_8h" local="yes">C:/Dev/git/UbixOS/sys/include/netif/ethernet.h</includedby> <includedby refid="tcpip_8c" local="no">C:/Dev/git/UbixOS/sys/net/api/tcpip.c</includedby> <includedby refid="core_2init_8c" local="yes">C:/Dev/git/UbixOS/sys/net/core/init.c</includedby> <includedby refid="ip6__frag_8c" local="yes">C:/Dev/git/UbixOS/sys/net/core/ipv6/ip6_frag.c</includedby> <includedby refid="memp_8c" local="yes">C:/Dev/git/UbixOS/sys/net/core/memp.c</includedby> <includedby refid="pbuf_8c" local="yes">C:/Dev/git/UbixOS/sys/net/core/pbuf.c</includedby> <includedby refid="timeouts_8c" local="yes">C:/Dev/git/UbixOS/sys/net/core/timeouts.c</includedby> <includedby refid="ethernetif_8c" local="yes">C:/Dev/git/UbixOS/sys/net/netif/ethernetif.c</includedby> <incdepgraph> <node id="17"> <label>stdarg.h</label> <link refid="stdarg_8h"/> </node> <node id="18"> <label>ubixos/kpanic.h</label> <link refid="kpanic_8h"/> </node> <node id="15"> <label>sys/io.h</label> <link refid="io_8h"/> </node> <node id="1"> <label>C:/Dev/git/UbixOS/sys/include/net/pbuf.h</label> <link refid="pbuf_8h"/> <childnode refid="2" relation="include"> </childnode> <childnode refid="19" relation="include"> </childnode> </node> <node id="8"> <label>sys/select.h</label> <link refid="select_8h"/> <childnode refid="9" relation="include"> </childnode> <childnode refid="7" relation="include"> </childnode> <childnode refid="10" relation="include"> </childnode> <childnode refid="11" relation="include"> </childnode> <childnode refid="12" relation="include"> </childnode> </node> <node id="13"> <label>net/arch/cc.h</label> <link refid="cc_8h"/> <childnode refid="14" relation="include"> </childnode> </node> <node id="12"> <label>sys/_sigset.h</label> <link refid="__sigset_8h"/> <childnode refid="7" relation="include"> </childnode> </node> <node id="3"> <label>net/lwipopts.h</label> <link refid="lwipopts_8h"/> </node> <node id="6"> <label>sys/types.h</label> <link refid="include_2sys_2types_8h"/> <childnode refid="7" relation="include"> </childnode> <childnode refid="8" relation="include"> </childnode> </node> <node id="5"> <label>net/arch.h</label> <link refid="arch_8h"/> <childnode refid="6" relation="include"> </childnode> <childnode refid="13" relation="include"> </childnode> <childnode refid="16" relation="include"> </childnode> <childnode refid="18" relation="include"> </childnode> </node> <node id="2"> <label>net/opt.h</label> <link refid="opt_8h"/> <childnode refid="3" relation="include"> </childnode> <childnode refid="4" relation="include"> </childnode> </node> <node id="16"> <label>lib/kprintf.h</label> <link refid="kprintf_8h"/> <childnode refid="6" relation="include"> </childnode> <childnode refid="17" relation="include"> </childnode> </node> <node id="4"> <label>net/debug.h</label> <link refid="debug_8h"/> <childnode refid="5" relation="include"> </childnode> <childnode refid="2" relation="include"> </childnode> </node> <node id="9"> <label>sys/cdefs.h</label> <link refid="cdefs_8h"/> </node> <node id="14"> <label>ubixos/time.h</label> <link refid="time_8h"/> <childnode refid="6" relation="include"> </childnode> <childnode refid="10" relation="include"> </childnode> <childnode refid="15" relation="include"> </childnode> </node> <node id="7"> <label>sys/_types.h</label> <link refid="__types_8h"/> </node> <node id="19"> <label>net/err.h</label> <link refid="err_8h"/> <childnode refid="2" relation="include"> </childnode> <childnode refid="5" relation="include"> </childnode> </node> <node id="10"> <label>sys/_timespec.h</label> <link refid="__timespec_8h"/> <childnode refid="7" relation="include"> </childnode> </node> <node id="11"> <label>sys/_timeval.h</label> <link refid="__timeval_8h"/> <childnode refid="7" relation="include"> </childnode> </node> </incdepgraph> <invincdepgraph> <node id="4"> <label>C:/Dev/git/UbixOS/sys/net/core/ipv6/ip6_frag.c</label> <link refid="ip6__frag_8c"/> </node> <node id="5"> <label>C:/Dev/git/UbixOS/sys/include/net/igmp.h</label> <link refid="igmp_8h"/> <childnode refid="6" relation="include"> </childnode> <childnode refid="7" relation="include"> </childnode> <childnode refid="8" relation="include"> </childnode> <childnode refid="9" relation="include"> </childnode> </node> <node id="53"> <label>C:/Dev/git/UbixOS/sys/lib/ogprintf.cc</label> <link refid="ogprintf_8cc"/> </node> <node id="34"> <label>C:/Dev/git/UbixOS/sys/fs/ubixfs/block.c</label> <link refid="block_8c"/> </node> <node id="11"> <label>C:/Dev/git/UbixOS/sys/net/core/inet_chksum.c</label> <link refid="inet__chksum_8c"/> </node> <node id="54"> <label>C:/Dev/git/UbixOS/sys/sde/colours.cc</label> <link refid="colours_8cc"/> </node> <node id="19"> <label>C:/Dev/git/UbixOS/sys/init/main.c</label> <link refid="main_8c"/> </node> <node id="35"> <label>C:/Dev/git/UbixOS/sys/fs/ubixfs/dirCache.c</label> <link refid="dirCache_8c"/> </node> <node id="41"> <label>C:/Dev/git/UbixOS/sys/arch/armv6/fork.c</label> <link refid="armv6_2fork_8c"/> </node> <node id="56"> <label>C:/Dev/git/UbixOS/sys/sde/sde.cc</label> <link refid="sde_8cc"/> </node> <node id="1"> <label>C:/Dev/git/UbixOS/sys/include/net/pbuf.h</label> <link refid="pbuf_8h"/> <childnode refid="2" relation="include"> </childnode> <childnode refid="3" relation="include"> </childnode> <childnode refid="5" relation="include"> </childnode> <childnode refid="10" relation="include"> </childnode> <childnode refid="12" relation="include"> </childnode> <childnode refid="13" relation="include"> </childnode> <childnode refid="15" relation="include"> </childnode> <childnode refid="16" relation="include"> </childnode> <childnode refid="67" relation="include"> </childnode> <childnode refid="14" relation="include"> </childnode> <childnode refid="6" relation="include"> </childnode> <childnode refid="4" relation="include"> </childnode> <childnode refid="7" relation="include"> </childnode> <childnode refid="70" relation="include"> </childnode> <childnode refid="9" relation="include"> </childnode> <childnode refid="66" relation="include"> </childnode> </node> <node id="55"> <label>C:/Dev/git/UbixOS/sys/sde/main.cc</label> <link refid="main_8cc"/> </node> <node id="28"> <label>C:/Dev/git/UbixOS/sys/fs/vfs/inode.c</label> <link refid="inode_8c"/> </node> <node id="46"> <label>C:/Dev/git/UbixOS/sys/isa/atkbd.c</label> <link refid="atkbd_8c"/> </node> <node id="14"> <label>C:/Dev/git/UbixOS/sys/net/api/tcpip.c</label> <link refid="tcpip_8c"/> </node> <node id="69"> <label>C:/Dev/git/UbixOS/sys/include/netif/slipif.h</label> <link refid="slipif_8h"/> </node> <node id="22"> <label>C:/Dev/git/UbixOS/sys/fs/fat/fat.c</label> <link refid="fat_8c"/> </node> <node id="17"> <label>C:/Dev/git/UbixOS/sys/include/net/net.h</label> <link refid="net_8h"/> <childnode refid="18" relation="include"> </childnode> <childnode refid="20" relation="include"> </childnode> <childnode refid="62" relation="include"> </childnode> </node> <node id="27"> <label>C:/Dev/git/UbixOS/sys/fs/vfs/file.c</label> <link refid="file_8c"/> </node> <node id="2"> <label>C:/Dev/git/UbixOS/sys/include/net/icmp.h</label> <link refid="icmp_8h"/> </node> <node id="36"> <label>C:/Dev/git/UbixOS/sys/fs/ubixfs/directory.c</label> <link refid="directory_8c"/> </node> <node id="3"> <label>C:/Dev/git/UbixOS/sys/include/net/icmp6.h</label> <link refid="icmp6_8h"/> <childnode refid="4" relation="include"> </childnode> </node> <node id="30"> <label>C:/Dev/git/UbixOS/sys/fs/vfs/vfs.c</label> <link refid="vfs_8c"/> </node> <node id="48"> <label>C:/Dev/git/UbixOS/sys/kernel/endtask.c</label> <link refid="endtask_8c"/> </node> <node id="62"> <label>C:/Dev/git/UbixOS/sys/pci/lnc.c</label> <link refid="lnc_8c"/> </node> <node id="61"> <label>C:/Dev/git/UbixOS/sys/kmods/kmod.c</label> <link refid="kmod_8c"/> </node> <node id="32"> <label>C:/Dev/git/UbixOS/sys/include/ubixfs/ubixfs.h</label> <link refid="include_2ubixfs_2ubixfs_8h"/> <childnode refid="33" relation="include"> </childnode> <childnode refid="34" relation="include"> </childnode> <childnode refid="35" relation="include"> </childnode> <childnode refid="36" relation="include"> </childnode> <childnode refid="23" relation="include"> </childnode> <childnode refid="24" relation="include"> </childnode> <childnode refid="37" relation="include"> </childnode> <childnode refid="18" relation="include"> </childnode> </node> <node id="64"> <label>C:/Dev/git/UbixOS/sys/include/net/priv/tcpip_priv.h</label> <link refid="tcpip__priv_8h"/> <childnode refid="14" relation="include"> </childnode> <childnode refid="7" relation="include"> </childnode> <childnode refid="9" relation="include"> </childnode> </node> <node id="47"> <label>C:/Dev/git/UbixOS/sys/isa/ne2k.c</label> <link refid="ne2k_8c"/> </node> <node id="40"> <label>C:/Dev/git/UbixOS/sys/include/ubixos/vitals.h</label> <link refid="vitals_8h"/> <childnode refid="41" relation="include"> </childnode> <childnode refid="33" relation="include"> </childnode> <childnode refid="42" relation="include"> </childnode> <childnode refid="43" relation="include"> </childnode> <childnode refid="44" relation="include"> </childnode> <childnode refid="27" relation="include"> </childnode> <childnode refid="45" relation="include"> </childnode> <childnode refid="30" relation="include"> </childnode> <childnode refid="18" relation="include"> </childnode> <childnode refid="46" relation="include"> </childnode> <childnode refid="47" relation="include"> </childnode> <childnode refid="48" relation="include"> </childnode> <childnode refid="49" relation="include"> </childnode> <childnode refid="50" relation="include"> </childnode> <childnode refid="51" relation="include"> </childnode> <childnode refid="52" relation="include"> </childnode> <childnode refid="53" relation="include"> </childnode> <childnode refid="54" relation="include"> </childnode> <childnode refid="55" relation="include"> </childnode> <childnode refid="56" relation="include"> </childnode> <childnode refid="57" relation="include"> </childnode> <childnode refid="58" relation="include"> </childnode> </node> <node id="26"> <label>C:/Dev/git/UbixOS/sys/fs/ufs/ufs.c</label> <link refid="ufs_8c"/> </node> <node id="43"> <label>C:/Dev/git/UbixOS/sys/arch/i386/fork.c</label> <link refid="i386_2fork_8c"/> </node> <node id="57"> <label>C:/Dev/git/UbixOS/sys/vmm/paging.c</label> <link refid="paging_8c"/> </node> <node id="20"> <label>C:/Dev/git/UbixOS/sys/include/vfs/vfs.h</label> <link refid="include_2vfs_2vfs_8h"/> <childnode refid="21" relation="include"> </childnode> <childnode refid="22" relation="include"> </childnode> <childnode refid="23" relation="include"> </childnode> <childnode refid="24" relation="include"> </childnode> <childnode refid="25" relation="include"> </childnode> <childnode refid="26" relation="include"> </childnode> <childnode refid="27" relation="include"> </childnode> <childnode refid="28" relation="include"> </childnode> <childnode refid="29" relation="include"> </childnode> <childnode refid="30" relation="include"> </childnode> <childnode refid="31" relation="include"> </childnode> <childnode refid="32" relation="include"> </childnode> <childnode refid="18" relation="include"> </childnode> <childnode refid="40" relation="include"> </childnode> <childnode refid="59" relation="include"> </childnode> <childnode refid="60" relation="include"> </childnode> <childnode refid="61" relation="include"> </childnode> </node> <node id="60"> <label>C:/Dev/git/UbixOS/sys/kernel/ld.c</label> <link refid="ld_8c"/> </node> <node id="44"> <label>C:/Dev/git/UbixOS/sys/arch/i386/systemtask.c</label> <link refid="i386_2systemtask_8c"/> </node> <node id="31"> <label>C:/Dev/git/UbixOS/sys/include/sys/buf.h</label> <link refid="buf_8h"/> <childnode refid="25" relation="include"> </childnode> </node> <node id="23"> <label>C:/Dev/git/UbixOS/sys/fs/ubixfs/thread.c</label> <link refid="thread_8c"/> </node> <node id="63"> <label>C:/Dev/git/UbixOS/sys/include/net/tcpip.h</label> <link refid="tcpip_8h"/> <childnode refid="64" relation="include"> </childnode> <childnode refid="65" relation="include"> </childnode> <childnode refid="66" relation="include"> </childnode> </node> <node id="6"> <label>C:/Dev/git/UbixOS/sys/net/core/init.c</label> <link refid="core_2init_8c"/> </node> <node id="66"> <label>C:/Dev/git/UbixOS/sys/net/netif/ethernetif.c</label> <link refid="ethernetif_8c"/> </node> <node id="16"> <label>C:/Dev/git/UbixOS/sys/include/net/netif.h</label> <link refid="netif_8h"/> <childnode refid="2" relation="include"> </childnode> <childnode refid="3" relation="include"> </childnode> <childnode refid="5" relation="include"> </childnode> <childnode refid="12" relation="include"> </childnode> <childnode refid="13" relation="include"> </childnode> <childnode refid="15" relation="include"> </childnode> <childnode refid="17" relation="include"> </childnode> <childnode refid="63" relation="include"> </childnode> <childnode refid="67" relation="include"> </childnode> <childnode refid="69" relation="include"> </childnode> <childnode refid="47" relation="include"> </childnode> <childnode refid="6" relation="include"> </childnode> <childnode refid="8" relation="include"> </childnode> <childnode refid="62" relation="include"> </childnode> </node> <node id="15"> <label>C:/Dev/git/UbixOS/sys/include/net/ip6_frag.h</label> <link refid="ip6__frag_8h"/> <childnode refid="4" relation="include"> </childnode> <childnode refid="7" relation="include"> </childnode> <childnode refid="9" relation="include"> </childnode> </node> <node id="29"> <label>C:/Dev/git/UbixOS/sys/fs/vfs/namei.c</label> <link refid="namei_8c"/> </node> <node id="38"> <label>C:/Dev/git/UbixOS/sys/fs/common/gpt.c</label> <link refid="gpt_8c"/> </node> <node id="21"> <label>C:/Dev/git/UbixOS/sys/fs/devfs/devfs.c</label> <link refid="devfs_8c"/> </node> <node id="13"> <label>C:/Dev/git/UbixOS/sys/include/net/ip4_frag.h</label> <link refid="ip4__frag_8h"/> <childnode refid="7" relation="include"> </childnode> <childnode refid="9" relation="include"> </childnode> </node> <node id="58"> <label>C:/Dev/git/UbixOS/sys/vmm/vmm_memory.c</label> <link refid="vmm__memory_8c"/> </node> <node id="8"> <label>C:/Dev/git/UbixOS/sys/net/core/netif.c</label> <link refid="netif_8c"/> </node> <node id="7"> <label>C:/Dev/git/UbixOS/sys/net/core/memp.c</label> <link refid="memp_8c"/> </node> <node id="9"> <label>C:/Dev/git/UbixOS/sys/net/core/timeouts.c</label> <link refid="timeouts_8c"/> </node> <node id="49"> <label>C:/Dev/git/UbixOS/sys/kernel/syscall.c</label> <link refid="kernel_2syscall_8c"/> </node> <node id="42"> <label>C:/Dev/git/UbixOS/sys/arch/armv6/systemtask.c</label> <link refid="armv6_2systemtask_8c"/> </node> <node id="12"> <label>C:/Dev/git/UbixOS/sys/include/net/ip.h</label> <link refid="ip_8h"/> <childnode refid="13" relation="include"> </childnode> <childnode refid="14" relation="include"> </childnode> <childnode refid="6" relation="include"> </childnode> <childnode refid="4" relation="include"> </childnode> <childnode refid="8" relation="include"> </childnode> </node> <node id="24"> <label>C:/Dev/git/UbixOS/sys/fs/ubixfs/ubixfs.c</label> <link refid="ubixfs_8c"/> </node> <node id="33"> <label>C:/Dev/git/UbixOS/sys/arch/armv6/syscall.c</label> <link refid="arch_2armv6_2syscall_8c"/> </node> <node id="25"> <label>C:/Dev/git/UbixOS/sys/fs/ufs/ffs.c</label> <link refid="ffs_8c"/> </node> <node id="59"> <label>C:/Dev/git/UbixOS/sys/include/ufs/ffs.h</label> <link refid="ffs_8h"/> <childnode refid="25" relation="include"> </childnode> <childnode refid="26" relation="include"> </childnode> </node> <node id="67"> <label>C:/Dev/git/UbixOS/sys/include/netif/ethernet.h</label> <link refid="f_2ethernet_8h"/> <childnode refid="68" relation="include"> </childnode> <childnode refid="14" relation="include"> </childnode> <childnode refid="8" relation="include"> </childnode> <childnode refid="65" relation="include"> </childnode> </node> <node id="45"> <label>C:/Dev/git/UbixOS/sys/fs/vfs/mount.c</label> <link refid="mount_8c"/> </node> <node id="68"> <label>C:/Dev/git/UbixOS/sys/include/netif/etharp.h</label> <link refid="f_2etharp_8h"/> </node> <node id="39"> <label>C:/Dev/git/UbixOS/sys/pci/hd.c</label> <link refid="hd_8c"/> </node> <node id="70"> <label>C:/Dev/git/UbixOS/sys/net/core/pbuf.c</label> <link refid="pbuf_8c"/> </node> <node id="65"> <label>C:/Dev/git/UbixOS/sys/net/net/init.c</label> <link refid="net_2init_8c"/> </node> <node id="37"> <label>C:/Dev/git/UbixOS/sys/include/pci/hd.h</label> <link refid="hd_8h"/> <childnode refid="38" relation="include"> </childnode> <childnode refid="18" relation="include"> </childnode> <childnode refid="39" relation="include"> </childnode> </node> <node id="18"> <label>C:/Dev/git/UbixOS/sys/include/ubixos/init.h</label> <link refid="ubixos_2init_8h"/> <childnode refid="19" relation="include"> </childnode> </node> <node id="10"> <label>C:/Dev/git/UbixOS/sys/include/net/inet_chksum.h</label> <link refid="inet__chksum_8h"/> <childnode refid="11" relation="include"> </childnode> </node> <node id="52"> <label>C:/Dev/git/UbixOS/sys/kernel/vitals.c</label> <link refid="vitals_8c"/> </node> <node id="51"> <label>C:/Dev/git/UbixOS/sys/kernel/ubthread.c</label> <link refid="ubthread_8c"/> </node> <node id="50"> <label>C:/Dev/git/UbixOS/sys/kernel/time.c</label> <link refid="time_8c"/> </node> </invincdepgraph> <innerclass refid="structpbuf" prot="public">pbuf</innerclass> <innerclass refid="structpbuf__rom" prot="public">pbuf_rom</innerclass> <sectiondef kind="define"> <memberdef kind="define" id="pbuf_8h_1a64174c5169b48dc17674324afd9c63b9" prot="public" static="no"> <name>LWIP_SUPPORT_CUSTOM_PBUF</name> <initializer>((<ref refid="group__lwip__opts__ipv4_1gaf85c8bdd5035b6cada790b4cc2a209a4" kindref="member">IP_FRAG</ref> && !<ref refid="group__lwip__opts__netif_1gabafb9f64a80e51b56c0abbcfc1f7e04e" kindref="member">LWIP_NETIF_TX_SINGLE_PBUF</ref>) || (<ref refid="group__lwip__opts__ipv6_1ga872e3bb3fe2212156d66b18fccc9643f" kindref="member">LWIP_IPV6</ref> && <ref refid="group__lwip__opts__ipv6_1ga9ab6269f3087f6d9f7b2c7181ef043c3" kindref="member">LWIP_IPV6_FRAG</ref>))</initializer> <briefdescription> </briefdescription> <detaileddescription> <para>LWIP_SUPPORT_CUSTOM_PBUF==1: Custom pbufs behave much like their pbuf type but they are allocated by external code (initialised by calling pbuf_alloced_custom()) and when pbuf_free gives up their last reference, they are freed by calling pbuf_custom->custom_free_function(). Currently, the pbuf_custom code is only needed for one specific configuration of IP_FRAG, unless required by external driver/application code. </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="55" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" bodystart="55" bodyend="-1"/> </memberdef> <memberdef kind="define" id="pbuf_8h_1a1f31e5e7b39e90b9b52654f543bb8fc5" prot="public" static="no"> <name>PBUF_CHECK_FREE_OOSEQ</name> <param></param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="217" column="11" bodyfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" bodystart="217" bodyend="-1"/> </memberdef> <memberdef kind="define" id="pbuf_8h_1af78a7e1815dc0e31884d095b666d997f" prot="public" static="no"> <name>PBUF_FLAG_IS_CUSTOM</name> <initializer>0x02U</initializer> <briefdescription> </briefdescription> <detaileddescription> <para>indicates this is a custom pbuf: pbuf_free calls pbuf_custom->custom_free_function() when the last reference is released (plus custom PBUF_RAM cannot be trimmed) </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="131" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" bodystart="131" bodyend="-1"/> </memberdef> <memberdef kind="define" id="pbuf_8h_1a6772c16662bbb78597399add086500c0" prot="public" static="no"> <name>PBUF_FLAG_LLBCAST</name> <initializer>0x08U</initializer> <briefdescription> </briefdescription> <detaileddescription> <para>indicates this pbuf was received as link-level broadcast </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="135" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" bodystart="135" bodyend="-1"/> </memberdef> <memberdef kind="define" id="pbuf_8h_1ac0d56cde47aca24ef410d730d7c89887" prot="public" static="no"> <name>PBUF_FLAG_LLMCAST</name> <initializer>0x10U</initializer> <briefdescription> </briefdescription> <detaileddescription> <para>indicates this pbuf was received as link-level multicast </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="137" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" bodystart="137" bodyend="-1"/> </memberdef> <memberdef kind="define" id="pbuf_8h_1ab8ad153151a8c157335d9c0cedc007e6" prot="public" static="no"> <name>PBUF_FLAG_MCASTLOOP</name> <initializer>0x04U</initializer> <briefdescription> </briefdescription> <detaileddescription> <para>indicates this pbuf is UDP multicast to be looped back </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="133" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" bodystart="133" bodyend="-1"/> </memberdef> <memberdef kind="define" id="pbuf_8h_1a018a6499e357f8a1373321f802a82930" prot="public" static="no"> <name>PBUF_FLAG_PUSH</name> <initializer>0x01U</initializer> <briefdescription> </briefdescription> <detaileddescription> <para>indicates this packet's data should be immediately passed to the application </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="128" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" bodystart="128" bodyend="-1"/> </memberdef> <memberdef kind="define" id="pbuf_8h_1a36a915aa2f6a188baa2862881407971e" prot="public" static="no"> <name>PBUF_FLAG_TCP_FIN</name> <initializer>0x20U</initializer> <briefdescription> </briefdescription> <detaileddescription> <para>indicates this pbuf includes a TCP FIN flag </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="139" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" bodystart="139" bodyend="-1"/> </memberdef> <memberdef kind="define" id="pbuf_8h_1a0c9b6a35471ebe1628ffe74bbc67f0b4" prot="public" static="no"> <name>pbuf_init</name> <param></param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="221" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" bodystart="221" bodyend="-1"/> </memberdef> <memberdef kind="define" id="pbuf_8h_1aae0fea237167bb06ea4dc5333df5b0a7" prot="public" static="no"> <name>PBUF_IP_HLEN</name> <initializer>20</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="65" column="10" bodyfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" bodystart="65" bodyend="-1"/> </memberdef> <memberdef kind="define" id="pbuf_8h_1ac54b0f161128a32c7419c33b893a5106" prot="public" static="no"> <name>PBUF_POOL_FREE_OOSEQ</name> <initializer>1</initializer> <briefdescription> </briefdescription> <detaileddescription> <para>Define this to 0 to prevent freeing ooseq pbufs when the PBUF_POOL is empty </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="203" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" bodystart="203" bodyend="-1"/> </memberdef> <memberdef kind="define" id="pbuf_8h_1af9da2e1ca60dc0c584938ccc5d662307" prot="public" static="no"> <name>PBUF_TRANSPORT_HLEN</name> <initializer>20</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="61" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" bodystart="61" bodyend="-1"/> </memberdef> </sectiondef> <sectiondef kind="enum"> <memberdef kind="enum" id="group__pbuf_1gaee1baa59bb2f85ba575b5a8619ac1ebf" prot="public" static="no" strong="no"> <type></type> <name>pbuf_layer</name> <enumvalue id="group__pbuf_1ggaee1baa59bb2f85ba575b5a8619ac1ebfa2ded3594a3977f8bf9cf09552be327b5" prot="public"> <name>PBUF_TRANSPORT</name> <briefdescription> </briefdescription> <detaileddescription> <para>Includes spare room for transport layer header, e.g. UDP header. Use this if you intend to pass the pbuf to functions like udp_send(). </para> </detaileddescription> </enumvalue> <enumvalue id="group__pbuf_1ggaee1baa59bb2f85ba575b5a8619ac1ebfafcc1e506061ba69dfa142eb6b3da5f13" prot="public"> <name>PBUF_IP</name> <briefdescription> </briefdescription> <detaileddescription> <para>Includes spare room for IP header. Use this if you intend to pass the pbuf to functions like raw_send(). </para> </detaileddescription> </enumvalue> <enumvalue id="group__pbuf_1ggaee1baa59bb2f85ba575b5a8619ac1ebfab4de441e737330558b609a990cd17346" prot="public"> <name>PBUF_LINK</name> <briefdescription> </briefdescription> <detaileddescription> <para>Includes spare room for link layer header (ethernet header). Use this if you intend to pass the pbuf to functions like ethernet_output(). <simplesect kind="see"><para><ref refid="group__lwip__opts__pbuf_1ga35998a3d56af9940e6a80bb372597685" kindref="member">PBUF_LINK_HLEN</ref> </para> </simplesect> </para> </detaileddescription> </enumvalue> <enumvalue id="group__pbuf_1ggaee1baa59bb2f85ba575b5a8619ac1ebfa0ff039585f05f9208bcb66c2d37783e2" prot="public"> <name>PBUF_RAW_TX</name> <briefdescription> </briefdescription> <detaileddescription> <para>Includes spare room for additional encapsulation header before ethernet headers (e.g. 802.11). Use this if you intend to pass the pbuf to functions like netif->linkoutput(). <simplesect kind="see"><para><ref refid="group__lwip__opts__pbuf_1ga6e1ba1875ae5168a17b53d83597bc1de" kindref="member">PBUF_LINK_ENCAPSULATION_HLEN</ref> </para> </simplesect> </para> </detaileddescription> </enumvalue> <enumvalue id="group__pbuf_1ggaee1baa59bb2f85ba575b5a8619ac1ebfa21116654fbab6d5a4dfeb87a1bb8f0ba" prot="public"> <name>PBUF_RAW</name> <briefdescription> </briefdescription> <detaileddescription> <para>Use this for input packets in a netif driver when calling netif->input() in the most common case - ethernet-layer netif driver. </para> </detaileddescription> </enumvalue> <briefdescription> </briefdescription> <detaileddescription> <para>Enumeration of pbuf layers </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="72" column="14" bodyfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" bodystart="72" bodyend="95"/> </memberdef> <memberdef kind="enum" id="group__pbuf_1gab7e0e32fcc292c0d7107721766ed92fb" prot="public" static="no" strong="no"> <type></type> <name>pbuf_type</name> <enumvalue id="group__pbuf_1ggab7e0e32fcc292c0d7107721766ed92fbac5e9f28455bca98944a030d4b84ecfab" prot="public"> <name>PBUF_RAM</name> <briefdescription> </briefdescription> <detaileddescription> <para>pbuf data is stored in RAM, used for TX mostly, struct pbuf and its payload are allocated in one piece of contiguous memory (so the first payload byte can be calculated from struct pbuf). <ref refid="group__pbuf_1gacfcb0a2af918658ba0afe36499c65f47" kindref="member">pbuf_alloc()</ref> allocates PBUF_RAM pbufs as unchained pbufs (although that might change in future versions). This should be used for all OUTGOING packets (TX). </para> </detaileddescription> </enumvalue> <enumvalue id="group__pbuf_1ggab7e0e32fcc292c0d7107721766ed92fbac120b0fe39efe35bb682e4aa3b82e2c9" prot="public"> <name>PBUF_ROM</name> <briefdescription> </briefdescription> <detaileddescription> <para>pbuf data is stored in ROM, i.e. struct pbuf and its payload are located in totally different memory areas. Since it points to ROM, payload does not have to be copied when queued for transmission. </para> </detaileddescription> </enumvalue> <enumvalue id="group__pbuf_1ggab7e0e32fcc292c0d7107721766ed92fbac9b6ba960fdea6f2e8f35c8313b77e4e" prot="public"> <name>PBUF_REF</name> <briefdescription> </briefdescription> <detaileddescription> <para>pbuf comes from the pbuf pool. Much like PBUF_ROM but payload might change so it has to be duplicated when queued before transmitting, depending on who has a 'ref' to it. </para> </detaileddescription> </enumvalue> <enumvalue id="group__pbuf_1ggab7e0e32fcc292c0d7107721766ed92fbae969347127387b9b59a23ccd24b76d21" prot="public"> <name>PBUF_POOL</name> <briefdescription> </briefdescription> <detaileddescription> <para>pbuf payload refers to RAM. This one comes from a pool and should be used for RX. Payload can be chained (scatter-gather RX) but like PBUF_RAM, struct pbuf and its payload are allocated in one piece of contiguous memory (so the first payload byte can be calculated from struct pbuf). Don't use this for TX, if the pool becomes empty e.g. because of TCP queuing, you are unable to receive TCP acks! </para> </detaileddescription> </enumvalue> <briefdescription> </briefdescription> <detaileddescription> <para>Enumeration of pbuf types </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="101" column="14" bodyfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" bodystart="101" bodyend="124"/> </memberdef> </sectiondef> <sectiondef kind="func"> <memberdef kind="function" id="group__pbuf_1gacfcb0a2af918658ba0afe36499c65f47" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type> <definition>struct pbuf* pbuf_alloc</definition> <argsstring>(pbuf_layer l, u16_t length, pbuf_type type)</argsstring> <name>pbuf_alloc</name> <param> <type><ref refid="group__pbuf_1gaee1baa59bb2f85ba575b5a8619ac1ebf" kindref="member">pbuf_layer</ref></type> <declname>l</declname> <defname>layer</defname> </param> <param> <type><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref></type> <declname>length</declname> </param> <param> <type><ref refid="group__pbuf_1gab7e0e32fcc292c0d7107721766ed92fb" kindref="member">pbuf_type</ref></type> <declname>type</declname> </param> <briefdescription> </briefdescription> <detaileddescription> <para>Allocates a pbuf of the given type (possibly a chain for PBUF_POOL type).</para> <para>The actual memory allocated for the pbuf is determined by the layer at which the pbuf is allocated and the requested size (from the size parameter).</para> <para><parameterlist kind="param"><parameteritem> <parameternamelist> <parametername>layer</parametername> </parameternamelist> <parameterdescription> <para>flag to define header size </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>length</parametername> </parameternamelist> <parameterdescription> <para>size of the pbuf's payload </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>type</parametername> </parameternamelist> <parameterdescription> <para>this parameter decides how and where the pbuf should be allocated as follows:</para> </parameterdescription> </parameteritem> </parameterlist> <itemizedlist> <listitem><para>PBUF_RAM: buffer memory for pbuf is allocated as one large chunk. This includes protocol headers as well.</para> </listitem><listitem><para>PBUF_ROM: no buffer memory is allocated for the pbuf, even for protocol headers. Additional headers must be prepended by allocating another pbuf and chain in to the front of the ROM pbuf. It is assumed that the memory used is really similar to ROM in that it is immutable and will not be changed. Memory which is dynamic should generally not be attached to PBUF_ROM pbufs. Use PBUF_REF instead.</para> </listitem><listitem><para>PBUF_REF: no buffer memory is allocated for the pbuf, even for protocol headers. It is assumed that the pbuf is only being used in a single thread. If the pbuf gets queued, then pbuf_take should be called to copy the buffer.</para> </listitem><listitem><para>PBUF_POOL: the pbuf is allocated as a pbuf chain, with pbufs from the pbuf pool that is allocated during <ref refid="pbuf_8h_1a0c9b6a35471ebe1628ffe74bbc67f0b4" kindref="member">pbuf_init()</ref>.</para> </listitem></itemizedlist> </para> <para><simplesect kind="return"><para>the allocated pbuf. If multiple pbufs where allocated, this is the first pbuf of a pbuf chain. </para> </simplesect> </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="223" column="11" bodyfile="C:/Dev/git/UbixOS/sys/net/core/pbuf.c" bodystart="248" bodyend="405" declfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" declline="223" declcolumn="11"/> <references refid="structpbuf_1aa4d1af2cab3d9280d29212095b5b872a" compoundref="pbuf_8h" startline="165">pbuf::flags</references> <references refid="structpbuf_1a6f82449625e36e294f5d210268c0703f" compoundref="pbuf_8h" startline="159">pbuf::len</references> <references refid="debug_8h_1a94ad086267808462beae2b38f91996ed" compoundref="debug_8h" startline="116">LWIP_ASSERT</references> <references refid="group__debugging__levels_1ga0269bdc51f1e8a5ecf9af72c6e1c996c" compoundref="debug_8h" startline="57">LWIP_DBG_LEVEL_SERIOUS</references> <references refid="group__debugging__levels_1ga988147559b78642ac881815b66023646" compoundref="debug_8h" startline="83">LWIP_DBG_TRACE</references> <references refid="debug_8h_1a63a04edf7ff63c951bd8706711956cdb" compoundref="debug_8h" startline="164">LWIP_DEBUGF</references> <references refid="group__compiler__abstraction_1gaa8e8724eb1c220cbbb90de9e175ce1dc" compoundref="arch_8h" startline="236">LWIP_MEM_ALIGN</references> <references refid="group__compiler__abstraction_1gaef204be511fd32f681b55abc08e9ae18" compoundref="arch_8h" startline="221">LWIP_MEM_ALIGN_SIZE</references> <references refid="def_8h_1a748f5df614a3fc989e8900fd229d6e4e" compoundref="def_8h" startline="55">LWIP_MIN</references> <references refid="lwipopts_8h_1a97343214666ee6dcb18c0bd77b441ea7" compoundref="lwipopts_8h" startline="54">MEM_ALIGNMENT</references> <references refid="mem_8h_1a932aa40d85b14cb7331625e012d12335" compoundref="mem_8c" startline="603" endline="742">mem_malloc</references> <references refid="memp_8h_1a2b00593d086313c267b54a976bf67aa5" compoundref="memp_8c" startline="385" endline="404">memp_malloc</references> <references refid="structpbuf_1a5e5763c94fd18d78937b0b58ce7df341" compoundref="pbuf_8h" startline="144">pbuf::next</references> <references refid="fat__string_8h_1a070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="fat__string_8h" startline="17">NULL</references> <references refid="structpbuf_1a8d32dc3e964369d4eec638fc37fbc460" compoundref="pbuf_8h" startline="147">pbuf::payload</references> <references refid="lwipopts_8h_1a5c3d44a0ec3bb8bd66f776c70d5c6a6c" compoundref="lwipopts_8h" startline="435">PBUF_DEBUG</references> <references refid="group__pbuf_1gab0dd696fb4b6bc65e548944584f1738b" compoundref="pbuf_8c" startline="715" endline="792">pbuf_free</references> <references refid="group__pbuf_1ggaee1baa59bb2f85ba575b5a8619ac1ebfafcc1e506061ba69dfa142eb6b3da5f13" compoundref="pbuf_8h" startline="80">PBUF_IP</references> <references refid="pbuf_8h_1aae0fea237167bb06ea4dc5333df5b0a7" compoundref="pbuf_8h" startline="65">PBUF_IP_HLEN</references> <references refid="group__pbuf_1ggaee1baa59bb2f85ba575b5a8619ac1ebfab4de441e737330558b609a990cd17346" compoundref="pbuf_8h" startline="85">PBUF_LINK</references> <references refid="lwipopts_8h_1a6e1ba1875ae5168a17b53d83597bc1de" compoundref="lwipopts_8h" startline="211">PBUF_LINK_ENCAPSULATION_HLEN</references> <references refid="lwipopts_8h_1a35998a3d56af9940e6a80bb372597685" compoundref="lwipopts_8h" startline="209">PBUF_LINK_HLEN</references> <references refid="group__pbuf_1ggab7e0e32fcc292c0d7107721766ed92fbae969347127387b9b59a23ccd24b76d21" compoundref="pbuf_8h" startline="123">PBUF_POOL</references> <references refid="pbuf_8c_1a3dad81a8286ee8e9a7c70a74f9f4bb0f" compoundref="pbuf_8c" startline="132">PBUF_POOL_BUFSIZE_ALIGNED</references> <references refid="pbuf_8c_1aed70c61e971683736c569a1a99b76569" compoundref="pbuf_8c" startline="135">PBUF_POOL_IS_EMPTY</references> <references refid="group__pbuf_1ggab7e0e32fcc292c0d7107721766ed92fbac5e9f28455bca98944a030d4b84ecfab" compoundref="pbuf_8h" startline="108">PBUF_RAM</references> <references refid="group__pbuf_1ggaee1baa59bb2f85ba575b5a8619ac1ebfa21116654fbab6d5a4dfeb87a1bb8f0ba" compoundref="pbuf_8h" startline="94">PBUF_RAW</references> <references refid="group__pbuf_1ggaee1baa59bb2f85ba575b5a8619ac1ebfa0ff039585f05f9208bcb66c2d37783e2" compoundref="pbuf_8h" startline="91">PBUF_RAW_TX</references> <references refid="group__pbuf_1ggab7e0e32fcc292c0d7107721766ed92fbac9b6ba960fdea6f2e8f35c8313b77e4e" compoundref="pbuf_8h" startline="116">PBUF_REF</references> <references refid="group__pbuf_1ggab7e0e32fcc292c0d7107721766ed92fbac120b0fe39efe35bb682e4aa3b82e2c9" compoundref="pbuf_8h" startline="112">PBUF_ROM</references> <references refid="group__pbuf_1ggaee1baa59bb2f85ba575b5a8619ac1ebfa2ded3594a3977f8bf9cf09552be327b5" compoundref="pbuf_8h" startline="76">PBUF_TRANSPORT</references> <references refid="pbuf_8h_1af9da2e1ca60dc0c584938ccc5d662307" compoundref="pbuf_8h" startline="61">PBUF_TRANSPORT_HLEN</references> <references refid="structpbuf_1a18e2c02942feb1baa3756fcd585b6731" compoundref="pbuf_8h" startline="172">pbuf::ref</references> <references refid="pbuf_8c_1a8357a994e45ff94c9494aa55b6c3ecb3" compoundref="pbuf_8c" startline="129">SIZEOF_STRUCT_PBUF</references> <references refid="structpbuf_1a5259e7ec29bab9c0999b64f2e86b411f" compoundref="pbuf_8h" startline="156">pbuf::tot_len</references> <references refid="structpbuf_1afd7bff5210a022424caa97d2f25fe8e6" compoundref="pbuf_8h" startline="162">pbuf::type</references> <references refid="group__compiler__abstraction_1gaa9d7f6eb2ee9fcc5eda3545dbb1886e0" compoundref="arch_8h" startline="148">U16_F</references> <referencedby refid="group__pbuf_1ga54ac7b116c6f53c704cbf74f35a8b35c" compoundref="pbuf_8c" startline="1230" endline="1247">pbuf_coalesce</referencedby> <referencedby refid="arp_8c_1a9d1287b9a80c370797b2ac5c63f70e2e" compoundref="arp_8c" startline="273" endline="309">arp_query</referencedby> </memberdef> <memberdef kind="function" id="group__pbuf_1ga82429084fe29015509c9b4a072707cd4" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void pbuf_cat</definition> <argsstring>(struct pbuf *head, struct pbuf *tail)</argsstring> <name>pbuf_cat</name> <param> <type>struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type> <declname>head</declname> <defname>h</defname> </param> <param> <type>struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type> <declname>tail</declname> <defname>t</defname> </param> <briefdescription> </briefdescription> <detaileddescription> <para>Concatenate two pbufs (each may be a pbuf chain) and take over the caller's reference of the tail pbuf.</para> <para><simplesect kind="note"><para>The caller MAY NOT reference the tail pbuf afterwards. Use <ref refid="group__pbuf_1ga831c9a72bda1d3bd4c7b96f5a0e3b891" kindref="member">pbuf_chain()</ref> for that purpose.</para> </simplesect> <simplesect kind="see"><para><ref refid="group__pbuf_1ga831c9a72bda1d3bd4c7b96f5a0e3b891" kindref="member">pbuf_chain()</ref> </para> </simplesect> </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="235" column="6" bodyfile="C:/Dev/git/UbixOS/sys/net/core/pbuf.c" bodystart="841" bodyend="863" declfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" declline="235" declcolumn="6"/> <references refid="debug_8h_1a827bc03cd7889e7c007df39d33b33d18" compoundref="debug_8h" startline="135">LWIP_ERROR</references> <references refid="fat__string_8h_1a070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="fat__string_8h" startline="17">NULL</references> <references refid="structpbuf_1a5e5763c94fd18d78937b0b58ce7df341" compoundref="pbuf_8h" startline="144">pbuf::next</references> <references refid="structpbuf_1a5259e7ec29bab9c0999b64f2e86b411f" compoundref="pbuf_8h" startline="156">pbuf::tot_len</references> <references refid="debug_8h_1a94ad086267808462beae2b38f91996ed" compoundref="debug_8h" startline="116">LWIP_ASSERT</references> <references refid="structpbuf_1a6f82449625e36e294f5d210268c0703f" compoundref="pbuf_8h" startline="159">pbuf::len</references> <referencedby refid="group__pbuf_1ga831c9a72bda1d3bd4c7b96f5a0e3b891" compoundref="pbuf_8c" startline="883" endline="889">pbuf_chain</referencedby> </memberdef> <memberdef kind="function" id="group__pbuf_1ga831c9a72bda1d3bd4c7b96f5a0e3b891" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void pbuf_chain</definition> <argsstring>(struct pbuf *head, struct pbuf *tail)</argsstring> <name>pbuf_chain</name> <param> <type>struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type> <declname>head</declname> <defname>h</defname> </param> <param> <type>struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type> <declname>tail</declname> <defname>t</defname> </param> <briefdescription> </briefdescription> <detaileddescription> <para>Chain two pbufs (or pbuf chains) together.</para> <para>The caller MUST call pbuf_free(t) once it has stopped using it. Use <ref refid="group__pbuf_1ga82429084fe29015509c9b4a072707cd4" kindref="member">pbuf_cat()</ref> instead if you no longer use t.</para> <para><parameterlist kind="param"><parameteritem> <parameternamelist> <parametername>h</parametername> </parameternamelist> <parameterdescription> <para>head pbuf (chain) </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>t</parametername> </parameternamelist> <parameterdescription> <para>tail pbuf (chain) </para> </parameterdescription> </parameteritem> </parameterlist> <simplesect kind="note"><para>The pbufs MUST belong to the same packet. </para> </simplesect> <simplesect kind="note"><para>MAY NOT be called on a packet queue.</para> </simplesect> The ->tot_len fields of all pbufs of the head chain are adjusted. The ->next field of the last pbuf of the head chain is adjusted. The ->ref field of the first pbuf of the tail chain is adjusted. </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="236" column="6" bodyfile="C:/Dev/git/UbixOS/sys/net/core/pbuf.c" bodystart="883" bodyend="889" declfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" declline="236" declcolumn="6"/> <references refid="group__pbuf_1ga82429084fe29015509c9b4a072707cd4" compoundref="pbuf_8c" startline="841" endline="863">pbuf_cat</references> <references refid="group__pbuf_1ga77f6bbd69e45e542014d9c547c7da74e" compoundref="pbuf_8c" startline="821" endline="828">pbuf_ref</references> <references refid="debug_8h_1a63a04edf7ff63c951bd8706711956cdb" compoundref="debug_8h" startline="164">LWIP_DEBUGF</references> <references refid="lwipopts_8h_1a5c3d44a0ec3bb8bd66f776c70d5c6a6c" compoundref="lwipopts_8h" startline="435">PBUF_DEBUG</references> <references refid="group__debugging__levels_1ga988147559b78642ac881815b66023646" compoundref="debug_8h" startline="83">LWIP_DBG_TRACE</references> </memberdef> <memberdef kind="function" id="pbuf_8h_1a5df7ac5ae59012fe9aeddba375a72190" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref></type> <definition>u16_t pbuf_clen</definition> <argsstring>(const struct pbuf *p)</argsstring> <name>pbuf_clen</name> <param> <type><ref refid="cdefs_8h_1a2c212835823e3c54a8ab6d95c652660e" kindref="member">const</ref> struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type> <declname>p</declname> </param> <briefdescription> </briefdescription> <detaileddescription> <para>Count number of pbufs in a chain</para> <para><parameterlist kind="param"><parameteritem> <parameternamelist> <parametername>p</parametername> </parameternamelist> <parameterdescription> <para>first pbuf of chain </para> </parameterdescription> </parameteritem> </parameterlist> <simplesect kind="return"><para>the number of pbufs in a chain </para> </simplesect> </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="234" column="7" bodyfile="C:/Dev/git/UbixOS/sys/net/core/pbuf.c" bodystart="801" bodyend="811" declfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" declline="234" declcolumn="7"/> <references refid="structpbuf_1a5e5763c94fd18d78937b0b58ce7df341" compoundref="pbuf_8h" startline="144">pbuf::next</references> <references refid="fat__string_8h_1a070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="fat__string_8h" startline="17">NULL</references> </memberdef> <memberdef kind="function" id="group__pbuf_1ga54ac7b116c6f53c704cbf74f35a8b35c" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type> <definition>struct pbuf* pbuf_coalesce</definition> <argsstring>(struct pbuf *p, pbuf_layer layer)</argsstring> <name>pbuf_coalesce</name> <param> <type>struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type> <declname>p</declname> </param> <param> <type><ref refid="group__pbuf_1gaee1baa59bb2f85ba575b5a8619ac1ebf" kindref="member">pbuf_layer</ref></type> <declname>layer</declname> </param> <briefdescription> </briefdescription> <detaileddescription> <para>Creates a single pbuf out of a queue of pbufs.</para> <para><simplesect kind="remark"><para>: Either the source pbuf 'p' is freed by this function or the original pbuf 'p' is returned, therefore the caller has to check the result!</para> </simplesect> <parameterlist kind="param"><parameteritem> <parameternamelist> <parametername>p</parametername> </parameternamelist> <parameterdescription> <para>the source pbuf </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>layer</parametername> </parameternamelist> <parameterdescription> <para>pbuf_layer of the new pbuf</para> </parameterdescription> </parameteritem> </parameterlist> <simplesect kind="return"><para>a new, single pbuf (p->next is NULL) or the old pbuf if allocation fails </para> </simplesect> </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="243" column="11" bodyfile="C:/Dev/git/UbixOS/sys/net/core/pbuf.c" bodystart="1230" bodyend="1247" declfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" declline="243" declcolumn="11"/> <references refid="structpbuf_1a5e5763c94fd18d78937b0b58ce7df341" compoundref="pbuf_8h" startline="144">pbuf::next</references> <references refid="fat__string_8h_1a070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="fat__string_8h" startline="17">NULL</references> <references refid="group__pbuf_1gacfcb0a2af918658ba0afe36499c65f47" compoundref="pbuf_8c" startline="248" endline="405">pbuf_alloc</references> <references refid="structpbuf_1a5259e7ec29bab9c0999b64f2e86b411f" compoundref="pbuf_8h" startline="156">pbuf::tot_len</references> <references refid="group__pbuf_1ggab7e0e32fcc292c0d7107721766ed92fbac5e9f28455bca98944a030d4b84ecfab" compoundref="pbuf_8h" startline="108">PBUF_RAM</references> <references refid="group__pbuf_1gaba88511dee3df4b631fde691f421320d" compoundref="pbuf_8c" startline="949" endline="1001">pbuf_copy</references> <references refid="group__compiler__abstraction_1ga70624a5deb8b9199406372a7f3603ecf" compoundref="arch_8h" startline="315">LWIP_UNUSED_ARG</references> <references refid="debug_8h_1a94ad086267808462beae2b38f91996ed" compoundref="debug_8h" startline="116">LWIP_ASSERT</references> <references refid="group__infrastructure__errors_1ggae2e66c7d13afc90ffecd6151680fbadcaa26c163b80b1f6786ca81dadc14b00fb" compoundref="err_8h" startline="63">ERR_OK</references> <references refid="group__pbuf_1gab0dd696fb4b6bc65e548944584f1738b" compoundref="pbuf_8c" startline="715" endline="792">pbuf_free</references> </memberdef> <memberdef kind="function" id="group__pbuf_1gaba88511dee3df4b631fde691f421320d" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type><ref refid="group__infrastructure__errors_1gaf02d9da80fd66b4f986d2c53d7231ddb" kindref="member">err_t</ref></type> <definition>err_t pbuf_copy</definition> <argsstring>(struct pbuf *p_to, const struct pbuf *p_from)</argsstring> <name>pbuf_copy</name> <param> <type>struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type> <declname>p_to</declname> </param> <param> <type><ref refid="cdefs_8h_1a2c212835823e3c54a8ab6d95c652660e" kindref="member">const</ref> struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type> <declname>p_from</declname> </param> <briefdescription> </briefdescription> <detaileddescription> <para>Create PBUF_RAM copies of pbufs.</para> <para>Used to queue packets on behalf of the lwIP stack, such as ARP based queueing.</para> <para><simplesect kind="note"><para>You MUST explicitly use p = pbuf_take(p);</para> </simplesect> <simplesect kind="note"><para>Only one packet is copied, no packet queue!</para> </simplesect> <parameterlist kind="param"><parameteritem> <parameternamelist> <parametername>p_to</parametername> </parameternamelist> <parameterdescription> <para>pbuf destination of the copy </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>p_from</parametername> </parameternamelist> <parameterdescription> <para>pbuf source of the copy</para> </parameterdescription> </parameteritem> </parameterlist> <simplesect kind="return"><para>ERR_OK if pbuf was copied ERR_ARG if one of the pbufs is NULL or p_to is not big enough to hold p_from </para> </simplesect> </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="238" column="7" bodyfile="C:/Dev/git/UbixOS/sys/net/core/pbuf.c" bodystart="949" bodyend="1001" declfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" declline="238" declcolumn="7"/> <references refid="structpbuf_1a6f82449625e36e294f5d210268c0703f" compoundref="pbuf_8h" startline="159">pbuf::len</references> <references refid="debug_8h_1a63a04edf7ff63c951bd8706711956cdb" compoundref="debug_8h" startline="164">LWIP_DEBUGF</references> <references refid="lwipopts_8h_1a5c3d44a0ec3bb8bd66f776c70d5c6a6c" compoundref="lwipopts_8h" startline="435">PBUF_DEBUG</references> <references refid="group__debugging__levels_1ga988147559b78642ac881815b66023646" compoundref="debug_8h" startline="83">LWIP_DBG_TRACE</references> <references refid="debug_8h_1a827bc03cd7889e7c007df39d33b33d18" compoundref="debug_8h" startline="135">LWIP_ERROR</references> <references refid="fat__string_8h_1a070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="fat__string_8h" startline="17">NULL</references> <references refid="group__infrastructure__errors_1ggae2e66c7d13afc90ffecd6151680fbadcab508ce0ebdf3ca735208b00a80a45c91" compoundref="err_8h" startline="96">ERR_ARG</references> <references refid="lwipopts_8h_1aa1dd57a66b6de8c0593e9e3e8d1411f6" compoundref="lwipopts_8h" startline="43">MEMCPY</references> <references refid="debug_8h_1a94ad086267808462beae2b38f91996ed" compoundref="debug_8h" startline="116">LWIP_ASSERT</references> <references refid="group__infrastructure__errors_1ggae2e66c7d13afc90ffecd6151680fbadcaa9a1c5a6fdeed0aad7fe41d538482bbd" compoundref="err_8h" startline="75">ERR_VAL</references> <references refid="group__infrastructure__errors_1ggae2e66c7d13afc90ffecd6151680fbadcaa26c163b80b1f6786ca81dadc14b00fb" compoundref="err_8h" startline="63">ERR_OK</references> <referencedby refid="group__pbuf_1ga54ac7b116c6f53c704cbf74f35a8b35c" compoundref="pbuf_8c" startline="1230" endline="1247">pbuf_coalesce</referencedby> </memberdef> <memberdef kind="function" id="group__pbuf_1gac2f1f58fd36042e82af46f5015720899" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref></type> <definition>u16_t pbuf_copy_partial</definition> <argsstring>(const struct pbuf *p, void *dataptr, u16_t len, u16_t offset)</argsstring> <name>pbuf_copy_partial</name> <param> <type><ref refid="cdefs_8h_1a2c212835823e3c54a8ab6d95c652660e" kindref="member">const</ref> struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type> <declname>p</declname> <defname>buf</defname> </param> <param> <type>void *</type> <declname>dataptr</declname> </param> <param> <type><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref></type> <declname>len</declname> </param> <param> <type><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref></type> <declname>offset</declname> </param> <briefdescription> </briefdescription> <detaileddescription> <para>Copy (part of) the contents of a packet buffer to an application supplied buffer.</para> <para><parameterlist kind="param"><parameteritem> <parameternamelist> <parametername>buf</parametername> </parameternamelist> <parameterdescription> <para>the pbuf from which to copy data </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>dataptr</parametername> </parameternamelist> <parameterdescription> <para>the application supplied buffer </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>len</parametername> </parameternamelist> <parameterdescription> <para>length of data to copy (dataptr must be big enough). No more than buf->tot_len will be copied, irrespective of len </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>offset</parametername> </parameternamelist> <parameterdescription> <para>offset into the packet buffer from where to begin copying len bytes </para> </parameterdescription> </parameteritem> </parameterlist> <simplesect kind="return"><para>the number of bytes copied, or 0 on failure </para> </simplesect> </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="239" column="7" bodyfile="C:/Dev/git/UbixOS/sys/net/core/pbuf.c" bodystart="1016" bodyend="1052" declfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" declline="239" declcolumn="7"/> <references refid="debug_8h_1a827bc03cd7889e7c007df39d33b33d18" compoundref="debug_8h" startline="135">LWIP_ERROR</references> <references refid="fat__string_8h_1a070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="fat__string_8h" startline="17">NULL</references> <references refid="structpbuf_1a6f82449625e36e294f5d210268c0703f" compoundref="pbuf_8h" startline="159">pbuf::len</references> <references refid="structpbuf_1a5e5763c94fd18d78937b0b58ce7df341" compoundref="pbuf_8h" startline="144">pbuf::next</references> <references refid="lwipopts_8h_1aa1dd57a66b6de8c0593e9e3e8d1411f6" compoundref="lwipopts_8h" startline="43">MEMCPY</references> <references refid="structpbuf_1a8d32dc3e964369d4eec638fc37fbc460" compoundref="pbuf_8h" startline="147">pbuf::payload</references> </memberdef> <memberdef kind="function" id="pbuf_8h_1abf3d29c4f43986b4cb5eb314d5b9729d" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>struct <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> <para>Dechains the first pbuf from its succeeding pbufs in the chain.</para> <para>Makes p->tot_len field equal to p->len. <parameterlist kind="param"><parameteritem> <parameternamelist> <parametername>p</parametername> </parameternamelist> <parameterdescription> <para>pbuf to dechain </para> </parameterdescription> </parameteritem> </parameterlist> <simplesect kind="return"><para>remainder of the pbuf chain, or NULL if it was de-allocated. </para> </simplesect> <simplesect kind="note"><para>May not be called on a packet queue. </para> </simplesect> </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="237" column="11" bodyfile="C:/Dev/git/UbixOS/sys/net/core/pbuf.c" bodystart="900" bodyend="928" declfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" declline="237" declcolumn="11"/> <references refid="structpbuf_1a6f82449625e36e294f5d210268c0703f" compoundref="pbuf_8h" startline="159">pbuf::len</references> <references refid="debug_8h_1a94ad086267808462beae2b38f91996ed" compoundref="debug_8h" startline="116">LWIP_ASSERT</references> <references refid="group__debugging__levels_1ga988147559b78642ac881815b66023646" compoundref="debug_8h" startline="83">LWIP_DBG_TRACE</references> <references refid="debug_8h_1a63a04edf7ff63c951bd8706711956cdb" compoundref="debug_8h" startline="164">LWIP_DEBUGF</references> <references refid="structpbuf_1a5e5763c94fd18d78937b0b58ce7df341" compoundref="pbuf_8h" startline="144">pbuf::next</references> <references refid="fat__string_8h_1a070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="fat__string_8h" startline="17">NULL</references> <references refid="lwipopts_8h_1a5c3d44a0ec3bb8bd66f776c70d5c6a6c" compoundref="lwipopts_8h" startline="435">PBUF_DEBUG</references> <references refid="group__pbuf_1gab0dd696fb4b6bc65e548944584f1738b" compoundref="pbuf_8c" startline="715" endline="792">pbuf_free</references> <references refid="structpbuf_1a5259e7ec29bab9c0999b64f2e86b411f" compoundref="pbuf_8h" startline="156">pbuf::tot_len</references> </memberdef> <memberdef kind="function" id="group__pbuf_1gab0dd696fb4b6bc65e548944584f1738b" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type><ref refid="group__compiler__abstraction_1ga4caecabca98b43919dd11be1c0d4cd8e" kindref="member">u8_t</ref></type> <definition>u8_t 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> <para>Dereference a pbuf chain or queue and deallocate any no-longer-used pbufs at the head of this chain or queue.</para> <para>Decrements the pbuf reference count. If it reaches zero, the pbuf is deallocated.</para> <para>For a pbuf chain, this is repeated for each pbuf in the chain, up to the first pbuf which has a non-zero reference count after decrementing. So, when all reference counts are one, the whole chain is free'd.</para> <para><parameterlist kind="param"><parameteritem> <parameternamelist> <parametername>p</parametername> </parameternamelist> <parameterdescription> <para>The pbuf (chain) to be dereferenced.</para> </parameterdescription> </parameteritem> </parameterlist> <simplesect kind="return"><para>the number of pbufs that were de-allocated from the head of the chain.</para> </simplesect> <simplesect kind="note"><para>MUST NOT be called on a packet queue (Not verified to work yet). </para> </simplesect> <simplesect kind="note"><para>the reference counter of a pbuf equals the number of pointers that refer to the pbuf (or into the pbuf).</para> </simplesect> </para> <internal><para>examples:</para> <para>Assuming existing chains a->b->c with the following reference counts, calling pbuf_free(a) results in:</para> <para>1->2->3 becomes ...1->3 3->3->3 becomes 2->3->3 1->1->2 becomes ......1 2->1->1 becomes 1->1->1 1->1->1 becomes ....... </para> </internal> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="233" column="6" bodyfile="C:/Dev/git/UbixOS/sys/net/core/pbuf.c" bodystart="715" bodyend="792" declfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" declline="233" declcolumn="6"/> <references refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" compoundref="armv6_2sched_8c" startline="50">_current</references> <references refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" compoundref="sched_8h" startline="63">taskStruct::id</references> <references refid="debug_8h_1a94ad086267808462beae2b38f91996ed" compoundref="debug_8h" startline="116">LWIP_ASSERT</references> <references refid="group__debugging__levels_1ga0269bdc51f1e8a5ecf9af72c6e1c996c" compoundref="debug_8h" startline="57">LWIP_DBG_LEVEL_SERIOUS</references> <references refid="group__debugging__levels_1ga988147559b78642ac881815b66023646" compoundref="debug_8h" startline="83">LWIP_DBG_TRACE</references> <references refid="debug_8h_1a63a04edf7ff63c951bd8706711956cdb" compoundref="debug_8h" startline="164">LWIP_DEBUGF</references> <references refid="mem_8h_1a2fd7aa1adf6e394d3be7c7734e7df41a" compoundref="mem_8c" startline="419" endline="465">mem_free</references> <references refid="memp_8h_1aecd94926b7c2a0e23ae195f4ae97581f" compoundref="memp_8c" startline="469" endline="496">memp_free</references> <references refid="structpbuf_1a5e5763c94fd18d78937b0b58ce7df341" compoundref="pbuf_8h" startline="144">pbuf::next</references> <references refid="fat__string_8h_1a070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="fat__string_8h" startline="17">NULL</references> <references refid="lwipopts_8h_1a5c3d44a0ec3bb8bd66f776c70d5c6a6c" compoundref="lwipopts_8h" startline="435">PBUF_DEBUG</references> <references refid="pbuf_8h_1af78a7e1815dc0e31884d095b666d997f" compoundref="pbuf_8h" startline="131">PBUF_FLAG_IS_CUSTOM</references> <references refid="group__pbuf_1ggab7e0e32fcc292c0d7107721766ed92fbae969347127387b9b59a23ccd24b76d21" compoundref="pbuf_8h" startline="123">PBUF_POOL</references> <references refid="group__pbuf_1ggab7e0e32fcc292c0d7107721766ed92fbac5e9f28455bca98944a030d4b84ecfab" compoundref="pbuf_8h" startline="108">PBUF_RAM</references> <references refid="group__pbuf_1ggab7e0e32fcc292c0d7107721766ed92fbac9b6ba960fdea6f2e8f35c8313b77e4e" compoundref="pbuf_8h" startline="116">PBUF_REF</references> <references refid="group__pbuf_1ggab7e0e32fcc292c0d7107721766ed92fbac120b0fe39efe35bb682e4aa3b82e2c9" compoundref="pbuf_8h" startline="112">PBUF_ROM</references> <references refid="perf_8h_1aa1d6977095e51331f65dcfb2b076da52" compoundref="perf_8h" startline="20">PERF_START</references> <references refid="perf_8h_1a8ac3afe5d720793a229fbf70a78eb82f" compoundref="perf_8h" startline="21">PERF_STOP</references> <references refid="structpbuf_1a18e2c02942feb1baa3756fcd585b6731" compoundref="pbuf_8h" startline="172">pbuf::ref</references> <references refid="sys_8h_1a945395fa326214fc9736487242710a90" compoundref="sys_8h" startline="361">SYS_ARCH_DECL_PROTECT</references> <references refid="sys_8h_1a3d0e48feafd378e9c26c64567ecd8bab" compoundref="sys_8h" startline="362">SYS_ARCH_PROTECT</references> <references refid="sys_8h_1a2f48e97047945642ddeb27e65bf4ffe2" compoundref="sys_8h" startline="363">SYS_ARCH_UNPROTECT</references> <references refid="structpbuf_1afd7bff5210a022424caa97d2f25fe8e6" compoundref="pbuf_8h" startline="162">pbuf::type</references> <references refid="group__compiler__abstraction_1gaa9d7f6eb2ee9fcc5eda3545dbb1886e0" compoundref="arch_8h" startline="148">U16_F</references> <referencedby refid="group__pbuf_1gacfcb0a2af918658ba0afe36499c65f47" compoundref="pbuf_8c" startline="248" endline="405">pbuf_alloc</referencedby> <referencedby refid="group__pbuf_1ga50abfe830a33a1a47a562febee66015d" compoundref="pbuf_8c" startline="493" endline="555">pbuf_realloc</referencedby> <referencedby refid="pbuf_8c_1abf3d29c4f43986b4cb5eb314d5b9729d" compoundref="pbuf_8c" startline="900" endline="928">pbuf_dechain</referencedby> <referencedby refid="group__pbuf_1ga54ac7b116c6f53c704cbf74f35a8b35c" compoundref="pbuf_8c" startline="1230" endline="1247">pbuf_coalesce</referencedby> <referencedby refid="arp_8c_1a57a25dd51cf73f048ad5364ecc2f040b" compoundref="arp_8c" startline="197" endline="257">arp_arp_input</referencedby> </memberdef> <memberdef kind="function" id="group__pbuf_1ga6d803d9945bffb7ad97743f2fa503da6" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type><ref refid="group__compiler__abstraction_1ga4caecabca98b43919dd11be1c0d4cd8e" kindref="member">u8_t</ref></type> <definition>u8_t pbuf_get_at</definition> <argsstring>(const struct pbuf *p, u16_t offset)</argsstring> <name>pbuf_get_at</name> <param> <type><ref refid="cdefs_8h_1a2c212835823e3c54a8ab6d95c652660e" kindref="member">const</ref> struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type> <declname>p</declname> </param> <param> <type><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref></type> <declname>offset</declname> </param> <briefdescription> </briefdescription> <detaileddescription> <para>Get one byte from the specified position in a pbuf WARNING: returns zero for offset >= p->tot_len</para> <para><parameterlist kind="param"><parameteritem> <parameternamelist> <parametername>p</parametername> </parameternamelist> <parameterdescription> <para>pbuf to parse </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>offset</parametername> </parameternamelist> <parameterdescription> <para>offset into p of the byte to return </para> </parameterdescription> </parameteritem> </parameterlist> <simplesect kind="return"><para>byte at an offset into p OR ZERO IF 'offset' >= p->tot_len </para> </simplesect> </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="252" column="6" bodyfile="C:/Dev/git/UbixOS/sys/net/core/pbuf.c" bodystart="1300" bodyend="1307" declfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" declline="252" declcolumn="6"/> <references refid="group__pbuf_1ga839f342803b0cf89049744124c5a98ad" compoundref="pbuf_8c" startline="1318" endline="1328">pbuf_try_get_at</references> <referencedby refid="group__pbuf_1ga2170ccbbb13238380dbb203ee1b85974" compoundref="pbuf_8c" startline="1363" endline="1390">pbuf_memcmp</referencedby> </memberdef> <memberdef kind="function" id="pbuf_8h_1aaa17c1951cf2d207b6adfd3947d91f00" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type><ref refid="group__compiler__abstraction_1ga4caecabca98b43919dd11be1c0d4cd8e" kindref="member">u8_t</ref></type> <definition>u8_t pbuf_header</definition> <argsstring>(struct pbuf *p, s16_t 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="group__compiler__abstraction_1gacf46f4df0ebab84edebcb69967fdf86b" kindref="member">s16_t</ref></type> <declname>header_size</declname> <defname>header_size_increment</defname> </param> <briefdescription> </briefdescription> <detaileddescription> <para>Adjusts the payload pointer to hide or reveal headers in the payload.</para> <para>Adjusts the ->payload pointer so that space for a header (dis)appears in the pbuf payload.</para> <para>The ->payload, ->tot_len and ->len fields are adjusted.</para> <para><parameterlist kind="param"><parameteritem> <parameternamelist> <parametername>p</parametername> </parameternamelist> <parameterdescription> <para>pbuf to change the header size. </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>header_size_increment</parametername> </parameternamelist> <parameterdescription> <para>Number of bytes to increment header size which increases the size of the pbuf. New space is on the front. (Using a negative value decreases the header size.) If hdr_size_inc is 0, this function does nothing and returns successful.</para> </parameterdescription> </parameteritem> </parameterlist> PBUF_ROM and PBUF_REF type buffers cannot have their sizes increased, so the call will fail. A check is made that the increase in header size does not move the payload pointer in front of the start of the buffer. <simplesect kind="return"><para>non-zero on failure, zero on success. </para> </simplesect> </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="230" column="6" bodyfile="C:/Dev/git/UbixOS/sys/net/core/pbuf.c" bodystart="665" bodyend="668" declfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" declline="230" declcolumn="6"/> </memberdef> <memberdef kind="function" id="pbuf_8h_1a27480c41c34021d4417691d327163626" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type><ref refid="group__compiler__abstraction_1ga4caecabca98b43919dd11be1c0d4cd8e" kindref="member">u8_t</ref></type> <definition>u8_t pbuf_header_force</definition> <argsstring>(struct pbuf *p, s16_t header_size)</argsstring> <name>pbuf_header_force</name> <param> <type>struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type> <declname>p</declname> </param> <param> <type><ref refid="group__compiler__abstraction_1gacf46f4df0ebab84edebcb69967fdf86b" kindref="member">s16_t</ref></type> <declname>header_size</declname> <defname>header_size_increment</defname> </param> <briefdescription> </briefdescription> <detaileddescription> <para>Same as pbuf_header but does not check if 'header_size > 0' is allowed. This is used internally only, to allow PBUF_REF for RX. </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="231" column="6" bodyfile="C:/Dev/git/UbixOS/sys/net/core/pbuf.c" bodystart="675" bodyend="678" declfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" declline="231" declcolumn="6"/> </memberdef> <memberdef kind="function" id="group__pbuf_1ga2170ccbbb13238380dbb203ee1b85974" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref></type> <definition>u16_t pbuf_memcmp</definition> <argsstring>(const struct pbuf *p, u16_t offset, const void *s2, u16_t n)</argsstring> <name>pbuf_memcmp</name> <param> <type><ref refid="cdefs_8h_1a2c212835823e3c54a8ab6d95c652660e" kindref="member">const</ref> struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type> <declname>p</declname> </param> <param> <type><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref></type> <declname>offset</declname> </param> <param> <type><ref refid="cdefs_8h_1a2c212835823e3c54a8ab6d95c652660e" kindref="member">const</ref> void *</type> <declname>s2</declname> </param> <param> <type><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref></type> <declname>n</declname> </param> <briefdescription> </briefdescription> <detaileddescription> <para>Compare pbuf contents at specified offset with memory s2, both of length n</para> <para><parameterlist kind="param"><parameteritem> <parameternamelist> <parametername>p</parametername> </parameternamelist> <parameterdescription> <para>pbuf to compare </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>offset</parametername> </parameternamelist> <parameterdescription> <para>offset into p at which to start comparing </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>s2</parametername> </parameternamelist> <parameterdescription> <para>buffer to compare </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>n</parametername> </parameternamelist> <parameterdescription> <para>length of buffer to compare </para> </parameterdescription> </parameteritem> </parameterlist> <simplesect kind="return"><para>zero if equal, nonzero otherwise (0xffff if p is too short, diffoffset+1 otherwise) </para> </simplesect> </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="255" column="7" bodyfile="C:/Dev/git/UbixOS/sys/net/core/pbuf.c" bodystart="1363" bodyend="1390" declfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" declline="255" declcolumn="7"/> <references refid="structpbuf_1a5259e7ec29bab9c0999b64f2e86b411f" compoundref="pbuf_8h" startline="156">pbuf::tot_len</references> <references refid="fat__string_8h_1a070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="fat__string_8h" startline="17">NULL</references> <references refid="structpbuf_1a6f82449625e36e294f5d210268c0703f" compoundref="pbuf_8h" startline="159">pbuf::len</references> <references refid="structpbuf_1a5e5763c94fd18d78937b0b58ce7df341" compoundref="pbuf_8h" startline="144">pbuf::next</references> <references refid="group__pbuf_1ga6d803d9945bffb7ad97743f2fa503da6" compoundref="pbuf_8c" startline="1300" endline="1307">pbuf_get_at</references> <referencedby refid="group__pbuf_1ga18c164a6e4a24d89ea9eb7571a886448" compoundref="pbuf_8c" startline="1405" endline="1418">pbuf_memfind</referencedby> </memberdef> <memberdef kind="function" id="group__pbuf_1ga18c164a6e4a24d89ea9eb7571a886448" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref></type> <definition>u16_t pbuf_memfind</definition> <argsstring>(const struct pbuf *p, const void *mem, u16_t mem_len, u16_t start_offset)</argsstring> <name>pbuf_memfind</name> <param> <type><ref refid="cdefs_8h_1a2c212835823e3c54a8ab6d95c652660e" kindref="member">const</ref> struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type> <declname>p</declname> </param> <param> <type><ref refid="cdefs_8h_1a2c212835823e3c54a8ab6d95c652660e" kindref="member">const</ref> void *</type> <declname>mem</declname> </param> <param> <type><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref></type> <declname>mem_len</declname> </param> <param> <type><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref></type> <declname>start_offset</declname> </param> <briefdescription> </briefdescription> <detaileddescription> <para>Find occurrence of mem (with length mem_len) in pbuf p, starting at offset start_offset.</para> <para><parameterlist kind="param"><parameteritem> <parameternamelist> <parametername>p</parametername> </parameternamelist> <parameterdescription> <para>pbuf to search, maximum length is 0xFFFE since 0xFFFF is used as return value 'not found' </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>mem</parametername> </parameternamelist> <parameterdescription> <para>search for the contents of this buffer </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>mem_len</parametername> </parameternamelist> <parameterdescription> <para>length of 'mem' </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>start_offset</parametername> </parameternamelist> <parameterdescription> <para>offset into p at which to start searching </para> </parameterdescription> </parameteritem> </parameterlist> <simplesect kind="return"><para>0xFFFF if substr was not found in p or the index where it was found </para> </simplesect> </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="256" column="7" bodyfile="C:/Dev/git/UbixOS/sys/net/core/pbuf.c" bodystart="1405" bodyend="1418" declfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" declline="256" declcolumn="7"/> <references refid="structpbuf_1a5259e7ec29bab9c0999b64f2e86b411f" compoundref="pbuf_8h" startline="156">pbuf::tot_len</references> <references refid="group__pbuf_1ga2170ccbbb13238380dbb203ee1b85974" compoundref="pbuf_8c" startline="1363" endline="1390">pbuf_memcmp</references> <referencedby refid="pbuf_8c_1a9ba3f7b705309ceadb147692fd5a1c7d" compoundref="pbuf_8c" startline="1432" endline="1443">pbuf_strstr</referencedby> </memberdef> <memberdef kind="function" id="group__pbuf_1gaf76863707dc02993eae116574b1ea03f" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void pbuf_put_at</definition> <argsstring>(struct pbuf *p, u16_t offset, u8_t data)</argsstring> <name>pbuf_put_at</name> <param> <type>struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type> <declname>p</declname> </param> <param> <type><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref></type> <declname>offset</declname> </param> <param> <type><ref refid="group__compiler__abstraction_1ga4caecabca98b43919dd11be1c0d4cd8e" kindref="member">u8_t</ref></type> <declname>data</declname> </param> <briefdescription> </briefdescription> <detaileddescription> <para>Put one byte to the specified position in a pbuf WARNING: silently ignores offset >= p->tot_len</para> <para><parameterlist kind="param"><parameteritem> <parameternamelist> <parametername>p</parametername> </parameternamelist> <parameterdescription> <para>pbuf to fill </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>offset</parametername> </parameternamelist> <parameterdescription> <para>offset into p of the byte to write </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>data</parametername> </parameternamelist> <parameterdescription> <para>byte to write at an offset into p </para> </parameterdescription> </parameteritem> </parameterlist> </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="254" column="6" bodyfile="C:/Dev/git/UbixOS/sys/net/core/pbuf.c" bodystart="1340" bodyend="1349" declfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" declline="254" declcolumn="6"/> <references refid="group__pbuf_1ga6a961522d81f0327aaf4d4ee6d96c583" compoundref="pbuf_8c" startline="1132" endline="1136">pbuf_skip</references> <references refid="fat__string_8h_1a070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="fat__string_8h" startline="17">NULL</references> <references refid="structpbuf_1a6f82449625e36e294f5d210268c0703f" compoundref="pbuf_8h" startline="159">pbuf::len</references> <references refid="structpbuf_1a8d32dc3e964369d4eec638fc37fbc460" compoundref="pbuf_8h" startline="147">pbuf::payload</references> </memberdef> <memberdef kind="function" id="group__pbuf_1ga50abfe830a33a1a47a562febee66015d" 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, u16_t 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="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref></type> <declname>size</declname> <defname>new_len</defname> </param> <briefdescription> </briefdescription> <detaileddescription> <para>Shrink a pbuf chain to a desired length.</para> <para><parameterlist kind="param"><parameteritem> <parameternamelist> <parametername>p</parametername> </parameternamelist> <parameterdescription> <para>pbuf to shrink. </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>new_len</parametername> </parameternamelist> <parameterdescription> <para>desired new length of pbuf chain</para> </parameterdescription> </parameteritem> </parameterlist> Depending on the desired length, the first few pbufs in a chain might be skipped and left unchanged. The new last pbuf in the chain will be resized, and any remaining pbufs will be freed.</para> <para><simplesect kind="note"><para>If the pbuf is ROM/REF, only the ->tot_len and ->len fields are adjusted. </para> </simplesect> <simplesect kind="note"><para>May not be called on a packet queue.</para> </simplesect> <simplesect kind="note"><para>Despite its name, pbuf_realloc cannot grow the size of a pbuf (chain). </para> </simplesect> </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="229" column="6" bodyfile="C:/Dev/git/UbixOS/sys/net/core/pbuf.c" bodystart="493" bodyend="555" declfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" declline="229" declcolumn="6"/> <references refid="debug_8h_1a94ad086267808462beae2b38f91996ed" compoundref="debug_8h" startline="116">LWIP_ASSERT</references> <references refid="fat__string_8h_1a070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="fat__string_8h" startline="17">NULL</references> <references refid="structpbuf_1afd7bff5210a022424caa97d2f25fe8e6" compoundref="pbuf_8h" startline="162">pbuf::type</references> <references refid="group__pbuf_1ggab7e0e32fcc292c0d7107721766ed92fbae969347127387b9b59a23ccd24b76d21" compoundref="pbuf_8h" startline="123">PBUF_POOL</references> <references refid="group__pbuf_1ggab7e0e32fcc292c0d7107721766ed92fbac120b0fe39efe35bb682e4aa3b82e2c9" compoundref="pbuf_8h" startline="112">PBUF_ROM</references> <references refid="group__pbuf_1ggab7e0e32fcc292c0d7107721766ed92fbac5e9f28455bca98944a030d4b84ecfab" compoundref="pbuf_8h" startline="108">PBUF_RAM</references> <references refid="group__pbuf_1ggab7e0e32fcc292c0d7107721766ed92fbac9b6ba960fdea6f2e8f35c8313b77e4e" compoundref="pbuf_8h" startline="116">PBUF_REF</references> <references refid="structpbuf_1a5259e7ec29bab9c0999b64f2e86b411f" compoundref="pbuf_8h" startline="156">pbuf::tot_len</references> <references refid="structpbuf_1a6f82449625e36e294f5d210268c0703f" compoundref="pbuf_8h" startline="159">pbuf::len</references> <references refid="structpbuf_1a5e5763c94fd18d78937b0b58ce7df341" compoundref="pbuf_8h" startline="144">pbuf::next</references> <references refid="pbuf_8h_1a64174c5169b48dc17674324afd9c63b9" compoundref="pbuf_8h" startline="55">LWIP_SUPPORT_CUSTOM_PBUF</references> <references refid="structpbuf_1aa4d1af2cab3d9280d29212095b5b872a" compoundref="pbuf_8h" startline="165">pbuf::flags</references> <references refid="pbuf_8h_1af78a7e1815dc0e31884d095b666d997f" compoundref="pbuf_8h" startline="131">PBUF_FLAG_IS_CUSTOM</references> <references refid="mem_8h_1a5e39a108c44d8a72df0b30a117cb62e4" compoundref="mem_8c" startline="478" endline="592">mem_trim</references> <references refid="structpbuf_1a8d32dc3e964369d4eec638fc37fbc460" compoundref="pbuf_8h" startline="147">pbuf::payload</references> <references refid="group__pbuf_1gab0dd696fb4b6bc65e548944584f1738b" compoundref="pbuf_8c" startline="715" endline="792">pbuf_free</references> </memberdef> <memberdef kind="function" id="group__pbuf_1ga77f6bbd69e45e542014d9c547c7da74e" 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> <para>Increment the reference count of the pbuf.</para> <para><parameterlist kind="param"><parameteritem> <parameternamelist> <parametername>p</parametername> </parameternamelist> <parameterdescription> <para>pbuf to increase reference counter of </para> </parameterdescription> </parameteritem> </parameterlist> </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="232" column="6" bodyfile="C:/Dev/git/UbixOS/sys/net/core/pbuf.c" bodystart="821" bodyend="828" declfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" declline="232" declcolumn="6"/> <references refid="fat__string_8h_1a070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="fat__string_8h" startline="17">NULL</references> <references refid="sys_8h_1acc5f7f8cbd020de628d1e9a0443da4c7" compoundref="sys_8h" startline="375">SYS_ARCH_INC</references> <references refid="structpbuf_1a18e2c02942feb1baa3756fcd585b6731" compoundref="pbuf_8h" startline="172">pbuf::ref</references> <references refid="debug_8h_1a94ad086267808462beae2b38f91996ed" compoundref="debug_8h" startline="116">LWIP_ASSERT</references> <referencedby refid="group__pbuf_1ga831c9a72bda1d3bd4c7b96f5a0e3b891" compoundref="pbuf_8c" startline="883" endline="889">pbuf_chain</referencedby> </memberdef> <memberdef kind="function" id="group__pbuf_1ga6a961522d81f0327aaf4d4ee6d96c583" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type> <definition>struct pbuf* pbuf_skip</definition> <argsstring>(struct pbuf *in, u16_t in_offset, u16_t *out_offset)</argsstring> <name>pbuf_skip</name> <param> <type>struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type> <declname>in</declname> </param> <param> <type><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref></type> <declname>in_offset</declname> </param> <param> <type><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref> *</type> <declname>out_offset</declname> </param> <briefdescription> </briefdescription> <detaileddescription> <para>Skip a number of bytes at the start of a pbuf</para> <para><parameterlist kind="param"><parameteritem> <parameternamelist> <parametername>in</parametername> </parameternamelist> <parameterdescription> <para>input pbuf </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>in_offset</parametername> </parameternamelist> <parameterdescription> <para>offset to skip </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>out_offset</parametername> </parameternamelist> <parameterdescription> <para>resulting offset in the returned pbuf </para> </parameterdescription> </parameteritem> </parameterlist> <simplesect kind="return"><para>the pbuf in the queue where the offset is </para> </simplesect> </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="242" column="11" bodyfile="C:/Dev/git/UbixOS/sys/net/core/pbuf.c" bodystart="1132" bodyend="1136" declfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" declline="242" declcolumn="11"/> <referencedby refid="group__pbuf_1gae1cf2bf7454ff87ff377b0b2262f9b44" compoundref="pbuf_8c" startline="1194" endline="1214">pbuf_take_at</referencedby> <referencedby refid="group__pbuf_1gaf76863707dc02993eae116574b1ea03f" compoundref="pbuf_8c" startline="1340" endline="1349">pbuf_put_at</referencedby> </memberdef> <memberdef kind="function" id="pbuf_8h_1a9ba3f7b705309ceadb147692fd5a1c7d" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref></type> <definition>u16_t pbuf_strstr</definition> <argsstring>(const struct pbuf *p, const char *substr)</argsstring> <name>pbuf_strstr</name> <param> <type><ref refid="cdefs_8h_1a2c212835823e3c54a8ab6d95c652660e" kindref="member">const</ref> struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type> <declname>p</declname> </param> <param> <type><ref refid="cdefs_8h_1a2c212835823e3c54a8ab6d95c652660e" kindref="member">const</ref> char *</type> <declname>substr</declname> </param> <briefdescription> </briefdescription> <detaileddescription> <para>Find occurrence of substr with length substr_len in pbuf p, start at offset start_offset WARNING: in contrast to <ref refid="string_8h_1adcec9a82a6a276e8edb0fd4fc26fe8f2" kindref="member">strstr()</ref>, this one does not stop at the first \0 in the pbuf/source string!</para> <para><parameterlist kind="param"><parameteritem> <parameternamelist> <parametername>p</parametername> </parameternamelist> <parameterdescription> <para>pbuf to search, maximum length is 0xFFFE since 0xFFFF is used as return value 'not found' </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>substr</parametername> </parameternamelist> <parameterdescription> <para>string to search for in p, maximum length is 0xFFFE </para> </parameterdescription> </parameteritem> </parameterlist> <simplesect kind="return"><para>0xFFFF if substr was not found in p or the index where it was found </para> </simplesect> </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="257" column="7" bodyfile="C:/Dev/git/UbixOS/sys/net/core/pbuf.c" bodystart="1432" bodyend="1443" declfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" declline="257" declcolumn="7"/> <references refid="fat__string_8h_1a070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="fat__string_8h" startline="17">NULL</references> <references refid="group__pbuf_1ga18c164a6e4a24d89ea9eb7571a886448" compoundref="pbuf_8c" startline="1405" endline="1418">pbuf_memfind</references> <references refid="lib_8h_1ae6c8de953239811a34eeeab09458e55e" compoundref="strlen_8c" startline="55" endline="101">strlen</references> <references refid="structpbuf_1a5259e7ec29bab9c0999b64f2e86b411f" compoundref="pbuf_8h" startline="156">pbuf::tot_len</references> </memberdef> <memberdef kind="function" id="group__pbuf_1gad1e31e370271335b197272af2724ca85" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type><ref refid="group__infrastructure__errors_1gaf02d9da80fd66b4f986d2c53d7231ddb" kindref="member">err_t</ref></type> <definition>err_t pbuf_take</definition> <argsstring>(struct pbuf *buf, const void *dataptr, u16_t len)</argsstring> <name>pbuf_take</name> <param> <type>struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type> <declname>buf</declname> </param> <param> <type><ref refid="cdefs_8h_1a2c212835823e3c54a8ab6d95c652660e" kindref="member">const</ref> void *</type> <declname>dataptr</declname> </param> <param> <type><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref></type> <declname>len</declname> </param> <briefdescription> </briefdescription> <detaileddescription> <para>Copy application supplied data into a pbuf. This function can only be used to copy the equivalent of buf->tot_len data.</para> <para><parameterlist kind="param"><parameteritem> <parameternamelist> <parametername>buf</parametername> </parameternamelist> <parameterdescription> <para>pbuf to fill with data </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>dataptr</parametername> </parameternamelist> <parameterdescription> <para>application supplied data buffer </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>len</parametername> </parameternamelist> <parameterdescription> <para>length of the application supplied data buffer</para> </parameterdescription> </parameteritem> </parameterlist> <simplesect kind="return"><para>ERR_OK if successful, ERR_MEM if the pbuf is not big enough </para> </simplesect> </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="240" column="7" bodyfile="C:/Dev/git/UbixOS/sys/net/core/pbuf.c" bodystart="1150" bodyend="1180" declfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" declline="240" declcolumn="7"/> <references refid="structpbuf_1a6f82449625e36e294f5d210268c0703f" compoundref="pbuf_8h" startline="159">pbuf::len</references> <references refid="debug_8h_1a827bc03cd7889e7c007df39d33b33d18" compoundref="debug_8h" startline="135">LWIP_ERROR</references> <references refid="fat__string_8h_1a070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="fat__string_8h" startline="17">NULL</references> <references refid="group__infrastructure__errors_1ggae2e66c7d13afc90ffecd6151680fbadcab508ce0ebdf3ca735208b00a80a45c91" compoundref="err_8h" startline="96">ERR_ARG</references> <references refid="group__infrastructure__errors_1ggae2e66c7d13afc90ffecd6151680fbadcaaaeafdbf3aecc46864daa3cd829c7e05" compoundref="err_8h" startline="65">ERR_MEM</references> <references refid="structpbuf_1a5e5763c94fd18d78937b0b58ce7df341" compoundref="pbuf_8h" startline="144">pbuf::next</references> <references refid="debug_8h_1a94ad086267808462beae2b38f91996ed" compoundref="debug_8h" startline="116">LWIP_ASSERT</references> <references refid="lwipopts_8h_1aa1dd57a66b6de8c0593e9e3e8d1411f6" compoundref="lwipopts_8h" startline="43">MEMCPY</references> <references refid="structpbuf_1a8d32dc3e964369d4eec638fc37fbc460" compoundref="pbuf_8h" startline="147">pbuf::payload</references> <references refid="group__infrastructure__errors_1ggae2e66c7d13afc90ffecd6151680fbadcaa26c163b80b1f6786ca81dadc14b00fb" compoundref="err_8h" startline="63">ERR_OK</references> <referencedby refid="group__pbuf_1gae1cf2bf7454ff87ff377b0b2262f9b44" compoundref="pbuf_8c" startline="1194" endline="1214">pbuf_take_at</referencedby> </memberdef> <memberdef kind="function" id="group__pbuf_1gae1cf2bf7454ff87ff377b0b2262f9b44" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type><ref refid="group__infrastructure__errors_1gaf02d9da80fd66b4f986d2c53d7231ddb" kindref="member">err_t</ref></type> <definition>err_t pbuf_take_at</definition> <argsstring>(struct pbuf *buf, const void *dataptr, u16_t len, u16_t offset)</argsstring> <name>pbuf_take_at</name> <param> <type>struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type> <declname>buf</declname> </param> <param> <type><ref refid="cdefs_8h_1a2c212835823e3c54a8ab6d95c652660e" kindref="member">const</ref> void *</type> <declname>dataptr</declname> </param> <param> <type><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref></type> <declname>len</declname> </param> <param> <type><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref></type> <declname>offset</declname> </param> <briefdescription> </briefdescription> <detaileddescription> <para>Same as <ref refid="group__pbuf_1gad1e31e370271335b197272af2724ca85" kindref="member">pbuf_take()</ref> but puts data at an offset</para> <para><parameterlist kind="param"><parameteritem> <parameternamelist> <parametername>buf</parametername> </parameternamelist> <parameterdescription> <para>pbuf to fill with data </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>dataptr</parametername> </parameternamelist> <parameterdescription> <para>application supplied data buffer </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>len</parametername> </parameternamelist> <parameterdescription> <para>length of the application supplied data buffer </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>offset</parametername> </parameternamelist> <parameterdescription> <para>offset in pbuf where to copy dataptr to</para> </parameterdescription> </parameteritem> </parameterlist> <simplesect kind="return"><para>ERR_OK if successful, ERR_MEM if the pbuf is not big enough </para> </simplesect> </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="241" column="7" bodyfile="C:/Dev/git/UbixOS/sys/net/core/pbuf.c" bodystart="1194" bodyend="1214" declfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" declline="241" declcolumn="7"/> <references refid="group__pbuf_1ga6a961522d81f0327aaf4d4ee6d96c583" compoundref="pbuf_8c" startline="1132" endline="1136">pbuf_skip</references> <references refid="fat__string_8h_1a070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="fat__string_8h" startline="17">NULL</references> <references refid="structpbuf_1a5259e7ec29bab9c0999b64f2e86b411f" compoundref="pbuf_8h" startline="156">pbuf::tot_len</references> <references refid="structpbuf_1a6f82449625e36e294f5d210268c0703f" compoundref="pbuf_8h" startline="159">pbuf::len</references> <references refid="def_8h_1a748f5df614a3fc989e8900fd229d6e4e" compoundref="def_8h" startline="55">LWIP_MIN</references> <references refid="lwipopts_8h_1aa1dd57a66b6de8c0593e9e3e8d1411f6" compoundref="lwipopts_8h" startline="43">MEMCPY</references> <references refid="structpbuf_1a8d32dc3e964369d4eec638fc37fbc460" compoundref="pbuf_8h" startline="147">pbuf::payload</references> <references refid="group__pbuf_1gad1e31e370271335b197272af2724ca85" compoundref="pbuf_8c" startline="1150" endline="1180">pbuf_take</references> <references refid="structpbuf_1a5e5763c94fd18d78937b0b58ce7df341" compoundref="pbuf_8h" startline="144">pbuf::next</references> <references refid="group__infrastructure__errors_1ggae2e66c7d13afc90ffecd6151680fbadcaa26c163b80b1f6786ca81dadc14b00fb" compoundref="err_8h" startline="63">ERR_OK</references> <references refid="group__infrastructure__errors_1ggae2e66c7d13afc90ffecd6151680fbadcaaaeafdbf3aecc46864daa3cd829c7e05" compoundref="err_8h" startline="65">ERR_MEM</references> </memberdef> <memberdef kind="function" id="group__pbuf_1ga839f342803b0cf89049744124c5a98ad" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int pbuf_try_get_at</definition> <argsstring>(const struct pbuf *p, u16_t offset)</argsstring> <name>pbuf_try_get_at</name> <param> <type><ref refid="cdefs_8h_1a2c212835823e3c54a8ab6d95c652660e" kindref="member">const</ref> struct <ref refid="structpbuf" kindref="compound">pbuf</ref> *</type> <declname>p</declname> </param> <param> <type><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref></type> <declname>offset</declname> </param> <briefdescription> </briefdescription> <detaileddescription> <para>Get one byte from the specified position in a pbuf</para> <para><parameterlist kind="param"><parameteritem> <parameternamelist> <parametername>p</parametername> </parameternamelist> <parameterdescription> <para>pbuf to parse </para> </parameterdescription> </parameteritem> <parameteritem> <parameternamelist> <parametername>offset</parametername> </parameternamelist> <parameterdescription> <para>offset into p of the byte to return </para> </parameterdescription> </parameteritem> </parameterlist> <simplesect kind="return"><para>byte at an offset into p [0..0xFF] OR negative if 'offset' >= p->tot_len </para> </simplesect> </para> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" line="253" column="5" bodyfile="C:/Dev/git/UbixOS/sys/net/core/pbuf.c" bodystart="1318" bodyend="1328" declfile="C:/Dev/git/UbixOS/sys/include/net/pbuf.h" declline="253" declcolumn="5"/> <referencedby refid="group__pbuf_1ga6d803d9945bffb7ad97743f2fa503da6" compoundref="pbuf_8c" startline="1300" endline="1307">pbuf_get_at</referencedby> </memberdef> </sectiondef> <briefdescription> </briefdescription> <detaileddescription> <para>pbuf API </para> </detaileddescription> <programlisting> <codeline lineno="1"></codeline> <codeline lineno="6"><highlight class="comment">/*</highlight></codeline> <codeline lineno="7"><highlight class="comment"><sp/>*<sp/>Copyright<sp/>(c)<sp/>2001-2004<sp/>Swedish<sp/>Institute<sp/>of<sp/>Computer<sp/>Science.</highlight></codeline> <codeline lineno="8"><highlight class="comment"><sp/>*<sp/>All<sp/>rights<sp/>reserved.</highlight></codeline> <codeline lineno="9"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="10"><highlight class="comment"><sp/>*<sp/>Redistribution<sp/>and<sp/>use<sp/>in<sp/>source<sp/>and<sp/>binary<sp/>forms,<sp/>with<sp/>or<sp/>without<sp/>modification,</highlight></codeline> <codeline lineno="11"><highlight class="comment"><sp/>*<sp/>are<sp/>permitted<sp/>provided<sp/>that<sp/>the<sp/>following<sp/>conditions<sp/>are<sp/>met:</highlight></codeline> <codeline lineno="12"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="13"><highlight class="comment"><sp/>*<sp/>1.<sp/>Redistributions<sp/>of<sp/>source<sp/>code<sp/>must<sp/>retain<sp/>the<sp/>above<sp/>copyright<sp/>notice,</highlight></codeline> <codeline lineno="14"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>this<sp/>list<sp/>of<sp/>conditions<sp/>and<sp/>the<sp/>following<sp/>disclaimer.</highlight></codeline> <codeline lineno="15"><highlight class="comment"><sp/>*<sp/>2.<sp/>Redistributions<sp/>in<sp/>binary<sp/>form<sp/>must<sp/>reproduce<sp/>the<sp/>above<sp/>copyright<sp/>notice,</highlight></codeline> <codeline lineno="16"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>this<sp/>list<sp/>of<sp/>conditions<sp/>and<sp/>the<sp/>following<sp/>disclaimer<sp/>in<sp/>the<sp/>documentation</highlight></codeline> <codeline lineno="17"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>and/or<sp/>other<sp/>materials<sp/>provided<sp/>with<sp/>the<sp/>distribution.</highlight></codeline> <codeline lineno="18"><highlight class="comment"><sp/>*<sp/>3.<sp/>The<sp/>name<sp/>of<sp/>the<sp/>author<sp/>may<sp/>not<sp/>be<sp/>used<sp/>to<sp/>endorse<sp/>or<sp/>promote<sp/>products</highlight></codeline> <codeline lineno="19"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>derived<sp/>from<sp/>this<sp/>software<sp/>without<sp/>specific<sp/>prior<sp/>written<sp/>permission.</highlight></codeline> <codeline lineno="20"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="21"><highlight class="comment"><sp/>*<sp/>THIS<sp/>SOFTWARE<sp/>IS<sp/>PROVIDED<sp/>BY<sp/>THE<sp/>AUTHOR<sp/>``AS<sp/>IS''<sp/>AND<sp/>ANY<sp/>EXPRESS<sp/>OR<sp/>IMPLIED</highlight></codeline> <codeline lineno="22"><highlight class="comment"><sp/>*<sp/>WARRANTIES,<sp/>INCLUDING,<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO,<sp/>THE<sp/>IMPLIED<sp/>WARRANTIES<sp/>OF</highlight></codeline> <codeline lineno="23"><highlight class="comment"><sp/>*<sp/>MERCHANTABILITY<sp/>AND<sp/>FITNESS<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE<sp/>ARE<sp/>DISCLAIMED.<sp/>IN<sp/>NO<sp/>EVENT</highlight></codeline> <codeline lineno="24"><highlight class="comment"><sp/>*<sp/>SHALL<sp/>THE<sp/>AUTHOR<sp/>BE<sp/>LIABLE<sp/>FOR<sp/>ANY<sp/>DIRECT,<sp/>INDIRECT,<sp/>INCIDENTAL,<sp/>SPECIAL,</highlight></codeline> <codeline lineno="25"><highlight class="comment"><sp/>*<sp/>EXEMPLARY,<sp/>OR<sp/>CONSEQUENTIAL<sp/>DAMAGES<sp/>(INCLUDING,<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO,<sp/>PROCUREMENT</highlight></codeline> <codeline lineno="26"><highlight class="comment"><sp/>*<sp/>OF<sp/>SUBSTITUTE<sp/>GOODS<sp/>OR<sp/>SERVICES;<sp/>LOSS<sp/>OF<sp/>USE,<sp/>DATA,<sp/>OR<sp/>PROFITS;<sp/>OR<sp/>BUSINESS</highlight></codeline> <codeline lineno="27"><highlight class="comment"><sp/>*<sp/>INTERRUPTION)<sp/>HOWEVER<sp/>CAUSED<sp/>AND<sp/>ON<sp/>ANY<sp/>THEORY<sp/>OF<sp/>LIABILITY,<sp/>WHETHER<sp/>IN</highlight></codeline> <codeline lineno="28"><highlight class="comment"><sp/>*<sp/>CONTRACT,<sp/>STRICT<sp/>LIABILITY,<sp/>OR<sp/>TORT<sp/>(INCLUDING<sp/>NEGLIGENCE<sp/>OR<sp/>OTHERWISE)<sp/>ARISING</highlight></codeline> <codeline lineno="29"><highlight class="comment"><sp/>*<sp/>IN<sp/>ANY<sp/>WAY<sp/>OUT<sp/>OF<sp/>THE<sp/>USE<sp/>OF<sp/>THIS<sp/>SOFTWARE,<sp/>EVEN<sp/>IF<sp/>ADVISED<sp/>OF<sp/>THE<sp/>POSSIBILITY</highlight></codeline> <codeline lineno="30"><highlight class="comment"><sp/>*<sp/>OF<sp/>SUCH<sp/>DAMAGE.</highlight></codeline> <codeline lineno="31"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="32"><highlight class="comment"><sp/>*<sp/>This<sp/>file<sp/>is<sp/>part<sp/>of<sp/>the<sp/>lwIP<sp/>TCP/IP<sp/>stack.</highlight></codeline> <codeline lineno="33"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="34"><highlight class="comment"><sp/>*<sp/>Author:<sp/>Adam<sp/>Dunkels<sp/><adam@sics.se></highlight></codeline> <codeline lineno="35"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="36"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="37"><highlight class="normal"></highlight></codeline> <codeline lineno="38"><highlight class="normal"></highlight><highlight class="preprocessor">#ifndef<sp/>LWIP_HDR_PBUF_H</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="39"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>LWIP_HDR_PBUF_H</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="40"><highlight class="normal"></highlight></codeline> <codeline lineno="41"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="opt_8h" kindref="compound">net/opt.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="42"><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="43"><highlight class="normal"></highlight></codeline> <codeline lineno="44"><highlight class="normal"></highlight><highlight class="preprocessor">#ifdef<sp/>__cplusplus</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="45"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="stringliteral">"C"</highlight><highlight class="normal"><sp/>{</highlight></codeline> <codeline lineno="46"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="47"><highlight class="normal"></highlight></codeline> <codeline lineno="54"><highlight class="preprocessor">#ifndef<sp/>LWIP_SUPPORT_CUSTOM_PBUF</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="55" refid="pbuf_8h_1a64174c5169b48dc17674324afd9c63b9" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>LWIP_SUPPORT_CUSTOM_PBUF<sp/>((IP_FRAG<sp/>&&<sp/>!LWIP_NETIF_TX_SINGLE_PBUF)<sp/>||<sp/>(LWIP_IPV6<sp/>&&<sp/>LWIP_IPV6_FRAG))</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="56"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="57"><highlight class="normal"></highlight></codeline> <codeline lineno="58"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>@todo:<sp/>We<sp/>need<sp/>a<sp/>mechanism<sp/>to<sp/>prevent<sp/>wasting<sp/>memory<sp/>in<sp/>every<sp/>pbuf</highlight></codeline> <codeline lineno="59"><highlight class="comment"><sp/><sp/><sp/>(TCP<sp/>vs.<sp/>UDP,<sp/>IPv4<sp/>vs.<sp/>IPv6:<sp/>UDP/IPv4<sp/>packets<sp/>may<sp/>waste<sp/>up<sp/>to<sp/>28<sp/>bytes)<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="60"><highlight class="normal"></highlight></codeline> <codeline lineno="61" refid="pbuf_8h_1af9da2e1ca60dc0c584938ccc5d662307" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>PBUF_TRANSPORT_HLEN<sp/>20</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="62"><highlight class="normal"></highlight><highlight class="preprocessor">#if<sp/>LWIP_IPV6</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="63"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>PBUF_IP_HLEN<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>40</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="64"><highlight class="normal"></highlight><highlight class="preprocessor">#else</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="65" refid="pbuf_8h_1aae0fea237167bb06ea4dc5333df5b0a7" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>PBUF_IP_HLEN<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>20</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="66"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="67"><highlight class="normal"></highlight></codeline> <codeline lineno="72" refid="group__pbuf_1gaee1baa59bb2f85ba575b5a8619ac1ebf" refkind="member"><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">enum</highlight><highlight class="normal"><sp/>{</highlight></codeline> <codeline lineno="76" refid="group__pbuf_1ggaee1baa59bb2f85ba575b5a8619ac1ebfa2ded3594a3977f8bf9cf09552be327b5" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="group__pbuf_1ggaee1baa59bb2f85ba575b5a8619ac1ebfa2ded3594a3977f8bf9cf09552be327b5" kindref="member">PBUF_TRANSPORT</ref>,</highlight></codeline> <codeline lineno="80" refid="group__pbuf_1ggaee1baa59bb2f85ba575b5a8619ac1ebfafcc1e506061ba69dfa142eb6b3da5f13" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="group__pbuf_1ggaee1baa59bb2f85ba575b5a8619ac1ebfafcc1e506061ba69dfa142eb6b3da5f13" kindref="member">PBUF_IP</ref>,</highlight></codeline> <codeline lineno="85" refid="group__pbuf_1ggaee1baa59bb2f85ba575b5a8619ac1ebfab4de441e737330558b609a990cd17346" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="group__pbuf_1ggaee1baa59bb2f85ba575b5a8619ac1ebfab4de441e737330558b609a990cd17346" kindref="member">PBUF_LINK</ref>,</highlight></codeline> <codeline lineno="91" refid="group__pbuf_1ggaee1baa59bb2f85ba575b5a8619ac1ebfa0ff039585f05f9208bcb66c2d37783e2" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="group__pbuf_1ggaee1baa59bb2f85ba575b5a8619ac1ebfa0ff039585f05f9208bcb66c2d37783e2" kindref="member">PBUF_RAW_TX</ref>,</highlight></codeline> <codeline lineno="94" refid="group__pbuf_1ggaee1baa59bb2f85ba575b5a8619ac1ebfa21116654fbab6d5a4dfeb87a1bb8f0ba" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="group__pbuf_1ggaee1baa59bb2f85ba575b5a8619ac1ebfa21116654fbab6d5a4dfeb87a1bb8f0ba" kindref="member">PBUF_RAW</ref></highlight></codeline> <codeline lineno="95"><highlight class="normal">}<sp/><ref refid="group__pbuf_1gaee1baa59bb2f85ba575b5a8619ac1ebf" kindref="member">pbuf_layer</ref>;</highlight></codeline> <codeline lineno="96"><highlight class="normal"></highlight></codeline> <codeline lineno="101" refid="group__pbuf_1gab7e0e32fcc292c0d7107721766ed92fb" refkind="member"><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">enum</highlight><highlight class="normal"><sp/>{</highlight></codeline> <codeline lineno="108" refid="group__pbuf_1ggab7e0e32fcc292c0d7107721766ed92fbac5e9f28455bca98944a030d4b84ecfab" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="group__pbuf_1ggab7e0e32fcc292c0d7107721766ed92fbac5e9f28455bca98944a030d4b84ecfab" kindref="member">PBUF_RAM</ref>,</highlight></codeline> <codeline lineno="112" refid="group__pbuf_1ggab7e0e32fcc292c0d7107721766ed92fbac120b0fe39efe35bb682e4aa3b82e2c9" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="group__pbuf_1ggab7e0e32fcc292c0d7107721766ed92fbac120b0fe39efe35bb682e4aa3b82e2c9" kindref="member">PBUF_ROM</ref>,</highlight></codeline> <codeline lineno="116" refid="group__pbuf_1ggab7e0e32fcc292c0d7107721766ed92fbac9b6ba960fdea6f2e8f35c8313b77e4e" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="group__pbuf_1ggab7e0e32fcc292c0d7107721766ed92fbac9b6ba960fdea6f2e8f35c8313b77e4e" kindref="member">PBUF_REF</ref>,</highlight></codeline> <codeline lineno="123" refid="group__pbuf_1ggab7e0e32fcc292c0d7107721766ed92fbae969347127387b9b59a23ccd24b76d21" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="group__pbuf_1ggab7e0e32fcc292c0d7107721766ed92fbae969347127387b9b59a23ccd24b76d21" kindref="member">PBUF_POOL</ref></highlight></codeline> <codeline lineno="124"><highlight class="normal">}<sp/><ref refid="group__pbuf_1gab7e0e32fcc292c0d7107721766ed92fb" kindref="member">pbuf_type</ref>;</highlight></codeline> <codeline lineno="125"><highlight class="normal"></highlight></codeline> <codeline lineno="126"><highlight class="normal"></highlight></codeline> <codeline lineno="128" refid="pbuf_8h_1a018a6499e357f8a1373321f802a82930" refkind="member"><highlight class="preprocessor">#define<sp/>PBUF_FLAG_PUSH<sp/><sp/><sp/><sp/><sp/><sp/>0x01U</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="129"><highlight class="normal"></highlight></codeline> <codeline lineno="131" refid="pbuf_8h_1af78a7e1815dc0e31884d095b666d997f" refkind="member"><highlight class="preprocessor">#define<sp/>PBUF_FLAG_IS_CUSTOM<sp/>0x02U</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="132"><highlight class="normal"></highlight></codeline> <codeline lineno="133" refid="pbuf_8h_1ab8ad153151a8c157335d9c0cedc007e6" refkind="member"><highlight class="preprocessor">#define<sp/>PBUF_FLAG_MCASTLOOP<sp/>0x04U</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="134"><highlight class="normal"></highlight></codeline> <codeline lineno="135" refid="pbuf_8h_1a6772c16662bbb78597399add086500c0" refkind="member"><highlight class="preprocessor">#define<sp/>PBUF_FLAG_LLBCAST<sp/><sp/><sp/>0x08U</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="136"><highlight class="normal"></highlight></codeline> <codeline lineno="137" refid="pbuf_8h_1ac0d56cde47aca24ef410d730d7c89887" refkind="member"><highlight class="preprocessor">#define<sp/>PBUF_FLAG_LLMCAST<sp/><sp/><sp/>0x10U</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="138"><highlight class="normal"></highlight></codeline> <codeline lineno="139" refid="pbuf_8h_1a36a915aa2f6a188baa2862881407971e" refkind="member"><highlight class="preprocessor">#define<sp/>PBUF_FLAG_TCP_FIN<sp/><sp/><sp/>0x20U</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="140"><highlight class="normal"></highlight></codeline> <codeline lineno="142" refid="structpbuf" refkind="compound"><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>{</highlight></codeline> <codeline lineno="144" refid="structpbuf_1a5e5763c94fd18d78937b0b58ce7df341" 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_1a5e5763c94fd18d78937b0b58ce7df341" kindref="member">next</ref>;</highlight></codeline> <codeline lineno="145"><highlight class="normal"></highlight></codeline> <codeline lineno="147" refid="structpbuf_1a8d32dc3e964369d4eec638fc37fbc460" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*<ref refid="structpbuf_1a8d32dc3e964369d4eec638fc37fbc460" kindref="member">payload</ref>;</highlight></codeline> <codeline lineno="148"><highlight class="normal"></highlight></codeline> <codeline lineno="156" refid="structpbuf_1a5259e7ec29bab9c0999b64f2e86b411f" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/><ref refid="structpbuf_1a5259e7ec29bab9c0999b64f2e86b411f" kindref="member">tot_len</ref>;</highlight></codeline> <codeline lineno="157"><highlight class="normal"></highlight></codeline> <codeline lineno="159" refid="structpbuf_1a6f82449625e36e294f5d210268c0703f" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/><ref refid="structpbuf_1a6f82449625e36e294f5d210268c0703f" kindref="member">len</ref>;</highlight></codeline> <codeline lineno="160"><highlight class="normal"></highlight></codeline> <codeline lineno="162" refid="structpbuf_1afd7bff5210a022424caa97d2f25fe8e6" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="group__compiler__abstraction_1ga4caecabca98b43919dd11be1c0d4cd8e" kindref="member">u8_t</ref><sp/></highlight><highlight class="comment">/*pbuf_type*/</highlight><highlight class="normal"><sp/><ref refid="structpbuf_1afd7bff5210a022424caa97d2f25fe8e6" kindref="member">type</ref>;</highlight></codeline> <codeline lineno="163"><highlight class="normal"></highlight></codeline> <codeline lineno="165" refid="structpbuf_1aa4d1af2cab3d9280d29212095b5b872a" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="group__compiler__abstraction_1ga4caecabca98b43919dd11be1c0d4cd8e" kindref="member">u8_t</ref><sp/><ref refid="structpbuf_1aa4d1af2cab3d9280d29212095b5b872a" kindref="member">flags</ref>;</highlight></codeline> <codeline lineno="166"><highlight class="normal"></highlight></codeline> <codeline lineno="172" refid="structpbuf_1a18e2c02942feb1baa3756fcd585b6731" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/><ref refid="structpbuf_1a18e2c02942feb1baa3756fcd585b6731" kindref="member">ref</ref>;</highlight></codeline> <codeline lineno="173"><highlight class="normal">};</highlight></codeline> <codeline lineno="174"><highlight class="normal"></highlight></codeline> <codeline lineno="175"><highlight class="normal"></highlight></codeline> <codeline lineno="180" refid="structpbuf__rom" refkind="compound"><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structpbuf__rom" kindref="compound">pbuf_rom</ref><sp/>{</highlight></codeline> <codeline lineno="182" refid="structpbuf__rom_1a5ffdf590ed65b217e2d96f648e1bd3e7" 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__rom_1a5ffdf590ed65b217e2d96f648e1bd3e7" kindref="member">next</ref>;</highlight></codeline> <codeline lineno="183"><highlight class="normal"></highlight></codeline> <codeline lineno="185" refid="structpbuf__rom_1a5cd0dcc590038629644ad775d76230a1" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*<ref refid="structpbuf__rom_1a5cd0dcc590038629644ad775d76230a1" kindref="member">payload</ref>;</highlight></codeline> <codeline lineno="186"><highlight class="normal">};</highlight></codeline> <codeline lineno="187"><highlight class="normal"></highlight></codeline> <codeline lineno="188"><highlight class="normal"></highlight><highlight class="preprocessor">#if<sp/>LWIP_SUPPORT_CUSTOM_PBUF</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="189"><highlight class="normal"></highlight></codeline> <codeline lineno="190"><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/>void<sp/>(*pbuf_free_custom_fn)(</highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*p);</highlight></codeline> <codeline lineno="191"><highlight class="normal"></highlight></codeline> <codeline lineno="193"><highlight class="keyword">struct<sp/></highlight><highlight class="normal">pbuf_custom<sp/>{</highlight></codeline> <codeline lineno="195"><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" kindref="compound">pbuf</ref>;</highlight></codeline> <codeline lineno="197"><highlight class="normal"><sp/><sp/>pbuf_free_custom_fn<sp/>custom_free_function;</highlight></codeline> <codeline lineno="198"><highlight class="normal">};</highlight></codeline> <codeline lineno="199"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/></highlight><highlight class="comment">/*<sp/>LWIP_SUPPORT_CUSTOM_PBUF<sp/>*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="200"><highlight class="normal"></highlight></codeline> <codeline lineno="202"><highlight class="preprocessor">#ifndef<sp/>PBUF_POOL_FREE_OOSEQ</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="203" refid="pbuf_8h_1ac54b0f161128a32c7419c33b893a5106" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>PBUF_POOL_FREE_OOSEQ<sp/>1</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="204"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/></highlight><highlight class="comment">/*<sp/>PBUF_POOL_FREE_OOSEQ<sp/>*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="205"><highlight class="normal"></highlight><highlight class="preprocessor">#if<sp/>LWIP_TCP<sp/>&&<sp/>TCP_QUEUE_OOSEQ<sp/>&&<sp/>NO_SYS<sp/>&&<sp/>PBUF_POOL_FREE_OOSEQ</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="206"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">volatile</highlight><highlight class="normal"><sp/><ref refid="group__compiler__abstraction_1ga4caecabca98b43919dd11be1c0d4cd8e" kindref="member">u8_t</ref><sp/>pbuf_free_ooseq_pending;</highlight></codeline> <codeline lineno="207"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>pbuf_free_ooseq(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="211"><highlight class="preprocessor">#define<sp/>PBUF_CHECK_FREE_OOSEQ()<sp/>do<sp/>{<sp/>if(pbuf_free_ooseq_pending)<sp/>{<sp/>\</highlight></codeline> <codeline lineno="212"><highlight class="preprocessor"><sp/><sp/></highlight><highlight class="comment">/*<sp/>pbuf_alloc()<sp/>reported<sp/>PBUF_POOL<sp/>to<sp/>be<sp/>empty<sp/>-><sp/>try<sp/>to<sp/>free<sp/>some<sp/>\</highlight></codeline> <codeline lineno="213"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/>ooseq<sp/>queued<sp/>pbufs<sp/>now<sp/>*/</highlight><highlight class="preprocessor"><sp/>\</highlight></codeline> <codeline lineno="214"><highlight class="preprocessor"><sp/><sp/>pbuf_free_ooseq();<sp/>}}while(0)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="215"><highlight class="normal"></highlight><highlight class="preprocessor">#else<sp/></highlight><highlight class="comment">/*<sp/>LWIP_TCP<sp/>&&<sp/>TCP_QUEUE_OOSEQ<sp/>&&<sp/>NO_SYS<sp/>&&<sp/>PBUF_POOL_FREE_OOSEQ<sp/>*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="216"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Otherwise<sp/>declare<sp/>an<sp/>empty<sp/>PBUF_CHECK_FREE_OOSEQ<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="217" refid="pbuf_8h_1a1f31e5e7b39e90b9b52654f543bb8fc5" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor"><sp/><sp/>#define<sp/>PBUF_CHECK_FREE_OOSEQ()</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="218"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/></highlight><highlight class="comment">/*<sp/>LWIP_TCP<sp/>&&<sp/>TCP_QUEUE_OOSEQ<sp/>&&<sp/>NO_SYS<sp/>&&<sp/>PBUF_POOL_FREE_OOSEQ*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="219"><highlight class="normal"></highlight></codeline> <codeline lineno="220"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>Initializes<sp/>the<sp/>pbuf<sp/>module.<sp/>This<sp/>call<sp/>is<sp/>empty<sp/>for<sp/>now,<sp/>but<sp/>may<sp/>not<sp/>be<sp/>in<sp/>future.<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="221" refid="pbuf_8h_1a0c9b6a35471ebe1628ffe74bbc67f0b4" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>pbuf_init()</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="222"><highlight class="normal"></highlight></codeline> <codeline lineno="223"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*<ref refid="group__pbuf_1gacfcb0a2af918658ba0afe36499c65f47" kindref="member">pbuf_alloc</ref>(<ref refid="group__pbuf_1gaee1baa59bb2f85ba575b5a8619ac1ebf" kindref="member">pbuf_layer</ref><sp/>l,<sp/><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/>length,<sp/><ref refid="group__pbuf_1gab7e0e32fcc292c0d7107721766ed92fb" kindref="member">pbuf_type</ref><sp/><ref refid="structpbuf_1afd7bff5210a022424caa97d2f25fe8e6" kindref="member">type</ref>);</highlight></codeline> <codeline lineno="224"><highlight class="normal"></highlight><highlight class="preprocessor">#if<sp/>LWIP_SUPPORT_CUSTOM_PBUF</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="225"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*pbuf_alloced_custom(<ref refid="group__pbuf_1gaee1baa59bb2f85ba575b5a8619ac1ebf" kindref="member">pbuf_layer</ref><sp/>l,<sp/><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/>length,<sp/><ref refid="group__pbuf_1gab7e0e32fcc292c0d7107721766ed92fb" kindref="member">pbuf_type</ref><sp/><ref refid="structpbuf_1afd7bff5210a022424caa97d2f25fe8e6" kindref="member">type</ref>,</highlight></codeline> <codeline lineno="226"><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="keyword">struct</highlight><highlight class="normal"><sp/>pbuf_custom<sp/>*p,<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*payload_mem,</highlight></codeline> <codeline lineno="227"><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="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/>payload_mem_len);</highlight></codeline> <codeline lineno="228"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/></highlight><highlight class="comment">/*<sp/>LWIP_SUPPORT_CUSTOM_PBUF<sp/>*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="229"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="group__pbuf_1ga50abfe830a33a1a47a562febee66015d" 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="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/>size);</highlight></codeline> <codeline lineno="230"><highlight class="normal"><ref refid="group__compiler__abstraction_1ga4caecabca98b43919dd11be1c0d4cd8e" kindref="member">u8_t</ref><sp/><ref refid="pbuf_8h_1aaa17c1951cf2d207b6adfd3947d91f00" 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="group__compiler__abstraction_1gacf46f4df0ebab84edebcb69967fdf86b" kindref="member">s16_t</ref><sp/>header_size);</highlight></codeline> <codeline lineno="231"><highlight class="normal"><ref refid="group__compiler__abstraction_1ga4caecabca98b43919dd11be1c0d4cd8e" kindref="member">u8_t</ref><sp/><ref refid="pbuf_8h_1a27480c41c34021d4417691d327163626" kindref="member">pbuf_header_force</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*p,<sp/><ref refid="group__compiler__abstraction_1gacf46f4df0ebab84edebcb69967fdf86b" kindref="member">s16_t</ref><sp/>header_size);</highlight></codeline> <codeline lineno="232"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="group__pbuf_1ga77f6bbd69e45e542014d9c547c7da74e" 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="233"><highlight class="normal"><ref refid="group__compiler__abstraction_1ga4caecabca98b43919dd11be1c0d4cd8e" kindref="member">u8_t</ref><sp/><ref refid="group__pbuf_1gab0dd696fb4b6bc65e548944584f1738b" 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="234"><highlight class="normal"><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/><ref refid="pbuf_8h_1a5df7ac5ae59012fe9aeddba375a72190" kindref="member">pbuf_clen</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*p);</highlight></codeline> <codeline lineno="235"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="group__pbuf_1ga82429084fe29015509c9b4a072707cd4" kindref="member">pbuf_cat</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*head,<sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*tail);</highlight></codeline> <codeline lineno="236"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="group__pbuf_1ga831c9a72bda1d3bd4c7b96f5a0e3b891" kindref="member">pbuf_chain</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*head,<sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*tail);</highlight></codeline> <codeline lineno="237"><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_1abf3d29c4f43986b4cb5eb314d5b9729d" 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="238"><highlight class="normal"><ref refid="group__infrastructure__errors_1gaf02d9da80fd66b4f986d2c53d7231ddb" kindref="member">err_t</ref><sp/><ref refid="group__pbuf_1gaba88511dee3df4b631fde691f421320d" kindref="member">pbuf_copy</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*p_to,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*p_from);</highlight></codeline> <codeline lineno="239"><highlight class="normal"><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/><ref refid="group__pbuf_1gac2f1f58fd36042e82af46f5015720899" kindref="member">pbuf_copy_partial</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*p,<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*dataptr,<sp/><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/><ref refid="structpbuf_1a6f82449625e36e294f5d210268c0703f" kindref="member">len</ref>,<sp/><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/>offset);</highlight></codeline> <codeline lineno="240"><highlight class="normal"><ref refid="group__infrastructure__errors_1gaf02d9da80fd66b4f986d2c53d7231ddb" kindref="member">err_t</ref><sp/><ref refid="group__pbuf_1gad1e31e370271335b197272af2724ca85" kindref="member">pbuf_take</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*<ref refid="structbuf" kindref="compound">buf</ref>,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*dataptr,<sp/><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/><ref refid="structpbuf_1a6f82449625e36e294f5d210268c0703f" kindref="member">len</ref>);</highlight></codeline> <codeline lineno="241"><highlight class="normal"><ref refid="group__infrastructure__errors_1gaf02d9da80fd66b4f986d2c53d7231ddb" kindref="member">err_t</ref><sp/><ref refid="group__pbuf_1gae1cf2bf7454ff87ff377b0b2262f9b44" kindref="member">pbuf_take_at</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*<ref refid="structbuf" kindref="compound">buf</ref>,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*dataptr,<sp/><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/><ref refid="structpbuf_1a6f82449625e36e294f5d210268c0703f" kindref="member">len</ref>,<sp/><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/>offset);</highlight></codeline> <codeline lineno="242"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*<ref refid="group__pbuf_1ga6a961522d81f0327aaf4d4ee6d96c583" kindref="member">pbuf_skip</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref>*<sp/>in,<sp/><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/>in_offset,<sp/><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref>*<sp/>out_offset);</highlight></codeline> <codeline lineno="243"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*<ref refid="group__pbuf_1ga54ac7b116c6f53c704cbf74f35a8b35c" kindref="member">pbuf_coalesce</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*p,<sp/><ref refid="group__pbuf_1gaee1baa59bb2f85ba575b5a8619ac1ebf" kindref="member">pbuf_layer</ref><sp/>layer);</highlight></codeline> <codeline lineno="244"><highlight class="normal"></highlight><highlight class="preprocessor">#if<sp/>LWIP_CHECKSUM_ON_COPY</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="245"><highlight class="normal"><ref refid="group__infrastructure__errors_1gaf02d9da80fd66b4f986d2c53d7231ddb" kindref="member">err_t</ref><sp/>pbuf_fill_chksum(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref><sp/>*p,<sp/><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/>start_offset,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*dataptr,</highlight></codeline> <codeline lineno="246"><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/><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/><ref refid="structpbuf_1a6f82449625e36e294f5d210268c0703f" kindref="member">len</ref>,<sp/><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/>*chksum);</highlight></codeline> <codeline lineno="247"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/></highlight><highlight class="comment">/*<sp/>LWIP_CHECKSUM_ON_COPY<sp/>*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="248"><highlight class="normal"></highlight><highlight class="preprocessor">#if<sp/>LWIP_TCP<sp/>&&<sp/>TCP_QUEUE_OOSEQ<sp/>&&<sp/>LWIP_WND_SCALE</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="249"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>pbuf_split_64k(</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="structpbuf" kindref="compound">pbuf</ref><sp/>**rest);</highlight></codeline> <codeline lineno="250"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/></highlight><highlight class="comment">/*<sp/>LWIP_TCP<sp/>&&<sp/>TCP_QUEUE_OOSEQ<sp/>&&<sp/>LWIP_WND_SCALE<sp/>*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="251"><highlight class="normal"></highlight></codeline> <codeline lineno="252"><highlight class="normal"><ref refid="group__compiler__abstraction_1ga4caecabca98b43919dd11be1c0d4cd8e" kindref="member">u8_t</ref><sp/><ref refid="group__pbuf_1ga6d803d9945bffb7ad97743f2fa503da6" kindref="member">pbuf_get_at</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref>*<sp/>p,<sp/><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/>offset);</highlight></codeline> <codeline lineno="253"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="group__pbuf_1ga839f342803b0cf89049744124c5a98ad" kindref="member">pbuf_try_get_at</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref>*<sp/>p,<sp/><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/>offset);</highlight></codeline> <codeline lineno="254"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="group__pbuf_1gaf76863707dc02993eae116574b1ea03f" kindref="member">pbuf_put_at</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref>*<sp/>p,<sp/><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/>offset,<sp/><ref refid="group__compiler__abstraction_1ga4caecabca98b43919dd11be1c0d4cd8e" kindref="member">u8_t</ref><sp/>data);</highlight></codeline> <codeline lineno="255"><highlight class="normal"><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/><ref refid="group__pbuf_1ga2170ccbbb13238380dbb203ee1b85974" kindref="member">pbuf_memcmp</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structpbuf" kindref="compound">pbuf</ref>*<sp/>p,<sp/><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/>offset,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal">*<sp/>s2,<sp/><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/>n);</highlight></codeline> <codeline lineno="256"><highlight class="normal"><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/><ref refid="group__pbuf_1ga18c164a6e4a24d89ea9eb7571a886448" kindref="member">pbuf_memfind</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><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">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal">*<sp/><ref refid="structmem" kindref="compound">mem</ref>,<sp/><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/>mem_len,<sp/><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/>start_offset);</highlight></codeline> <codeline lineno="257"><highlight class="normal"><ref refid="group__compiler__abstraction_1ga77570ac4fcab86864fa1916e55676da2" kindref="member">u16_t</ref><sp/><ref refid="pbuf_8h_1a9ba3f7b705309ceadb147692fd5a1c7d" kindref="member">pbuf_strstr</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><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">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal">*<sp/>substr);</highlight></codeline> <codeline lineno="258"><highlight class="normal"></highlight></codeline> <codeline lineno="259"><highlight class="normal"></highlight><highlight class="preprocessor">#ifdef<sp/>__cplusplus</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="260"><highlight class="normal">}</highlight></codeline> <codeline lineno="261"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="262"><highlight class="normal"></highlight></codeline> <codeline lineno="263"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/></highlight><highlight class="comment">/*<sp/>LWIP_HDR_PBUF_H<sp/>*/</highlight><highlight class="preprocessor"></highlight></codeline> </programlisting> <location file="C:/Dev/git/UbixOS/sys/include/net/pbuf.h"/> </compounddef> </doxygen>