net: icmpv6: Fix echo request packet generation
`net_ipv6_finalize` expects packet cursor to be reinitialized in order to finalize packet correctly. This commits adds missing cursor initialization. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
parent
f7169ec216
commit
c47ef5e142
|
@ -335,6 +335,7 @@ int net_icmpv6_send_echo_request(struct net_if *iface,
|
|||
|
||||
net_pkt_set_data(pkt, &icmpv6_access);
|
||||
|
||||
net_pkt_cursor_init(pkt);
|
||||
net_ipv6_finalize(pkt, IPPROTO_ICMPV6);
|
||||
|
||||
NET_DBG("Sending ICMPv6 Echo Request type %d from %s to %s",
|
||||
|
|
Loading…
Reference in a new issue