mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-27 03:35:38 +00:00
Fixed error in calculating some IPv6 option header lengths.
This commit is contained in:
parent
bcabe63971
commit
c52189557e
@ -501,7 +501,7 @@ netif_found:
|
||||
nexth = *((u8_t *)p->payload);
|
||||
|
||||
/* Get the header length. */
|
||||
hlen = 8 * (1 + *((u8_t *)p->payload) + 1);
|
||||
hlen = 8 * (1 + *((u8_t *)p->payload + 1));
|
||||
ip_data.current_ip_header_tot_len += hlen;
|
||||
|
||||
/* Skip over this header. */
|
||||
@ -524,7 +524,7 @@ netif_found:
|
||||
nexth = *((u8_t *)p->payload);
|
||||
|
||||
/* Get the header length. */
|
||||
hlen = 8 * (1 + *((u8_t *)p->payload) + 1);
|
||||
hlen = 8 * (1 + *((u8_t *)p->payload + 1));
|
||||
ip_data.current_ip_header_tot_len += hlen;
|
||||
|
||||
/* Skip over this header. */
|
||||
@ -547,7 +547,7 @@ netif_found:
|
||||
nexth = *((u8_t *)p->payload);
|
||||
|
||||
/* Get the header length. */
|
||||
hlen = 8 * (1 + *((u8_t *)p->payload) + 1);
|
||||
hlen = 8 * (1 + *((u8_t *)p->payload + 1));
|
||||
ip_data.current_ip_header_tot_len += hlen;
|
||||
|
||||
/* Skip over this header. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user