From 04110ba74d7ed88ec4a65850109e8b3a00d87776 Mon Sep 17 00:00:00 2001 From: zhangyuyang Date: Wed, 23 Sep 2026 10:45:50 +0800 Subject: [components][netdev] Fix AF_NETLINK build errors Use each network device's ifindex when invoking the callback. Add a forward declaration for struct msg_buf. Signed-off-by: zhangyuyang --- components/net/netdev/include/netdev.h | 1 + 1 file changed, 1 insertion(+) (limited to 'components/net/netdev/include/netdev.h') diff --git a/components/net/netdev/include/netdev.h b/components/net/netdev/include/netdev.h index 05761bade6..925b038e18 100644 --- a/components/net/netdev/include/netdev.h +++ b/components/net/netdev/include/netdev.h @@ -159,6 +159,7 @@ struct netdev *netdev_get_by_family(int family); int netdev_family_get(struct netdev *netdev); #endif /* RT_USING_SAL */ #if defined(SAL_USING_AF_NETLINK) +struct msg_buf; int netdev_getnetdev(struct msg_buf *msg, int (*cb)(struct msg_buf *m_buf, struct netdev *nd, int nd_num, int index, int ipvx)); #endif -- cgit v1.3.1