Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Variables used in uIP device drivers

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

Variables

uint8_t uip_ext_len
 The length of the extension headers. More...
 
CCIF uint16_t uip_len
 The length of the packet in the uip_buf buffer. More...
 

CCIF uint16_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.

Referenced by dao_ack_input(), dao_input(), dio_input(), dis_input(), echo_reply_input(), echo_request_input(), eventhandler(), handle_incoming_rreq(), input(), input_callback(), interface_output(), ip64_eth_interface_input(), na_input(), ns_input(), output(), packet_input(), PROCESS_THREAD(), ra_input(), recv_data(), remove_ext_hdr(), rpl_remove_header(), rpl_update_header_empty(), set_rpl_opt(), slip_send(), slipdev_send(), tcpip_input(), tcpip_ipv6_output(), time_exceeded(), uip_arp_arpin(), uip_arp_out(), uip_ds6_neighbor_periodic(), uip_ds6_periodic(), uip_fw_forward(), uip_fw_output(), uip_icmp6_error_output(), uip_icmp6_send(), uip_nd6_ns_output(), uip_nd6_rs_output(), uip_over_mesh_send(), uip_process(), uip_split_output(), and uip_udp_packet_send().