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 Page</span></a></li> 11 <li><a href="modules.html"><span>Modules</span></a></li> 12 <li><a href="classes.html"><span>Data 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> 20uIP has a few global variables that are used in device drivers for uIP. 21<p> 22 23<p> 24<table border="0" cellpadding="0" cellspacing="0"> 25<tr><td></td></tr> 26<tr><td colspan="2"><br><h2>Variables</h2></td></tr> 27<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="a00153.html#g77570ac4fcab86864fa1916e55676da2">u16_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00149.html#g12a33f0c09711167bdf3dd7d7cf8c5a1">uip_len</a></td></tr> 28 29<tr><td class="mdescLeft"> </td><td class="mdescRight">The length of the packet in the uip_buf buffer. <a href="#g12a33f0c09711167bdf3dd7d7cf8c5a1"></a><br></td></tr> 30</table> 31<hr><h2>Variable Documentation</h2> 32<a class="anchor" name="g12a33f0c09711167bdf3dd7d7cf8c5a1"></a><!-- doxytag: member="uip.h::uip_len" ref="g12a33f0c09711167bdf3dd7d7cf8c5a1" args="" --><p> 33<table class="mdTable" cellpadding="2" cellspacing="0"> 34 <tr> 35 <td class="mdRow"> 36 <table cellpadding="0" cellspacing="0" border="0"> 37 <tr> 38 <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> 39 </tr> 40 </table> 41 </td> 42 </tr> 43</table> 44<table cellspacing="5" cellpadding="0" border="0"> 45 <tr> 46 <td> 47 48 </td> 49 <td> 50 51<p> 52The length of the packet in the uip_buf buffer. 53<p> 54The global variable uip_len holds the length of the packet in the uip_buf buffer.<p> 55When 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> 56When 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> 57<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> 58<p> 59Definition at line <a class="el" href="a00201.html#l00155">155</a> of file <a class="el" href="a00201.html">uip.c</a>. 60<p> 61Referenced 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> 62 </tr> 63</table> 64<hr size="1"><address style="align: right;"><small>Generated on Mon Jun 12 10:23:02 2006 for uIP 1.0 by 65<a href="http://www.doxygen.org/index.html"> 66<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> 67</body> 68</html> 69