ret = str2prefix (gwip, &gw_ip);
if (! ret)
{
- vty_out (vty, "%% Malformed GatewayIp%s", VTY_NEWLINE);
+ vty_outln (vty, "%% Malformed GatewayIp");
return CMD_WARNING;
}
- if((gw_ip.family == AF_INET && (p.u.prefix_evpn.flags & IP_PREFIX_V6))
- || (gw_ip.family == AF_INET6 && (p.u.prefix_evpn.flags & IP_PREFIX_V4)))
+ if((gw_ip.family == AF_INET &&
+ IS_EVPN_PREFIX_IPADDR_V6((struct prefix_evpn *)&p)) ||
+ (gw_ip.family == AF_INET6 &&
+ IS_EVPN_PREFIX_IPADDR_V4((struct prefix_evpn *)&p)))
{
- vty_out (vty, "%% GatewayIp family differs with IP prefix%s", VTY_NEWLINE);
+ vty_outln (vty, "%% GatewayIp family differs with IP prefix");
return CMD_WARNING;
}
}
/* Backet alloc. */
unsigned long count;
+
+ struct hashstats stats;
+
+ /* hash name */
+ char *name;
};
+ #define hashcount(X) ((X)->count)
+
extern struct hash *hash_create (unsigned int (*) (void *),
- int (*) (const void *, const void *));
+ int (*) (const void *, const void *),
+ const char *);
extern struct hash *hash_create_size (unsigned int, unsigned int (*) (void *),
- int (*) (const void *, const void *));
+ int (*) (const void *, const void *),
+ const char *);
extern void *hash_get (struct hash *, void *, void * (*) (void *));
extern void *hash_alloc_intern (void *);