c->dport = dport;
c->daddr = daddr;
if (c->rif->sock->data != rif)
- die("not enough send magic\n");
+ bug("not enough send magic\n");
#if 0
if (sk_open(c->send)<0) {
log( L_ERR "Could not open socket for data send to %I:%d on %s\n", daddr, dport, rif->iface->name );
if (sk_open(rif->sock)<0)
die( "RIP/%s: could not listen on %s\n", p->name, rif->iface->name );
+ /* FIXME: Should not be fatal, since the interface might have gone */
return rif;
}
static void
rip_postconfig(struct protocol *p)
{
+#if 0 /* Cannot do this since it crashes when RIP is unconfigured */
new_iface(p, NULL, 0);
+#endif
}
struct protocol proto_rip = {
#define E ((struct rip_entry *) e)
#define RIP_MAGIC 81861253
-#define CHK_MAGIC do { if (P->magic != RIP_MAGIC) die( "Not enough magic\n" ); } while (0)
+#define CHK_MAGIC do { if (P->magic != RIP_MAGIC) bug( "Not enough magic\n" ); } while (0)
void rip_init_instance(struct proto *p);