mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
net/netdev: Avoid hardcoded guardsize when using d_iob
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
This commit is contained in:
@@ -621,8 +621,7 @@ int ipv6_input(FAR struct net_driver_s *dev)
|
||||
|
||||
/* Set the device buffer to l2 */
|
||||
|
||||
dev->d_buf = &dev->d_iob->io_data[CONFIG_NET_LL_GUARDSIZE -
|
||||
NET_LL_HDRLEN(dev)];
|
||||
dev->d_buf = NETLLBUF;
|
||||
ret = ipv6_in(dev);
|
||||
|
||||
dev->d_buf = buf;
|
||||
|
||||
Reference in New Issue
Block a user