mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
netlink: fix IPV6 macro bug
Signed-off-by: meijian <meijian@xiaomi.com>
This commit is contained in:
@@ -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)
|
# define netlink_ipv6_prefix_notify(dev, type, pinfo)
|
||||||
#else
|
#else
|
||||||
void netlink_ipv6_prefix_notify(FAR struct net_driver_s *dev, int type,
|
void netlink_ipv6_prefix_notify(FAR struct net_driver_s *dev, int type,
|
||||||
|
|||||||
@@ -1276,7 +1276,7 @@ static int netlink_get_addr(NETLINK_HANDLE handle,
|
|||||||
}
|
}
|
||||||
#endif
|
#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 *
|
static FAR struct netlink_response_s *
|
||||||
netlink_fill_ipv6prefix(FAR struct net_driver_s *dev, int type,
|
netlink_fill_ipv6prefix(FAR struct net_driver_s *dev, int type,
|
||||||
FAR const struct icmpv6_prefixinfo_s *pinfo)
|
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,
|
void netlink_ipv6_prefix_notify(FAR struct net_driver_s *dev, int type,
|
||||||
FAR const struct icmpv6_prefixinfo_s *pinfo)
|
FAR const struct icmpv6_prefixinfo_s *pinfo)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user