"Interface route",
"IPv4 nexthop",
"IPv4 nexthop with ifindex",
- "IPv4 nexthop with ifname",
"IPv6 nexthop",
"IPv6 nexthop with ifindex",
- "IPv6 nexthop with ifname",
"Null0 nexthop",
};
- if (nh_type >= ZEBRA_NUM_OF (desc))
- return "<Invalid nh type>";
-
return desc[nh_type];
}
#include "privs.h"
-#if 0
-union sockunion {
- struct sockinet {
- u_char si_len;
- u_char si_family;
- u_short si_port;
- } su_si;
- struct sockaddr_in su_sin;
- struct sockaddr_in6 su_sin6;
-};
-#define su_len su_si.si_len
-#define su_family su_si.si_family
-#define su_port su_si.si_port
-#endif /* 0 */
-
union sockunion
{
struct sockaddr sa;
struct sockaddr_in sin;
-#ifdef HAVE_IPV6
struct sockaddr_in6 sin6;
-#endif /* HAVE_IPV6 */
};
enum connect_result
/* In case of 'help \t'. */
if (isspace ((int) vty->buf[vty->length - 1]))
- vector_set (vline, '\0');
+ vector_set (vline, NULL);
matched = cmd_complete_command (vline, vty, &ret);
if (vline == NULL)
{
vline = vector_init (1);
- vector_set (vline, '\0');
+ vector_set (vline, NULL);
}
else
if (isspace ((int) vty->buf[vty->length - 1]))
- vector_set (vline, '\0');
+ vector_set (vline, NULL);
describe = cmd_describe_command (vline, vty, &ret);