Contiki-NG
Loading...
Searching...
No Matches
Variables used in uIP device drivers

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

Variables

uint16_t uip_len
 The length of the packet in the uip_buf buffer.
uint16_t uip_ext_len
 The length of the extension headers.
uint8_t uip_last_proto
 The final protocol after IPv6 extension headers: UIP_PROTO_TCP, UIP_PROTO_UDP or UIP_PROTO_ICMP6.

Detailed Description

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

Variable Documentation

◆ uip_ext_len

uint16_t uip_ext_len
extern

The length of the extension headers.

Total length of all IPv6 extension headers.

The length of the extension headers.

Definition at line 122 of file uip6.c.

Referenced by accept(), icmp_in(), uip_icmp6_error_output(), and uip_remove_ext_hdr().

◆ uip_len

uint16_t uip_len
extern

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.

Definition at line 159 of file uip6.c.

Referenced by accept(), accept(), icmp_in(), inject_tcp(), input(), nat64_flush_icmp6(), nat64_icmp_input(), nat64_udp_input(), output(), ra_input(), rpl_ext_header_remove(), rpl_ext_header_srh_get_next_hop(), rpl_ext_header_srh_update(), tcpip_ipv6_output(), uip_ds6_periodic(), uip_icmp6_error_output(), uip_icmp6_send(), uip_nd6_rs_output(), and uip_remove_ext_hdr().