summaryrefslogtreecommitdiff
path: root/components/net/netdev/include
diff options
context:
space:
mode:
authorzhangyuyang <[email protected]>2026-09-23 10:45:50 +0800
committerRbb666 <[email protected]>2026-11-24 15:04:14 +0800
commit04110ba74d7ed88ec4a65850109e8b3a00d87776 (patch)
tree1274a98eb9e4507d1977158ac4193fdd23c7d970 /components/net/netdev/include
parentbf8719c23b313a2328d5f0f36b51492d1d78061e (diff)
[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 <[email protected]>
Diffstat (limited to 'components/net/netdev/include')
-rw-r--r--components/net/netdev/include/netdev.h1
1 files changed, 1 insertions, 0 deletions
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