net/netdev: Avoid hardcoded guardsize when using d_iob

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
This commit is contained in:
Zhe Weng
2023-01-06 11:46:36 +08:00
committed by Xiang Xiao
parent 632ed0d3a4
commit 1cf3147626
15 changed files with 23 additions and 38 deletions
+1 -2
View File
@@ -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;