<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.16"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>UbixOS: net/api/tcpip.c File Reference</title> <link href="../../tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="../../jquery.js"></script> <script type="text/javascript" src="../../dynsections.js"></script> <link href="../../navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="../../resize.js"></script> <script type="text/javascript" src="../../navtreedata.js"></script> <script type="text/javascript" src="../../navtree.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(initResizable); /* @license-end */</script> <link href="../../doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">UbixOS  <span id="projectnumber">2.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.16 --> <script type="text/javascript" src="../../menudata.js"></script> <script type="text/javascript" src="../../menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('../../',false,false,'search.php','Search'); }); /* @license-end */</script> <div id="main-nav"></div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('d2/d55/tcpip_8c.html','../../');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#define-members">Macros</a> | <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">tcpip.c File Reference</div> </div> </div><!--header--> <div class="contents"> <div class="textblock"><code>#include <<a class="el" href="../../dc/dba/opt_8h_source.html">net/opt.h</a>></code><br /> <code>#include <<a class="el" href="../../d6/d89/tcpip__priv_8h_source.html">net/priv/tcpip_priv.h</a>></code><br /> <code>#include <<a class="el" href="../../d9/d87/sys_8h_source.html">net/sys.h</a>></code><br /> <code>#include <<a class="el" href="../../df/dff/memp_8h_source.html">net/memp.h</a>></code><br /> <code>#include <<a class="el" href="../../d9/d9a/mem_8h_source.html">net/mem.h</a>></code><br /> <code>#include <<a class="el" href="../../df/d40/net_2init_8h_source.html">net/init.h</a>></code><br /> <code>#include <<a class="el" href="../../da/d2f/ip_8h_source.html">net/ip.h</a>></code><br /> <code>#include <<a class="el" href="../../d0/d35/pbuf_8h_source.html">net/pbuf.h</a>></code><br /> <code>#include <<a class="el" href="../../df/dbc/etharp_8h_source.html">net/etharp.h</a>></code><br /> <code>#include <<a class="el" href="../../d9/d81/f_2ethernet_8h_source.html">netif/ethernet.h</a>></code><br /> </div><div class="textblock"><div class="dynheader"> Include dependency graph for tcpip.c:</div> <div class="dyncontent"> <div class="center"><img src="../../da/d49/tcpip_8c__incl.png" border="0" usemap="#net_2api_2tcpip_8c" alt=""/></div> <map name="net_2api_2tcpip_8c" id="net_2api_2tcpip_8c"> <area shape="rect" title=" " alt="" coords="1377,5,1481,32"/> <area shape="rect" href="../../dc/dba/opt_8h.html" title=" " alt="" coords="1242,603,1315,629"/> <area shape="rect" href="../../d6/d89/tcpip__priv_8h.html" title=" " alt="" coords="1459,80,1591,107"/> <area shape="rect" href="../../d9/d87/sys_8h.html" title=" " alt="" coords="1603,304,1679,331"/> <area shape="rect" href="../../d0/d35/pbuf_8h.html" title=" " alt="" coords="945,304,1023,331"/> <area shape="rect" href="../../d9/d9a/mem_8h.html" title=" " alt="" coords="1179,528,1263,555"/> <area shape="rect" href="../../df/dff/memp_8h.html" title=" " alt="" coords="777,379,868,405"/> <area shape="rect" href="../../df/d40/net_2init_8h.html" title=" " alt="" coords="1805,80,1877,107"/> <area shape="rect" href="../../da/d2f/ip_8h.html" title=" " alt="" coords="1049,155,1114,181"/> <area shape="rect" href="../../df/dbc/etharp_8h.html" title=" " alt="" coords="1901,80,1992,107"/> <area shape="rect" href="../../d9/d81/f_2ethernet_8h.html" title=" " alt="" coords="730,155,838,181"/> <area shape="rect" href="../../d2/d78/lwipopts_8h.html" title=" " alt="" coords="1106,677,1209,704"/> <area shape="rect" href="../../db/d16/debug_8h.html" title=" " alt="" coords="1233,677,1324,704"/> <area shape="rect" href="../../d2/d2d/arch_8h.html" title=" " alt="" coords="1239,752,1319,779"/> <area shape="rect" href="../../d0/d27/include_2sys_2types_8h.html" title=" " alt="" coords="1720,976,1811,1003"/> <area shape="rect" href="../../dc/df0/cc_8h.html" title=" " alt="" coords="1197,827,1296,853"/> <area shape="rect" href="../../da/d28/kprintf_8h.html" title=" " alt="" coords="1560,827,1645,853"/> <area shape="rect" href="../../d3/d24/kpanic_8h.html" title=" " alt="" coords="1371,827,1485,853"/> <area shape="rect" href="../../d0/d6f/__types_8h.html" title=" " alt="" coords="1523,1200,1621,1227"/> <area shape="rect" href="../../d9/dab/select_8h.html" title=" " alt="" coords="1507,1051,1600,1077"/> <area shape="rect" href="../../d6/d92/cdefs_8h.html" title=" " alt="" coords="1509,1125,1598,1152"/> <area shape="rect" href="../../d6/d30/__timespec_8h.html" title=" " alt="" coords="1314,1125,1433,1152"/> <area shape="rect" href="../../df/dc5/__timeval_8h.html" title=" " alt="" coords="1622,1125,1727,1152"/> <area shape="rect" href="../../de/df7/time_8h.html" title=" " alt="" coords="1197,901,1297,928"/> <area shape="rect" href="../../dc/dac/io_8h.html" title=" " alt="" coords="1285,976,1353,1003"/> <area shape="rect" href="../../d1/d2d/stdarg_8h.html" title=" " alt="" coords="1525,901,1595,928"/> <area shape="rect" href="../../d9/db5/tcpip_8h.html" title=" " alt="" coords="1393,155,1476,181"/> <area shape="rect" href="../../d2/df2/timeouts_8h.html" title=" " alt="" coords="1473,229,1578,256"/> <area shape="rect" href="../../d6/d40/err_8h.html" title=" " alt="" coords="1479,379,1550,405"/> <area shape="rect" href="../../d9/d69/netif_8h.html" title=" " alt="" coords="745,229,823,256"/> <area shape="rect" href="../../df/dc7/sys__arch_8h.html" title=" " alt="" coords="1930,528,2067,555"/> <area shape="rect" href="../../dd/d1b/ubthread_8h.html" title=" " alt="" coords="1879,677,2004,704"/> <area shape="rect" href="../../d2/d28/sem_8h.html" title=" " alt="" coords="2017,603,2117,629"/> <area shape="rect" href="../../d7/d00/sched_8h.html" title=" " alt="" coords="1886,752,1997,779"/> <area shape="rect" href="../../d6/db4/include_2vfs_2file_8h.html" title=" " alt="" coords="1835,827,1903,853"/> <area shape="rect" href="../../db/dd5/thread_8h.html" title=" " alt="" coords="1886,901,1981,928"/> <area shape="rect" href="../../dd/d71/tty_8h.html" title=" " alt="" coords="1720,901,1811,928"/> <area shape="rect" href="../../de/d9a/tss_8h.html" title=" " alt="" coords="2005,901,2081,928"/> <area shape="rect" href="../../db/d37/ubixos_2errno_8h.html" title=" " alt="" coords="2028,677,2132,704"/> <area shape="rect" href="../../de/df7/ip__addr_8h.html" title=" " alt="" coords="438,379,535,405"/> <area shape="rect" href="../../d4/da4/def_8h.html" title=" " alt="" coords="376,528,448,555"/> <area shape="rect" href="../../d9/d9b/stats_8h.html" title=" " alt="" coords="722,304,806,331"/> <area shape="rect" href="../../d1/da8/ip4__addr_8h.html" title=" " alt="" coords="488,453,592,480"/> <area shape="rect" href="../../d3/d7d/ip6__addr_8h.html" title=" " alt="" coords="360,453,464,480"/> <area shape="rect" href="../../d6/d7f/memp__std_8h.html" title=" " alt="" coords="1035,453,1173,480"/> <area shape="rect" href="../../d5/d70/memp__priv_8h.html" title=" " alt="" coords="870,453,1010,480"/> <area shape="rect" href="../../d6/da5/ip4_8h.html" title=" " alt="" coords="1135,304,1207,331"/> <area shape="rect" href="../../d0/dca/ip6_8h.html" title=" " alt="" coords="1332,379,1404,405"/> <area shape="rect" href="../../d4/d19/prot_2ip_8h.html" title=" " alt="" coords="157,229,248,256"/> <area shape="rect" href="../../df/d44/prot_2ethernet_8h.html" title=" " alt="" coords="5,603,133,629"/> </map> </div> </div> <p><a href="../../d2/d55/tcpip_8c_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a> Macros</h2></td></tr> <tr class="memitem:a509daeff3c37e5659d0decb841b4e262"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d55/tcpip_8c.html#a509daeff3c37e5659d0decb841b4e262">TCPIP_MBOX_FETCH</a>(mbox, msg)   <a class="el" href="../../d9/d87/sys_8h.html#a5bae9efa9c945dc810665dc4a7e60117">sys_mbox_fetch</a>(mbox, msg)</td></tr> <tr class="separator:a509daeff3c37e5659d0decb841b4e262"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a2485bb329e586fe0b440cff72bf364e4"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d55/tcpip_8c.html#a2485bb329e586fe0b440cff72bf364e4">TCPIP_MSG_VAR_ALLOC</a>(<a class="el" href="../../d1/de8/pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>)   <a class="el" href="../../d6/d89/tcpip__priv_8h.html#a8ff9b936b16d91844c0e32424e97f493">API_VAR_ALLOC</a>(struct <a class="el" href="../../d4/de8/structtcpip__msg.html">tcpip_msg</a>, MEMP_TCPIP_MSG_API, <a class="el" href="../../d1/de8/pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>, <a class="el" href="../../d2/de7/group__infrastructure__errors.html#ggae2e66c7d13afc90ffecd6151680fbadcaaaeafdbf3aecc46864daa3cd829c7e05">ERR_MEM</a>)</td></tr> <tr class="separator:a2485bb329e586fe0b440cff72bf364e4"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aecf85047afc1ea35a976f7e279fb0f7b"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d55/tcpip_8c.html#aecf85047afc1ea35a976f7e279fb0f7b">TCPIP_MSG_VAR_DECLARE</a>(<a class="el" href="../../d1/de8/pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>)   <a class="el" href="../../d6/d89/tcpip__priv_8h.html#ab5d4a4fa91c4c144bedabf593a68b4dd">API_VAR_DECLARE</a>(struct <a class="el" href="../../d4/de8/structtcpip__msg.html">tcpip_msg</a>, <a class="el" href="../../d1/de8/pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>)</td></tr> <tr class="separator:aecf85047afc1ea35a976f7e279fb0f7b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:acf5d75be78b6af27ca5ed13da28681d4"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d55/tcpip_8c.html#acf5d75be78b6af27ca5ed13da28681d4">TCPIP_MSG_VAR_FREE</a>(<a class="el" href="../../d1/de8/pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>)   <a class="el" href="../../d6/d89/tcpip__priv_8h.html#a30caebb5334f52d49ac938a507094094">API_VAR_FREE</a>(MEMP_TCPIP_MSG_API, <a class="el" href="../../d1/de8/pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>)</td></tr> <tr class="separator:acf5d75be78b6af27ca5ed13da28681d4"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad42dbf6b1a12f07523637e44cf85756d"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d55/tcpip_8c.html#ad42dbf6b1a12f07523637e44cf85756d">TCPIP_MSG_VAR_REF</a>(<a class="el" href="../../d1/de8/pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>)   <a class="el" href="../../d6/d89/tcpip__priv_8h.html#a3518256af0d1a422755a899b13c2b563">API_VAR_REF</a>(<a class="el" href="../../d1/de8/pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>)</td></tr> <tr class="separator:ad42dbf6b1a12f07523637e44cf85756d"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:a55b4de3765c6a37b3f2b26a11603771c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/de7/group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d55/tcpip_8c.html#a55b4de3765c6a37b3f2b26a11603771c">mem_free_callback</a> (void *m)</td></tr> <tr class="separator:a55b4de3765c6a37b3f2b26a11603771c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a5cdcb6b784fe0e8736a5b31a5cfbed6c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/de7/group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d55/tcpip_8c.html#a5cdcb6b784fe0e8736a5b31a5cfbed6c">pbuf_free_callback</a> (struct <a class="el" href="../../d9/db8/structpbuf.html">pbuf</a> *p)</td></tr> <tr class="separator:a5cdcb6b784fe0e8736a5b31a5cfbed6c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a3d42b0c46607f91aedcc7745ed466b08"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/de7/group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d55/tcpip_8c.html#a3d42b0c46607f91aedcc7745ed466b08">tcpip_api_call</a> (<a class="el" href="../../d6/d89/tcpip__priv_8h.html#aa7ecde8c8d8012fe5c498f7ee58f9458">tcpip_api_call_fn</a> fn, struct <a class="el" href="../../d9/d85/structtcpip__api__call__data.html">tcpip_api_call_data</a> *call)</td></tr> <tr class="separator:a3d42b0c46607f91aedcc7745ed466b08"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab1d3ef23817d7703fa75ed67bd45ea1d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/de7/group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d55/tcpip_8c.html#ab1d3ef23817d7703fa75ed67bd45ea1d">tcpip_callback_with_block</a> (<a class="el" href="../../d9/db5/tcpip_8h.html#a35203296bb838f3b493839ffc6e7285d">tcpip_callback_fn</a> function, void *ctx, <a class="el" href="../../de/d8c/group__compiler__abstraction.html#ga4caecabca98b43919dd11be1c0d4cd8e">u8_t</a> block)</td></tr> <tr class="separator:ab1d3ef23817d7703fa75ed67bd45ea1d"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac5b7a59f4c3f5f721ab9ee81f231c9fd"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d55/tcpip_8c.html#ac5b7a59f4c3f5f721ab9ee81f231c9fd">tcpip_callbackmsg_delete</a> (struct tcpip_callback_msg *msg)</td></tr> <tr class="separator:ac5b7a59f4c3f5f721ab9ee81f231c9fd"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aee14fa2587a9ba9d23e4c7e16c4526ac"><td class="memItemLeft" align="right" valign="top">struct tcpip_callback_msg * </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d55/tcpip_8c.html#aee14fa2587a9ba9d23e4c7e16c4526ac">tcpip_callbackmsg_new</a> (<a class="el" href="../../d9/db5/tcpip_8h.html#a35203296bb838f3b493839ffc6e7285d">tcpip_callback_fn</a> function, void *ctx)</td></tr> <tr class="separator:aee14fa2587a9ba9d23e4c7e16c4526ac"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1f3a88b8df6ba3b9ed1c00e0a305e3db"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d55/tcpip_8c.html#a1f3a88b8df6ba3b9ed1c00e0a305e3db">tcpip_init</a> (<a class="el" href="../../d9/db5/tcpip_8h.html#a5fe07216c441e27c3028bcac60fa0992">tcpip_init_done_fn</a> initfunc, void *arg)</td></tr> <tr class="separator:a1f3a88b8df6ba3b9ed1c00e0a305e3db"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a93043b3c66dbe4a15a60299c6199d102"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/de7/group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d55/tcpip_8c.html#a93043b3c66dbe4a15a60299c6199d102">tcpip_inpkt</a> (struct <a class="el" href="../../d9/db8/structpbuf.html">pbuf</a> *p, struct <a class="el" href="../../d2/dd6/structnetif.html">netif</a> *inp, <a class="el" href="../../d9/d69/netif_8h.html#ab2302b1b64ac7b95f24c6bab754a575e">netif_input_fn</a> input_fn)</td></tr> <tr class="separator:a93043b3c66dbe4a15a60299c6199d102"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae510f195171bed8499ae94e264a92717"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/de7/group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d55/tcpip_8c.html#ae510f195171bed8499ae94e264a92717">tcpip_input</a> (struct <a class="el" href="../../d9/db8/structpbuf.html">pbuf</a> *p, struct <a class="el" href="../../d2/dd6/structnetif.html">netif</a> *inp)</td></tr> <tr class="separator:ae510f195171bed8499ae94e264a92717"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a12bdf37eddcd72c4178e3ea7d370395d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/de7/group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d55/tcpip_8c.html#a12bdf37eddcd72c4178e3ea7d370395d">tcpip_send_msg_wait_sem</a> (<a class="el" href="../../d9/db5/tcpip_8h.html#a35203296bb838f3b493839ffc6e7285d">tcpip_callback_fn</a> fn, void *apimsg, <a class="el" href="../../d2/d28/sem_8h.html#a900e36da93bb688c29fc8148f2f44e04">sys_sem_t</a> *sem)</td></tr> <tr class="separator:a12bdf37eddcd72c4178e3ea7d370395d"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:acfc81ad493f68714a22b3b8ea7d04378"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/de7/group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d55/tcpip_8c.html#acfc81ad493f68714a22b3b8ea7d04378">tcpip_trycallback</a> (struct tcpip_callback_msg *msg)</td></tr> <tr class="separator:acfc81ad493f68714a22b3b8ea7d04378"><td class="memSeparator" colspan="2"> </td></tr> </table> <h2 class="groupheader">Macro Definition Documentation</h2> <a id="a509daeff3c37e5659d0decb841b4e262"></a> <h2 class="memtitle"><span class="permalink"><a href="#a509daeff3c37e5659d0decb841b4e262">◆ </a></span>TCPIP_MBOX_FETCH</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define TCPIP_MBOX_FETCH</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname">mbox, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"> </td> <td class="paramname">msg </td> </tr> <tr> <td></td> <td>)</td> <td></td><td>   <a class="el" href="../../d9/d87/sys_8h.html#a5bae9efa9c945dc810665dc4a7e60117">sys_mbox_fetch</a>(mbox, msg)</td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../d2/d55/tcpip_8c_source.html#l00067">67</a> of file <a class="el" href="../../d2/d55/tcpip_8c_source.html">tcpip.c</a>.</p> </div> </div> <a id="a2485bb329e586fe0b440cff72bf364e4"></a> <h2 class="memtitle"><span class="permalink"><a href="#a2485bb329e586fe0b440cff72bf364e4">◆ </a></span>TCPIP_MSG_VAR_ALLOC</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define TCPIP_MSG_VAR_ALLOC</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><a class="el" href="../../d1/de8/pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a></td><td>)</td> <td>   <a class="el" href="../../d6/d89/tcpip__priv_8h.html#a8ff9b936b16d91844c0e32424e97f493">API_VAR_ALLOC</a>(struct <a class="el" href="../../d4/de8/structtcpip__msg.html">tcpip_msg</a>, MEMP_TCPIP_MSG_API, <a class="el" href="../../d1/de8/pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>, <a class="el" href="../../d2/de7/group__infrastructure__errors.html#ggae2e66c7d13afc90ffecd6151680fbadcaaaeafdbf3aecc46864daa3cd829c7e05">ERR_MEM</a>)</td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../d2/d55/tcpip_8c_source.html#l00049">49</a> of file <a class="el" href="../../d2/d55/tcpip_8c_source.html">tcpip.c</a>.</p> </div> </div> <a id="aecf85047afc1ea35a976f7e279fb0f7b"></a> <h2 class="memtitle"><span class="permalink"><a href="#aecf85047afc1ea35a976f7e279fb0f7b">◆ </a></span>TCPIP_MSG_VAR_DECLARE</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define TCPIP_MSG_VAR_DECLARE</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><a class="el" href="../../d1/de8/pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a></td><td>)</td> <td>   <a class="el" href="../../d6/d89/tcpip__priv_8h.html#ab5d4a4fa91c4c144bedabf593a68b4dd">API_VAR_DECLARE</a>(struct <a class="el" href="../../d4/de8/structtcpip__msg.html">tcpip_msg</a>, <a class="el" href="../../d1/de8/pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>)</td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../d2/d55/tcpip_8c_source.html#l00048">48</a> of file <a class="el" href="../../d2/d55/tcpip_8c_source.html">tcpip.c</a>.</p> </div> </div> <a id="acf5d75be78b6af27ca5ed13da28681d4"></a> <h2 class="memtitle"><span class="permalink"><a href="#acf5d75be78b6af27ca5ed13da28681d4">◆ </a></span>TCPIP_MSG_VAR_FREE</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define TCPIP_MSG_VAR_FREE</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><a class="el" href="../../d1/de8/pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a></td><td>)</td> <td>   <a class="el" href="../../d6/d89/tcpip__priv_8h.html#a30caebb5334f52d49ac938a507094094">API_VAR_FREE</a>(MEMP_TCPIP_MSG_API, <a class="el" href="../../d1/de8/pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>)</td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../d2/d55/tcpip_8c_source.html#l00050">50</a> of file <a class="el" href="../../d2/d55/tcpip_8c_source.html">tcpip.c</a>.</p> </div> </div> <a id="ad42dbf6b1a12f07523637e44cf85756d"></a> <h2 class="memtitle"><span class="permalink"><a href="#ad42dbf6b1a12f07523637e44cf85756d">◆ </a></span>TCPIP_MSG_VAR_REF</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define TCPIP_MSG_VAR_REF</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname"><a class="el" href="../../d1/de8/pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a></td><td>)</td> <td>   <a class="el" href="../../d6/d89/tcpip__priv_8h.html#a3518256af0d1a422755a899b13c2b563">API_VAR_REF</a>(<a class="el" href="../../d1/de8/pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>)</td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../d2/d55/tcpip_8c_source.html#l00047">47</a> of file <a class="el" href="../../d2/d55/tcpip_8c_source.html">tcpip.c</a>.</p> </div> </div> <h2 class="groupheader">Function Documentation</h2> <a id="a55b4de3765c6a37b3f2b26a11603771c"></a> <h2 class="memtitle"><span class="permalink"><a href="#a55b4de3765c6a37b3f2b26a11603771c">◆ </a></span>mem_free_callback()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="../../d2/de7/group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a> mem_free_callback </td> <td>(</td> <td class="paramtype">void * </td> <td class="paramname"><em>m</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>A simple wrapper function that allows you to free heap memory from interrupt context.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">m</td><td>the heap memory to free </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>ERR_OK if callback could be enqueued, an err_t if not </dd></dl> <p class="definition">Definition at line <a class="el" href="../../d2/d55/tcpip_8c_source.html#l00491">491</a> of file <a class="el" href="../../d2/d55/tcpip_8c_source.html">tcpip.c</a>.</p> <p class="reference">References <a class="el" href="../../d3/d8f/mem_8c_source.html#l00419">mem_free()</a>, and <a class="el" href="../../d2/d55/tcpip_8c_source.html#l00229">tcpip_callback_with_block()</a>.</p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="../../d2/d55/tcpip_8c_a55b4de3765c6a37b3f2b26a11603771c_cgraph.png" border="0" usemap="#d2/d55/tcpip_8c_a55b4de3765c6a37b3f2b26a11603771c_cgraph" alt=""/></div> <map name="d2/d55/tcpip_8c_a55b4de3765c6a37b3f2b26a11603771c_cgraph" id="d2/d55/tcpip_8c_a55b4de3765c6a37b3f2b26a11603771c_cgraph"> <area shape="rect" title=" " alt="" coords="5,35,140,61"/> <area shape="rect" href="../../d9/d9a/mem_8h.html#a2fd7aa1adf6e394d3be7c7734e7df41a" title=" " alt="" coords="216,5,295,32"/> <area shape="rect" href="../../d2/d55/tcpip_8c.html#ab1d3ef23817d7703fa75ed67bd45ea1d" title=" " alt="" coords="188,57,323,98"/> </map> </div> </div> </div> <a id="a5cdcb6b784fe0e8736a5b31a5cfbed6c"></a> <h2 class="memtitle"><span class="permalink"><a href="#a5cdcb6b784fe0e8736a5b31a5cfbed6c">◆ </a></span>pbuf_free_callback()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="../../d2/de7/group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a> pbuf_free_callback </td> <td>(</td> <td class="paramtype">struct <a class="el" href="../../d9/db8/structpbuf.html">pbuf</a> * </td> <td class="paramname"><em>p</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>A simple wrapper function that allows you to free a pbuf from interrupt context.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">p</td><td>The pbuf (chain) to be dereferenced. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>ERR_OK if callback could be enqueued, an err_t if not </dd></dl> <p class="definition">Definition at line <a class="el" href="../../d2/d55/tcpip_8c_source.html#l00480">480</a> of file <a class="el" href="../../d2/d55/tcpip_8c_source.html">tcpip.c</a>.</p> <p class="reference">References <a class="el" href="../../d2/d55/tcpip_8c_source.html#l00229">tcpip_callback_with_block()</a>.</p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="../../d2/d55/tcpip_8c_a5cdcb6b784fe0e8736a5b31a5cfbed6c_cgraph.png" border="0" usemap="#d2/d55/tcpip_8c_a5cdcb6b784fe0e8736a5b31a5cfbed6c_cgraph" alt=""/></div> <map name="d2/d55/tcpip_8c_a5cdcb6b784fe0e8736a5b31a5cfbed6c_cgraph" id="d2/d55/tcpip_8c_a5cdcb6b784fe0e8736a5b31a5cfbed6c_cgraph"> <area shape="rect" title=" " alt="" coords="5,13,135,39"/> <area shape="rect" href="../../d2/d55/tcpip_8c.html#ab1d3ef23817d7703fa75ed67bd45ea1d" title=" " alt="" coords="183,5,317,47"/> </map> </div> </div> </div> <a id="a3d42b0c46607f91aedcc7745ed466b08"></a> <h2 class="memtitle"><span class="permalink"><a href="#a3d42b0c46607f91aedcc7745ed466b08">◆ </a></span>tcpip_api_call()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="../../d2/de7/group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a> tcpip_api_call </td> <td>(</td> <td class="paramtype"><a class="el" href="../../d6/d89/tcpip__priv_8h.html#aa7ecde8c8d8012fe5c498f7ee58f9458">tcpip_api_call_fn</a> </td> <td class="paramname"><em>fn</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">struct <a class="el" href="../../d9/d85/structtcpip__api__call__data.html">tcpip_api_call_data</a> * </td> <td class="paramname"><em>call</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Synchronously calls function in TCPIP thread and waits for its completion. It is recommended to use LWIP_TCPIP_CORE_LOCKING (preferred) or LWIP_NETCONN_SEM_PER_THREAD. If not, a semaphore is created and destroyed on every call which is usually an expensive/slow operation. </p><dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">fn</td><td>Function to call </td></tr> <tr><td class="paramname">call</td><td>Call parameters </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>Return value from tcpip_api_call_fn </dd></dl> <p class="definition">Definition at line <a class="el" href="../../d2/d55/tcpip_8c_source.html#l00356">356</a> of file <a class="el" href="../../d2/d55/tcpip_8c_source.html">tcpip.c</a>.</p> <p class="reference">References <a class="el" href="../../d6/d40/err_8h_source.html#l00063">ERR_OK</a>, <a class="el" href="../../d9/db5/tcpip_8h_source.html#l00060">LOCK_TCPIP_CORE</a>, <a class="el" href="../../db/d16/debug_8h_source.html#l00116">LWIP_ASSERT</a>, <a class="el" href="../../d6/d89/tcpip__priv_8h_source.html#l00128">tcpip_msg::msg</a>, <a class="el" href="../../d6/d89/tcpip__priv_8h_source.html#l00102">tcpip_api_call_data::sem</a>, <a class="el" href="../../d9/d87/sys_8h_source.html#l00271">sys_mbox_valid_val</a>, <a class="el" href="../../d9/d56/sys__arch_8c_source.html#l00052">sys_sem_new()</a>, <a class="el" href="../../d2/d55/tcpip_8c_source.html#l00048">TCPIP_MSG_VAR_DECLARE</a>, and <a class="el" href="../../d9/db5/tcpip_8h_source.html#l00061">UNLOCK_TCPIP_CORE</a>.</p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="../../d2/d55/tcpip_8c_a3d42b0c46607f91aedcc7745ed466b08_cgraph.png" border="0" usemap="#d2/d55/tcpip_8c_a3d42b0c46607f91aedcc7745ed466b08_cgraph" alt=""/></div> <map name="d2/d55/tcpip_8c_a3d42b0c46607f91aedcc7745ed466b08_cgraph" id="d2/d55/tcpip_8c_a3d42b0c46607f91aedcc7745ed466b08_cgraph"> <area shape="rect" title=" " alt="" coords="5,132,107,159"/> <area shape="rect" href="../../da/d3a/group__sys__sem.html#gadb68acad14b34550b9891bc11bbf4e63" title=" " alt="" coords="155,132,260,159"/> <area shape="rect" href="../../d4/d03/kmalloc_8h.html#a150eab2ac4ce4553e21ca10e7f441762" title=" " alt="" coords="463,31,529,57"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#a20b56810edb62a6fe59917015c30848f" title=" " alt="" coords="467,132,525,159"/> <area shape="rect" href="../../d2/d28/sem_8h.html#a741be298cbcc3eab1747e8b9b239d5f0" title=" " alt="" coords="308,132,379,159"/> <area shape="rect" href="../../dd/d1b/ubthread_8h.html#acbb7170a68758468ab5b02512a320112" title=" " alt="" coords="431,183,561,209"/> <area shape="rect" href="../../dd/d1b/ubthread_8h.html#ab6bfc2169b55532821582f24b68dc855" title=" " alt="" coords="427,233,565,260"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="865,31,940,57"/> <area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="989,5,1079,32"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="988,56,1080,83"/> <area shape="rect" href="../../dd/d78/video_8h.html#a5429378b96a24fadfd2d1f8d777eb95a" title=" " alt="" coords="619,107,674,133"/> <area shape="rect" href="../../df/d87/kprintf_8c.html#a3093cdac4668a4ccffdd7f77270888b7" title=" " alt="" coords="615,157,678,184"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#a3b4a66bf1f6583e65660f281b6014aa1" title=" " alt="" coords="613,208,680,235"/> <area shape="rect" href="../../dc/dac/io_8h.html#a77b934268de1b3ecdcf3f275413b3108" title="input one byte from specified port" alt="" coords="732,107,813,133"/> <area shape="rect" href="../../dc/dac/io_8h.html#a8acc1a06073db2e7b92ffbd00fbd0cf1" title="outputut one byte to specified port" alt="" coords="728,157,817,184"/> <area shape="rect" href="../../dd/d71/tty_8h.html#a4f96ccac7e60296ef496008d8cbed0ff" title=" " alt="" coords="741,208,805,235"/> <area shape="rect" href="../../dd/d71/tty_8h.html#ad96f57a7c113d3cfa76ee5fed6de33c0" title=" " alt="" coords="738,56,807,83"/> </map> </div> </div> </div> <a id="ab1d3ef23817d7703fa75ed67bd45ea1d"></a> <h2 class="memtitle"><span class="permalink"><a href="#ab1d3ef23817d7703fa75ed67bd45ea1d">◆ </a></span>tcpip_callback_with_block()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="../../d2/de7/group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a> tcpip_callback_with_block </td> <td>(</td> <td class="paramtype"><a class="el" href="../../d9/db5/tcpip_8h.html#a35203296bb838f3b493839ffc6e7285d">tcpip_callback_fn</a> </td> <td class="paramname"><em>function</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">void * </td> <td class="paramname"><em>ctx</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="../../de/d8c/group__compiler__abstraction.html#ga4caecabca98b43919dd11be1c0d4cd8e">u8_t</a> </td> <td class="paramname"><em>block</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Call a specific function in the thread context of tcpip_thread for easy access synchronization. A function called in that way may access lwIP core code without fearing concurrent access.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">function</td><td>the function to call </td></tr> <tr><td class="paramname">ctx</td><td>parameter passed to f </td></tr> <tr><td class="paramname">block</td><td>1 to block until the request is posted, 0 to non-blocking mode </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>ERR_OK if the function was called, another err_t if not </dd></dl> <p class="definition">Definition at line <a class="el" href="../../d2/d55/tcpip_8c_source.html#l00229">229</a> of file <a class="el" href="../../d2/d55/tcpip_8c_source.html">tcpip.c</a>.</p> <p class="reference">References <a class="el" href="../../db/d16/debug_8h_source.html#l00116">LWIP_ASSERT</a>, <a class="el" href="../../d6/d89/tcpip__priv_8h_source.html#l00128">tcpip_msg::msg</a>, and <a class="el" href="../../d9/d87/sys_8h_source.html#l00271">sys_mbox_valid_val</a>.</p> <p class="reference">Referenced by <a class="el" href="../../d2/d55/tcpip_8c_source.html#l00491">mem_free_callback()</a>, and <a class="el" href="../../d2/d55/tcpip_8c_source.html#l00480">pbuf_free_callback()</a>.</p> </div> </div> <a id="ac5b7a59f4c3f5f721ab9ee81f231c9fd"></a> <h2 class="memtitle"><span class="permalink"><a href="#ac5b7a59f4c3f5f721ab9ee81f231c9fd">◆ </a></span>tcpip_callbackmsg_delete()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void tcpip_callbackmsg_delete </td> <td>(</td> <td class="paramtype">struct tcpip_callback_msg * </td> <td class="paramname"><em>msg</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Free a callback message allocated by <a class="el" href="../../d2/d55/tcpip_8c.html#aee14fa2587a9ba9d23e4c7e16c4526ac">tcpip_callbackmsg_new()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">msg</td><td>the message to free </td></tr> </table> </dd> </dl> <p class="definition">Definition at line <a class="el" href="../../d2/d55/tcpip_8c_source.html#l00421">421</a> of file <a class="el" href="../../d2/d55/tcpip_8c_source.html">tcpip.c</a>.</p> <p class="reference">References <a class="el" href="../../d1/d70/memp_8c_source.html#l00469">memp_free()</a>, and <a class="el" href="../../d6/d89/tcpip__priv_8h_source.html#l00128">tcpip_msg::msg</a>.</p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="../../d2/d55/tcpip_8c_ac5b7a59f4c3f5f721ab9ee81f231c9fd_cgraph.png" border="0" usemap="#d2/d55/tcpip_8c_ac5b7a59f4c3f5f721ab9ee81f231c9fd_cgraph" alt=""/></div> <map name="d2/d55/tcpip_8c_ac5b7a59f4c3f5f721ab9ee81f231c9fd_cgraph" id="d2/d55/tcpip_8c_ac5b7a59f4c3f5f721ab9ee81f231c9fd_cgraph"> <area shape="rect" title=" " alt="" coords="5,5,177,32"/> <area shape="rect" href="../../df/dff/memp_8h.html#aecd94926b7c2a0e23ae195f4ae97581f" title=" " alt="" coords="225,5,312,32"/> </map> </div> </div> </div> <a id="aee14fa2587a9ba9d23e4c7e16c4526ac"></a> <h2 class="memtitle"><span class="permalink"><a href="#aee14fa2587a9ba9d23e4c7e16c4526ac">◆ </a></span>tcpip_callbackmsg_new()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">struct tcpip_callback_msg* tcpip_callbackmsg_new </td> <td>(</td> <td class="paramtype"><a class="el" href="../../d9/db5/tcpip_8h.html#a35203296bb838f3b493839ffc6e7285d">tcpip_callback_fn</a> </td> <td class="paramname"><em>function</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">void * </td> <td class="paramname"><em>ctx</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Allocate a structure for a static callback message and initialize it. This is intended to be used to send "static" messages from interrupt context.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">function</td><td>the function to call </td></tr> <tr><td class="paramname">ctx</td><td>parameter passed to function </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>a struct pointer to pass to <a class="el" href="../../d2/d55/tcpip_8c.html#acfc81ad493f68714a22b3b8ea7d04378">tcpip_trycallback()</a>. </dd></dl> <p class="definition">Definition at line <a class="el" href="../../d2/d55/tcpip_8c_source.html#l00405">405</a> of file <a class="el" href="../../d2/d55/tcpip_8c_source.html">tcpip.c</a>.</p> <p class="reference">References <a class="el" href="../../d6/d89/tcpip__priv_8h_source.html#l00142">tcpip_msg::ctx</a>, <a class="el" href="../../d1/d70/memp_8c_source.html#l00385">memp_malloc()</a>, <a class="el" href="../../d6/d89/tcpip__priv_8h_source.html#l00128">tcpip_msg::msg</a>, <a class="el" href="../../d6/d8a/fat__string_8h_source.html#l00017">NULL</a>, and <a class="el" href="../../d6/d89/tcpip__priv_8h_source.html#l00120">TCPIP_MSG_CALLBACK_STATIC</a>.</p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="../../d2/d55/tcpip_8c_aee14fa2587a9ba9d23e4c7e16c4526ac_cgraph.png" border="0" usemap="#d2/d55/tcpip_8c_aee14fa2587a9ba9d23e4c7e16c4526ac_cgraph" alt=""/></div> <map name="d2/d55/tcpip_8c_aee14fa2587a9ba9d23e4c7e16c4526ac_cgraph" id="d2/d55/tcpip_8c_aee14fa2587a9ba9d23e4c7e16c4526ac_cgraph"> <area shape="rect" title=" " alt="" coords="5,5,165,32"/> <area shape="rect" href="../../df/dff/memp_8h.html#a2b00593d086313c267b54a976bf67aa5" title=" " alt="" coords="213,5,316,32"/> </map> </div> </div> </div> <a id="a1f3a88b8df6ba3b9ed1c00e0a305e3db"></a> <h2 class="memtitle"><span class="permalink"><a href="#a1f3a88b8df6ba3b9ed1c00e0a305e3db">◆ </a></span>tcpip_init()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void tcpip_init </td> <td>(</td> <td class="paramtype"><a class="el" href="../../d9/db5/tcpip_8h.html#a5fe07216c441e27c3028bcac60fa0992">tcpip_init_done_fn</a> </td> <td class="paramname"><em>initfunc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">void * </td> <td class="paramname"><em>arg</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Initialize this module:</p><ul> <li>initialize all sub modules</li> <li>start the tcpip_thread</li> </ul> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">initfunc</td><td>a function to call when tcpip_thread is running and finished initializing </td></tr> <tr><td class="paramname">arg</td><td>argument to pass to initfunc </td></tr> </table> </dd> </dl> <p class="definition">Definition at line <a class="el" href="../../d2/d55/tcpip_8c_source.html#l00446">446</a> of file <a class="el" href="../../d2/d55/tcpip_8c_source.html">tcpip.c</a>.</p> <p class="reference">References <a class="el" href="../../db/d87/core_2init_8c_source.html#l00333">lwip_init()</a>.</p> <p class="reference">Referenced by <a class="el" href="../../d6/d49/net_2init_8c_source.html#l00052">net_init()</a>.</p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="../../d2/d55/tcpip_8c_a1f3a88b8df6ba3b9ed1c00e0a305e3db_cgraph.png" border="0" usemap="#d2/d55/tcpip_8c_a1f3a88b8df6ba3b9ed1c00e0a305e3db_cgraph" alt=""/></div> <map name="d2/d55/tcpip_8c_a1f3a88b8df6ba3b9ed1c00e0a305e3db_cgraph" id="d2/d55/tcpip_8c_a1f3a88b8df6ba3b9ed1c00e0a305e3db_cgraph"> <area shape="rect" title=" " alt="" coords="5,107,80,133"/> <area shape="rect" href="../../df/d40/net_2init_8h.html#a0c1a18439524d2f4a5e51d25c0ca2ce9" title=" " alt="" coords="128,107,196,133"/> <area shape="rect" href="../../d9/d9a/mem_8h.html#a44a136e3b70c36abb6f8dc060c778113" title=" " alt="" coords="248,31,323,57"/> <area shape="rect" href="../../df/dff/memp_8h.html#a9693e5b1ac2c6b9c0e7870522d45efa2" title=" " alt="" coords="244,81,327,108"/> <area shape="rect" href="../../d9/d69/netif_8h.html#a0f4a53e47c840904f824a2a1c0d4ebf4" title=" " alt="" coords="250,132,321,159"/> <area shape="rect" href="../../d9/d87/sys_8h.html#af411a8bc6b7ed4b0af9114e10c959448" title=" " alt="" coords="252,208,319,235"/> <area shape="rect" href="../../d1/d70/memp_8c.html#a6416303426d05526bed33f241fa6ecd7" title=" " alt="" coords="377,5,491,32"/> <area shape="rect" href="../../d7/d3a/group__netif.html#ga66970b5877dd6b0cae906bfa78d0cb4c" title=" " alt="" coords="397,56,471,83"/> <area shape="rect" href="../../d7/d3a/group__netif.html#gae0d2975f189277990e9d5276fdd9e9ea" title=" " alt="" coords="375,107,493,133"/> <area shape="rect" href="../../d7/d3a/group__netif.html#gaf19693be401a265a52d2a56c65753121" title=" " alt="" coords="388,157,480,184"/> <area shape="rect" href="../../d9/db5/tcpip_8h.html#ae510f195171bed8499ae94e264a92717" title=" " alt="" coords="391,208,477,235"/> <area shape="rect" href="../../da/d66/string_8h.html#ace4b911463887af5e748326323e99a23" title=" " alt="" coords="549,56,619,83"/> <area shape="rect" href="../../d2/d55/tcpip_8c.html#a93043b3c66dbe4a15a60299c6199d102" title=" " alt="" coords="541,208,627,235"/> <area shape="rect" href="../../de/df7/time_8h.html#adf30830f5265e55035171c301eb9c3fb" title=" " alt="" coords="386,259,482,285"/> </map> </div> </div> </div> <a id="a93043b3c66dbe4a15a60299c6199d102"></a> <h2 class="memtitle"><span class="permalink"><a href="#a93043b3c66dbe4a15a60299c6199d102">◆ </a></span>tcpip_inpkt()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="../../d2/de7/group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a> tcpip_inpkt </td> <td>(</td> <td class="paramtype">struct <a class="el" href="../../d9/db8/structpbuf.html">pbuf</a> * </td> <td class="paramname"><em>p</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">struct <a class="el" href="../../d2/dd6/structnetif.html">netif</a> * </td> <td class="paramname"><em>inp</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="../../d9/d69/netif_8h.html#ab2302b1b64ac7b95f24c6bab754a575e">netif_input_fn</a> </td> <td class="paramname"><em>input_fn</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Pass a received packet to tcpip_thread for input processing</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">p</td><td>the received packet </td></tr> <tr><td class="paramname">inp</td><td>the network interface on which the packet was received </td></tr> <tr><td class="paramname">input_fn</td><td>input function to call </td></tr> </table> </dd> </dl> <p class="definition">Definition at line <a class="el" href="../../d2/d55/tcpip_8c_source.html#l00161">161</a> of file <a class="el" href="../../d2/d55/tcpip_8c_source.html">tcpip.c</a>.</p> <p class="reference">References <a class="el" href="../../d4/de8/structtcpip__msg.html#a7d9bc654de358efed5d9737a77bd7c71">tcpip_msg::inp</a>, <a class="el" href="../../d6/d89/tcpip__priv_8h_source.html#l00138">tcpip_msg::input_fn</a>, <a class="el" href="../../d9/db5/tcpip_8h_source.html#l00060">LOCK_TCPIP_CORE</a>, <a class="el" href="../../db/d16/debug_8h_source.html#l00116">LWIP_ASSERT</a>, <a class="el" href="../../db/d16/debug_8h_source.html#l00164">LWIP_DEBUGF</a>, <a class="el" href="../../d6/d89/tcpip__priv_8h_source.html#l00128">tcpip_msg::msg</a>, <a class="el" href="../../d6/d89/tcpip__priv_8h_source.html#l00136">tcpip_msg::p</a>, <a class="el" href="../../d9/d87/sys_8h_source.html#l00271">sys_mbox_valid_val</a>, <a class="el" href="../../d2/d78/lwipopts_8h_source.html#l00482">TCPIP_DEBUG</a>, and <a class="el" href="../../d9/db5/tcpip_8h_source.html#l00061">UNLOCK_TCPIP_CORE</a>.</p> <p class="reference">Referenced by <a class="el" href="../../d2/d55/tcpip_8c_source.html#l00204">tcpip_input()</a>.</p> </div> </div> <a id="ae510f195171bed8499ae94e264a92717"></a> <h2 class="memtitle"><span class="permalink"><a href="#ae510f195171bed8499ae94e264a92717">◆ </a></span>tcpip_input()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="../../d2/de7/group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a> tcpip_input </td> <td>(</td> <td class="paramtype">struct <a class="el" href="../../d9/db8/structpbuf.html">pbuf</a> * </td> <td class="paramname"><em>p</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">struct <a class="el" href="../../d2/dd6/structnetif.html">netif</a> * </td> <td class="paramname"><em>inp</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Pass a received packet to tcpip_thread for input processing with ethernet_input or ip_input. Don't call directly, pass to <a class="el" href="../../d7/d3a/group__netif.html#ga66970b5877dd6b0cae906bfa78d0cb4c">netif_add()</a> and call netif->input().</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">p</td><td>the received packet, p->payload pointing to the Ethernet header or to an IP header (if inp doesn't have NETIF_FLAG_ETHARP or NETIF_FLAG_ETHERNET flags) </td></tr> <tr><td class="paramname">inp</td><td>the network interface on which the packet was received </td></tr> </table> </dd> </dl> <p class="definition">Definition at line <a class="el" href="../../d2/d55/tcpip_8c_source.html#l00204">204</a> of file <a class="el" href="../../d2/d55/tcpip_8c_source.html">tcpip.c</a>.</p> <p class="reference">References <a class="el" href="../../d4/de8/structtcpip__msg.html#a7d9bc654de358efed5d9737a77bd7c71">tcpip_msg::inp</a>, <a class="el" href="../../d9/d69/netif_8h_source.html#l00099">NETIF_FLAG_ETHARP</a>, <a class="el" href="../../d9/d69/netif_8h_source.html#l00103">NETIF_FLAG_ETHERNET</a>, <a class="el" href="../../d6/d89/tcpip__priv_8h_source.html#l00136">tcpip_msg::p</a>, and <a class="el" href="../../d2/d55/tcpip_8c_source.html#l00161">tcpip_inpkt()</a>.</p> <p class="reference">Referenced by <a class="el" href="../../d6/d49/net_2init_8c_source.html#l00052">net_init()</a>, and <a class="el" href="../../df/d02/netif_8c_source.html#l00163">netif_init()</a>.</p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="../../d2/d55/tcpip_8c_ae510f195171bed8499ae94e264a92717_cgraph.png" border="0" usemap="#d2/d55/tcpip_8c_ae510f195171bed8499ae94e264a92717_cgraph" alt=""/></div> <map name="d2/d55/tcpip_8c_ae510f195171bed8499ae94e264a92717_cgraph" id="d2/d55/tcpip_8c_ae510f195171bed8499ae94e264a92717_cgraph"> <area shape="rect" title=" " alt="" coords="5,5,91,32"/> <area shape="rect" href="../../d2/d55/tcpip_8c.html#a93043b3c66dbe4a15a60299c6199d102" title=" " alt="" coords="139,5,224,32"/> </map> </div> </div> </div> <a id="a12bdf37eddcd72c4178e3ea7d370395d"></a> <h2 class="memtitle"><span class="permalink"><a href="#a12bdf37eddcd72c4178e3ea7d370395d">◆ </a></span>tcpip_send_msg_wait_sem()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="../../d2/de7/group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a> tcpip_send_msg_wait_sem </td> <td>(</td> <td class="paramtype"><a class="el" href="../../d9/db5/tcpip_8h.html#a35203296bb838f3b493839ffc6e7285d">tcpip_callback_fn</a> </td> <td class="paramname"><em>fn</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">void * </td> <td class="paramname"><em>apimsg</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="../../d2/d28/sem_8h.html#a900e36da93bb688c29fc8148f2f44e04">sys_sem_t</a> * </td> <td class="paramname"><em>sem</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Sends a message to TCPIP thread to call a function. Caller thread blocks on on a provided semaphore, which ist NOT automatically signalled by TCPIP thread, this has to be done by the user. It is recommended to use LWIP_TCPIP_CORE_LOCKING since this is the way with least runtime overhead.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">fn</td><td>function to be called from TCPIP thread </td></tr> <tr><td class="paramname">apimsg</td><td>argument to API function </td></tr> <tr><td class="paramname">sem</td><td>semaphore to wait on </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>ERR_OK if the function was called, another err_t if not </dd></dl> <p class="definition">Definition at line <a class="el" href="../../d2/d55/tcpip_8c_source.html#l00322">322</a> of file <a class="el" href="../../d2/d55/tcpip_8c_source.html">tcpip.c</a>.</p> <p class="reference">References <a class="el" href="../../d6/d40/err_8h_source.html#l00063">ERR_OK</a>, <a class="el" href="../../d9/db5/tcpip_8h_source.html#l00060">LOCK_TCPIP_CORE</a>, <a class="el" href="../../db/d16/debug_8h_source.html#l00116">LWIP_ASSERT</a>, <a class="el" href="../../d2/d2d/arch_8h_source.html#l00315">LWIP_UNUSED_ARG</a>, <a class="el" href="../../d6/d89/tcpip__priv_8h_source.html#l00128">tcpip_msg::msg</a>, <a class="el" href="../../d6/d89/tcpip__priv_8h_source.html#l00133">tcpip_msg::sem</a>, <a class="el" href="../../d9/d87/sys_8h_source.html#l00271">sys_mbox_valid_val</a>, <a class="el" href="../../d9/d56/sys__arch_8c_source.html#l00131">sys_sem_valid()</a>, <a class="el" href="../../d2/d55/tcpip_8c_source.html#l00048">TCPIP_MSG_VAR_DECLARE</a>, and <a class="el" href="../../d9/db5/tcpip_8h_source.html#l00061">UNLOCK_TCPIP_CORE</a>.</p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="../../d2/d55/tcpip_8c_a12bdf37eddcd72c4178e3ea7d370395d_cgraph.png" border="0" usemap="#d2/d55/tcpip_8c_a12bdf37eddcd72c4178e3ea7d370395d_cgraph" alt=""/></div> <map name="d2/d55/tcpip_8c_a12bdf37eddcd72c4178e3ea7d370395d_cgraph" id="d2/d55/tcpip_8c_a12bdf37eddcd72c4178e3ea7d370395d_cgraph"> <area shape="rect" title=" " alt="" coords="5,5,184,32"/> <area shape="rect" href="../../da/d3a/group__sys__sem.html#gac7ff314270976b80559d043f6098817b" title=" " alt="" coords="232,5,339,32"/> </map> </div> </div> </div> <a id="acfc81ad493f68714a22b3b8ea7d04378"></a> <h2 class="memtitle"><span class="permalink"><a href="#acfc81ad493f68714a22b3b8ea7d04378">◆ </a></span>tcpip_trycallback()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="../../d2/de7/group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a> tcpip_trycallback </td> <td>(</td> <td class="paramtype">struct tcpip_callback_msg * </td> <td class="paramname"><em>msg</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Try to post a callback-message to the tcpip_thread mbox This is intended to be used to send "static" messages from interrupt context.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">msg</td><td>pointer to the message to post </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd><a class="el" href="../../d8/dc0/group__sys__mbox.html#gacc06f47f34de04084e1d49788ce871b6">sys_mbox_trypost()</a> return code </dd></dl> <p class="definition">Definition at line <a class="el" href="../../d2/d55/tcpip_8c_source.html#l00432">432</a> of file <a class="el" href="../../d2/d55/tcpip_8c_source.html">tcpip.c</a>.</p> <p class="reference">References <a class="el" href="../../db/d16/debug_8h_source.html#l00116">LWIP_ASSERT</a>, and <a class="el" href="../../d9/d87/sys_8h_source.html#l00271">sys_mbox_valid_val</a>.</p> </div> </div> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="../../dir_427baa8a9a5be237f298d4545d0d1ce2.html">net</a></li><li class="navelem"><a class="el" href="../../dir_2f00170dfe17f9eb3c5b5ce6bca6dd9d.html">api</a></li><li class="navelem"><a class="el" href="../../d2/d55/tcpip_8c.html">tcpip.c</a></li> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.16 </li> </ul> </div> </body> </html>