union sockunion *mask, union sockunion *gate,
unsigned int index, int zebra_flags, int metric);
+#ifdef HAVE_STRUCT_SOCKADDR_IN_SIN_LEN
/* Adjust netmask socket length. Return value is a adjusted sin_len
value. */
static int
len--;
return len;
}
+#endif /* HAVE_STRUCT_SOCKADDR_IN_SIN_LEN */
/* Interface between zebra message and rtm message. */
static int
#ifdef HAVE_IPV6
+#ifdef SIN6_LEN
/* Calculate sin6_len value for netmask socket value. */
static int
sin6_masklen (struct in6_addr mask)
return len;
}
+#endif /* SIN6_LEN */
/* Interface between zebra message and rtm message. */
static int
zlog_info ("kernel_rtm_ipv6_multipath(): nexthop %d add error=%d.",
nexthop_num, error);
}
+#else
+ (void)error;
#endif
nexthop_num++;