netlink: fix IPV6 macro bug

Signed-off-by: meijian <meijian@xiaomi.com>
This commit is contained in:
meijian 2024-05-21 11:30:27 +08:00 committed by Alin Jerpelea
parent fb1ff61d0d
commit f4d9005bea
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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)
{