From 2b4f0b4a257ebcd74cea4669cad100d95ba4f7b1 Mon Sep 17 00:00:00 2001 From: Anthony Merlino Date: Wed, 29 Nov 2017 00:54:17 +0000 Subject: [PATCH] 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 --- net/devif/devif_forward.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/devif/devif_forward.c b/net/devif/devif_forward.c index 6f6faffdce..acfd782781 100644 --- a/net/devif/devif_forward.c +++ b/net/devif/devif_forward.c @@ -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); }