net/ipforward: correct application data offset

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2022-10-26 18:13:45 +08:00 committed by Petro Karashchenko
parent f361d1cd41
commit b60b48411c

View File

@ -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