[En-Nut-Discussion] FYI: Bug in ICMP destination unreachable handling fixed

Harald Kipp harald.kipp at egnite.de
Tue Sep 29 13:48:07 CEST 2015


Hi Ole,

On 28.09.2015 16:29, Ole Reinhardt wrote:
> -            th = (TCPHDR *) ((char *) ih) + sizeof(IPHDR);
> +            th = (TCPHDR *) (((char *) ih) + sizeof(IPHDR));

Wow, this one hid for more than 11 years!

Btw. most other parts of the stack use this one:

 th = (TCPHDR *) (ih + 1);


Regards,

Harald




More information about the En-Nut-Discussion mailing list