summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nest/iface.c2
-rw-r--r--nest/rt-fib.c16
-rw-r--r--nest/rt-table.c2
-rw-r--r--proto/static/static.c2
-rw-r--r--sysdep/linux/krt-scan.c2
-rw-r--r--sysdep/unix/io.c6
-rw-r--r--sysdep/unix/krt-set.c4
-rw-r--r--sysdep/unix/main.c2
8 files changed, 18 insertions, 18 deletions
diff --git a/nest/iface.c b/nest/iface.c
index 831b3e2..ce638d2 100644
--- a/nest/iface.c
+++ b/nest/iface.c
@@ -341,7 +341,7 @@ auto_router_id(void) /* FIXME: What if we run IPv6??? */
(!j || ipa_to_u32(i->ip) < ipa_to_u32(j->ip)))
j = i;
if (!j) /* FIXME: allow configuration or running without RID */
- die("Cannot determine router ID, please configure manually");
+ bug("Cannot determine router ID, please configure manually");
router_id = ipa_to_u32(j->ip);
debug("Router ID set to %08x (%s)\n", router_id, j->name);
}
diff --git a/nest/rt-fib.c b/nest/rt-fib.c
index 15db74c..f436525 100644
--- a/nest/rt-fib.c
+++ b/nest/rt-fib.c
@@ -132,7 +132,7 @@ fib_get(struct fib *f, ip_addr *a, int len)
return e;
#ifdef DEBUGGING
if (len < 0 || len > BITS_PER_IP_ADDRESS || !ip_is_prefix(*a,len))
- die("fib_get() called for invalid address");
+ bug("fib_get() called for invalid address");
#endif
e = sl_alloc(f->fib_slab);
e->prefix = *a;
@@ -215,7 +215,7 @@ fib_delete(struct fib *f, void *E)
}
ee = &((*ee)->next);
}
- die("fib_delete() called for invalid node");
+ bug("fib_delete() called for invalid node");
}
void
@@ -305,29 +305,29 @@ fib_check(struct fib *f)
struct fib_iterator *j, *j0;
unsigned int h0 = ipa_hash(n->prefix);
if (h0 < lo)
- die("fib_check: discord in hash chains");
+ bug("fib_check: discord in hash chains");
lo = h0;
if ((h0 >> f->hash_shift) != i)
- die("fib_check: mishashed %x->%x (order %d)", h0, i, f->hash_order);
+ bug("fib_check: mishashed %x->%x (order %d)", h0, i, f->hash_order);
j0 = (struct fib_iterator *) n;
nulls = 0;
for(j=n->readers; j; j=j->next)
{
if (j->prev != j0)
- die("fib_check: iterator->prev mismatch");
+ bug("fib_check: iterator->prev mismatch");
j0 = j;
if (!j->node)
nulls++;
else if (nulls)
- die("fib_check: iterator nullified");
+ bug("fib_check: iterator nullified");
else if (j->node != n)
- die("fib_check: iterator->node mismatch");
+ bug("fib_check: iterator->node mismatch");
}
ec++;
}
}
if (ec != f->entries)
- die("fib_check: invalid entry count (%d != %d)", ec, f->entries);
+ bug("fib_check: invalid entry count (%d != %d)", ec, f->entries);
}
#endif
diff --git a/nest/rt-table.c b/nest/rt-table.c
index b35297b..0ccb8da 100644
--- a/nest/rt-table.c
+++ b/nest/rt-table.c
@@ -97,7 +97,7 @@ rte_better(rte *new, rte *old)
if (new->attrs->proto != old->attrs->proto)
{
/* FIXME!!! */
- die("Different protocols, but identical preferences => oops");
+ bug("Different protocols, but identical preferences => oops");
}
if (better = new->attrs->proto->rte_better)
return better(new, old);
diff --git a/proto/static/static.c b/proto/static/static.c
index d1fe217..7844460 100644
--- a/proto/static/static.c
+++ b/proto/static/static.c
@@ -82,7 +82,7 @@ static_start(struct proto *P)
break;
}
case RTD_DEVICE:
- die("Static device routes are not supported");
+ bug("Static device routes are not supported");
/* FIXME: Static device routes */
default:
static_install(p, r, NULL);
diff --git a/sysdep/linux/krt-scan.c b/sysdep/linux/krt-scan.c
index 9801f8a..f1c0090 100644
--- a/sysdep/linux/krt-scan.c
+++ b/sysdep/linux/krt-scan.c
@@ -291,7 +291,7 @@ krt_prune(struct krt_proto *p)
rte_update(n, &p->p, new);
break;
default:
- die("krt_prune: invalid route status");
+ bug("krt_prune: invalid route status");
}
if (old)
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index 3340666..0d8f125 100644
--- a/sysdep/unix/io.c
+++ b/sysdep/unix/io.c
@@ -293,7 +293,7 @@ void
get_sockaddr(struct sockaddr_in *sa, ip_addr *a, unsigned *port)
{
if (sa->sin_family != AF_INET)
- die("get_sockaddr called for wrong address family");
+ bug("get_sockaddr called for wrong address family");
if (port)
*port = ntohs(sa->sin_port);
memcpy(a, &sa->sin_addr.s_addr, sizeof(*a));
@@ -379,7 +379,7 @@ sk_open(sock *s)
fd = socket(PF_INET, SOCK_RAW, s->dport);
break;
default:
- die("sk_open() called for invalid sock type %d", s->type);
+ bug("sk_open() called for invalid sock type %d", s->type);
}
if (fd < 0)
die("sk_open: socket: %m");
@@ -530,7 +530,7 @@ sk_maybe_write(sock *s)
return 1;
}
default:
- die("sk_maybe_write: unknown socket type %d", s->type);
+ bug("sk_maybe_write: unknown socket type %d", s->type);
}
}
diff --git a/sysdep/unix/krt-set.c b/sysdep/unix/krt-set.c
index 33d5bca..83984fe 100644
--- a/sysdep/unix/krt-set.c
+++ b/sysdep/unix/krt-set.c
@@ -77,7 +77,7 @@ krt_ioctl(int ioc, rte *e, char *name)
break;
#endif
default:
- die("krt set: unknown flags, but not filtered");
+ bug("krt set: unknown flags, but not filtered");
}
if (ioctl(if_scan_sock, ioc, &re) < 0)
@@ -127,6 +127,6 @@ void
krt_set_preconfig(struct krt_proto *x)
{
if (if_scan_sock < 0)
- die("krt set: missing socket");
+ bug("krt set: missing socket");
x->p.rt_notify = krt_set_notify;
}
diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c
index f5076c4..a2b3318 100644
--- a/sysdep/unix/main.c
+++ b/sysdep/unix/main.c
@@ -121,5 +121,5 @@ main(void)
debug("Entering I/O loop.\n");
io_loop();
- die("I/O loop died");
+ bug("I/O loop died");
}