Skip to content

Commit

Permalink
net/pkt: fix raw socket send data length is insufficient.
Browse files Browse the repository at this point in the history
  • Loading branch information
nuttxs committed Aug 19, 2024
1 parent 9fdd299 commit f42758b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/pkt/pkt_sendmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ static uint16_t psock_send_eventhandler(FAR struct net_driver_s *dev,
goto end_wait;
}

dev->d_len = dev->d_sndlen -= NET_LL_HDRLEN(dev);
dev->d_len = dev->d_sndlen;
pstate->snd_sent = pstate->snd_buflen;

/* Make sure no ARP request overwrites this ARP request. This
Expand Down

0 comments on commit f42758b

Please sign in to comment.