mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 18:27:56 +08:00
Merged in antmerlino/nuttx/ipfwd-remove-redundant-llheadersize (pull request #548)
net/devif: Do not add link layer header size to d_len inside devif_forward(). Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
committed by
Gregory Nutt
parent
4d4029afeb
commit
2b4f0b4a25
@@ -86,10 +86,9 @@ void devif_forward(FAR struct forward_s *fwd)
|
||||
fwd->f_iob->io_pktlen, 0);
|
||||
|
||||
DEBUGASSERT(ret == fwd->f_iob->io_pktlen);
|
||||
offset += fwd->f_iob->io_pktlen;
|
||||
|
||||
fwd->f_dev->d_sndlen = 0;
|
||||
fwd->f_dev->d_len = offset;
|
||||
fwd->f_dev->d_len = fwd->f_iob->io_pktlen;
|
||||
|
||||
UNUSED(ret);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user