Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Examples

Variables used in uIP device drivers
[The uIP TCP/IP stack]


Detailed Description

uIP has a few global variables that are used in device drivers for uIP.


Variables

u16_t uip_len
 The length of the packet in the uip_buf buffer.


Variable Documentation

u16_t uip_len
 

The length of the packet in the uip_buf buffer.

The global variable uip_len holds the length of the packet in the uip_buf buffer.

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.

When sending packets, the device driver should use the contents of the uip_len variable to determine the length of the outgoing packet.

Examples:
example-packet-service.c.

Definition at line 147 of file uip.c.

Referenced by tcpip_input(), uip_arp_arpin(), uip_arp_out(), uip_fw_forward(), uip_fw_output(), and uip_split_output().


Generated on Thu Jun 22 17:45:43 2006 for Contiki 2.x by  doxygen 1.4.4