Skip to content
Commit 6ee49502 authored by Florian Vaussard's avatar Florian Vaussard Committed by Christopher Friedt
Browse files

net: icmpv6: fix net_icmpv6_send_error() dropping packets



ICMPv6 error messages are not sent (on native_posix) because the first
net_pkt_write() returns an error.

pkt has just been allocated using net_pkt_alloc_with_buffer(). Trying to
write an empty packet in overwrite mode will result in an error. There
is no need to be in overwrite mode, since we want to write the LL
src/dst addresses at the beginning.

Signed-off-by: default avatarFlorian Vaussard <florian.vaussard@gmail.com>
parent 2af48610
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment