a00149.html 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
  3. <title>uIP 1.0: Variables used in uIP device drivers</title>
  4. <link href="doxygen.css" rel="stylesheet" type="text/css">
  5. <link href="tabs.css" rel="stylesheet" type="text/css">
  6. </head><body>
  7. <!-- Generated by Doxygen 1.4.6 -->
  8. <div class="tabs">
  9. <ul>
  10. <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
  11. <li><a href="modules.html"><span>Modules</span></a></li>
  12. <li><a href="classes.html"><span>Data&nbsp;Structures</span></a></li>
  13. <li><a href="files.html"><span>Files</span></a></li>
  14. <li><a href="examples.html"><span>Examples</span></a></li>
  15. </ul></div>
  16. <h1>Variables used in uIP device drivers<br>
  17. <small>
  18. [<a class="el" href="a00150.html">The uIP TCP/IP stack</a>]</small>
  19. </h1><hr><a name="_details"></a><h2>Detailed Description</h2>
  20. uIP has a few global variables that are used in device drivers for uIP.
  21. <p>
  22. <p>
  23. <table border="0" cellpadding="0" cellspacing="0">
  24. <tr><td></td></tr>
  25. <tr><td colspan="2"><br><h2>Variables</h2></td></tr>
  26. <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="a00153.html#g77570ac4fcab86864fa1916e55676da2">u16_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00149.html#g12a33f0c09711167bdf3dd7d7cf8c5a1">uip_len</a></td></tr>
  27. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The length of the packet in the uip_buf buffer. <a href="#g12a33f0c09711167bdf3dd7d7cf8c5a1"></a><br></td></tr>
  28. </table>
  29. <hr><h2>Variable Documentation</h2>
  30. <a class="anchor" name="g12a33f0c09711167bdf3dd7d7cf8c5a1"></a><!-- doxytag: member="uip.h::uip_len" ref="g12a33f0c09711167bdf3dd7d7cf8c5a1" args="" --><p>
  31. <table class="mdTable" cellpadding="2" cellspacing="0">
  32. <tr>
  33. <td class="mdRow">
  34. <table cellpadding="0" cellspacing="0" border="0">
  35. <tr>
  36. <td class="md" nowrap valign="top"><a class="el" href="a00153.html#g77570ac4fcab86864fa1916e55676da2">u16_t</a> <a class="el" href="a00150.html#g12a33f0c09711167bdf3dd7d7cf8c5a1">uip_len</a> </td>
  37. </tr>
  38. </table>
  39. </td>
  40. </tr>
  41. </table>
  42. <table cellspacing="5" cellpadding="0" border="0">
  43. <tr>
  44. <td>
  45. &nbsp;
  46. </td>
  47. <td>
  48. <p>
  49. The length of the packet in the uip_buf buffer.
  50. <p>
  51. The global variable uip_len holds the length of the packet in the uip_buf buffer.<p>
  52. When the network device driver calls the uIP input function, uip_len should be set to the length of the packet in the uip_buf buffer.<p>
  53. When sending packets, the device driver should use the contents of the uip_len variable to determine the length of the outgoing packet. <dl compact><dt><b>Examples: </b></dt><dd>
  54. <a class="el" href="a00042.html#a68">example-mainloop-with-arp.c</a>, and <a class="el" href="a00043.html#a92">example-mainloop-without-arp.c</a>.</dl>
  55. <p>
  56. Definition at line <a class="el" href="a00201.html#l00155">155</a> of file <a class="el" href="a00201.html">uip.c</a>.
  57. <p>
  58. Referenced by <a class="el" href="a00204.html#l00278">uip_arp_arpin()</a>, <a class="el" href="a00201.html#l00682">uip_process()</a>, and <a class="el" href="a00199.html#l00049">uip_split_output()</a>. </td>
  59. </tr>
  60. </table>
  61. <hr size="1"><address style="align: right;"><small>Generated on Mon Jun 12 10:23:02 2006 for uIP 1.0 by&nbsp;
  62. <a href="http://www.doxygen.org/index.html">
  63. <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
  64. </body>
  65. </html>