From b60b48411cfe89829f083bd36f9441f890e1516f Mon Sep 17 00:00:00 2001 From: chao an Date: Wed, 26 Oct 2022 18:13:45 +0800 Subject: [PATCH] net/ipforward: correct application data offset Signed-off-by: chao an --- net/ipforward/ipfwd_forward.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipforward/ipfwd_forward.c b/net/ipforward/ipfwd_forward.c index aeaad6d532d..6a7f2bb2fa8 100644 --- a/net/ipforward/ipfwd_forward.c +++ b/net/ipforward/ipfwd_forward.c @@ -92,7 +92,7 @@ static inline void forward_ipselect(FAR struct forward_s *fwd) /* Set the offset to the beginning of the UDP data payload */ - dev->d_appdata = &dev->d_buf[IPv6_HDRLEN + NET_LL_HDRLEN(dev)]; + dev->d_appdata = &dev->d_buf[IPv6UDP_HDRLEN + NET_LL_HDRLEN(dev)]; } } #endif