You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by je...@apache.org on 2024/06/06 07:27:55 UTC
(nuttx) branch master updated: netlink: fix IPV6 macro bug
This is an automated email from the ASF dual-hosted git repository.
jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new f4d9005bea netlink: fix IPV6 macro bug
f4d9005bea is described below
commit f4d9005bea6eae3406561bd94317ca866fb23b84
Author: meijian <me...@xiaomi.com>
AuthorDate: Tue May 21 11:30:27 2024 +0800
netlink: fix IPV6 macro bug
Signed-off-by: meijian <me...@xiaomi.com>
---
net/netlink/netlink.h | 2 +-
net/netlink/netlink_route.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/net/netlink/netlink.h b/net/netlink/netlink.h
index 9932a9635f..cdfd7287d8 100644
--- a/net/netlink/netlink.h
+++ b/net/netlink/netlink.h
@@ -562,7 +562,7 @@ void netlink_neigh_notify(FAR const void *neigh, int type, int domain);
*
****************************************************************************/
-#if defined(CONFIG_NETLINK_DISABLE_NEWPREFIX) || !defined(CONFIG_NET_IPV6)
+#if defined(CONFIG_NETLINK_DISABLE_NEWPREFIX) || !defined(CONFIG_NET_IPv6)
# define netlink_ipv6_prefix_notify(dev, type, pinfo)
#else
void netlink_ipv6_prefix_notify(FAR struct net_driver_s *dev, int type,
diff --git a/net/netlink/netlink_route.c b/net/netlink/netlink_route.c
index b4fecc769d..7d35e9f543 100644
--- a/net/netlink/netlink_route.c
+++ b/net/netlink/netlink_route.c
@@ -1276,7 +1276,7 @@ static int netlink_get_addr(NETLINK_HANDLE handle,
}
#endif
-#if !defined(CONFIG_NETLINK_DISABLE_NEWADDR) && defined(CONFIG_NET_IPV6)
+#if !defined(CONFIG_NETLINK_DISABLE_NEWADDR) && defined(CONFIG_NET_IPv6)
static FAR struct netlink_response_s *
netlink_fill_ipv6prefix(FAR struct net_driver_s *dev, int type,
FAR const struct icmpv6_prefixinfo_s *pinfo)
@@ -1669,7 +1669,7 @@ void netlink_neigh_notify(FAR const void *neigh, int type, int domain)
*
****************************************************************************/
-#if !defined(CONFIG_NETLINK_DISABLE_NEWADDR) && defined(CONFIG_NET_IPV6)
+#if !defined(CONFIG_NETLINK_DISABLE_NEWADDR) && defined(CONFIG_NET_IPv6)
void netlink_ipv6_prefix_notify(FAR struct net_driver_s *dev, int type,
FAR const struct icmpv6_prefixinfo_s *pinfo)
{