[ICMP] IP options lead to malformed reply
authorsashan <sashan@openbsd.org>
Tue, 30 Mar 2021 08:37:10 +0000 (08:37 +0000)
committersashan <sashan@openbsd.org>
Tue, 30 Mar 2021 08:37:10 +0000 (08:37 +0000)
commit4a2fbec54cbc0da51823e722a2b9133608b077ae
tree18b34b19debfabe2c68610aadee26a18fde49c37
parent804ff40445876fb6652323b00b9804f826133e70
[ICMP] IP options lead to malformed reply

icmp_send() must update IP header length if IP optaions are appended.
Such packet also has to be dispatched with IP_RAWOUTPUT flags.

Bug reported and fix co-designed by Dominik Schreilechner _at_ siemens _dot_ com

OK bluhm@
sys/netinet/ip_icmp.c
sys/netinet/ip_input.c
sys/netinet/ip_output.c
sys/netinet/ip_var.h