mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-23 14:46:01 +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);
|
nexth = *((u8_t *)p->payload);
|
||||||
|
|
||||||
/* Get the header length. */
|
/* 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;
|
ip_data.current_ip_header_tot_len += hlen;
|
||||||
|
|
||||||
/* Skip over this header. */
|
/* Skip over this header. */
|
||||||
|
@ -524,7 +524,7 @@ netif_found:
|
||||||
nexth = *((u8_t *)p->payload);
|
nexth = *((u8_t *)p->payload);
|
||||||
|
|
||||||
/* Get the header length. */
|
/* 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;
|
ip_data.current_ip_header_tot_len += hlen;
|
||||||
|
|
||||||
/* Skip over this header. */
|
/* Skip over this header. */
|
||||||
|
@ -547,7 +547,7 @@ netif_found:
|
||||||
nexth = *((u8_t *)p->payload);
|
nexth = *((u8_t *)p->payload);
|
||||||
|
|
||||||
/* Get the header length. */
|
/* 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;
|
ip_data.current_ip_header_tot_len += hlen;
|
||||||
|
|
||||||
/* Skip over this header. */
|
/* Skip over this header. */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user