return dst;
}
-static char *num_append(char *s, int len, u_long x)
+static char *num_append(char *s, int len, unsigned long x)
{
char buf[30];
char *t;
}
#if defined(SA_SIGINFO) || defined(HAVE_STACK_TRACE)
-static char *hex_append(char *s, int len, u_long x)
+static char *hex_append(char *s, int len, unsigned long x)
{
char buf[30];
char *t;
return str_append(s, len, "0");
*(t = &buf[sizeof(buf) - 1]) = '\0';
while (x && (t > buf)) {
- u_int cc = (x % 16);
+ unsigned int cc = (x % 16);
*--t = ((cc < 10) ? ('0' + cc) : ('a' + cc - 10));
x /= 16;
}
s = num_append(LOC, now);
#ifdef SA_SIGINFO
s = str_append(LOC, " (si_addr 0x");
- s = hex_append(LOC, (u_long)(siginfo->si_addr));
+ s = hex_append(LOC, (unsigned long)(siginfo->si_addr));
if (program_counter) {
s = str_append(LOC, ", PC 0x");
- s = hex_append(LOC, (u_long)program_counter);
+ s = hex_append(LOC, (unsigned long)program_counter);
}
s = str_append(LOC, "); ");
#else /* SA_SIGINFO */
s = str_append(LOC, "[bt ");
s = num_append(LOC, i);
s = str_append(LOC, "] 0x");
- s = hex_append(LOC, (u_long)(array[i]));
+ s = hex_append(
+ LOC, (unsigned long)(array[i]));
}
*s = '\0';
if (priority
}
/* Open log stream */
-void openzlog(const char *progname, const char *protoname, u_short instance,
- int syslog_flags, int syslog_facility)
+void openzlog(const char *progname, const char *protoname,
+ unsigned short instance, int syslog_flags, int syslog_facility)
{
struct zlog *zl;
- u_int i;
+ unsigned int i;
zl = XCALLOC(MTYPE_ZLOG, sizeof(struct zlog));
DESC_ENTRY(ZEBRA_RULE_ADD),
DESC_ENTRY(ZEBRA_RULE_DELETE),
DESC_ENTRY(ZEBRA_RULE_NOTIFY_OWNER),
+ DESC_ENTRY(ZEBRA_TABLE_MANAGER_CONNECT),
+ DESC_ENTRY(ZEBRA_GET_TABLE_CHUNK),
+ DESC_ENTRY(ZEBRA_RELEASE_TABLE_CHUNK),
+ DESC_ENTRY(ZEBRA_IPSET_CREATE),
+ DESC_ENTRY(ZEBRA_IPSET_DESTROY),
+ DESC_ENTRY(ZEBRA_IPSET_ENTRY_ADD),
+ DESC_ENTRY(ZEBRA_IPSET_ENTRY_DELETE),
};
#undef DESC_ENTRY
static const struct zebra_desc_table unknown = {0, "unknown", '?'};
-static const struct zebra_desc_table *zroute_lookup(u_int zroute)
+static const struct zebra_desc_table *zroute_lookup(unsigned int zroute)
{
- u_int i;
+ unsigned int i;
if (zroute >= array_size(route_types)) {
zlog_err("unknown zebra route type: %u", zroute);
return &unknown;
}
-const char *zebra_route_string(u_int zroute)
+const char *zebra_route_string(unsigned int zroute)
{
return zroute_lookup(zroute)->string;
}
-char zebra_route_char(u_int zroute)
+char zebra_route_char(unsigned int zroute)
{
return zroute_lookup(zroute)->chr;
}
return ZEBRA_ROUTE_BABEL;
else if (strmatch(s, "sharp"))
return ZEBRA_ROUTE_SHARP;
- else if (strmatch(s, "vpn"))
- return ZEBRA_ROUTE_BGP_VPN;
}
if (afi == AFI_IP6) {
if (strmatch(s, "kernel"))
return ZEBRA_ROUTE_BABEL;
else if (strmatch(s, "sharp"))
return ZEBRA_ROUTE_SHARP;
- else if (strmatch(s, "vpn"))
- return ZEBRA_ROUTE_BGP_VPN;
}
return -1;
}