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:
Anthony Merlino 2017-11-29 00:54:17 +00:00 committed by Gregory Nutt
parent 4d4029afeb
commit 2b4f0b4a25

View File

@ -86,10 +86,9 @@ void devif_forward(FAR struct forward_s *fwd)
fwd->f_iob->io_pktlen, 0); fwd->f_iob->io_pktlen, 0);
DEBUGASSERT(ret == fwd->f_iob->io_pktlen); DEBUGASSERT(ret == fwd->f_iob->io_pktlen);
offset += fwd->f_iob->io_pktlen;
fwd->f_dev->d_sndlen = 0; fwd->f_dev->d_sndlen = 0;
fwd->f_dev->d_len = offset; fwd->f_dev->d_len = fwd->f_iob->io_pktlen;
UNUSED(ret); UNUSED(ret);
} }