summaryrefslogtreecommitdiffstats
path: root/proto/rip/rip.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-12-20 15:26:57 +0100
committerMartin Mares <mj@ucw.cz>1998-12-20 15:26:57 +0100
commitee969ea7f4c4f40020e4209b167da04d04aba52c (patch)
treef28e6b85ac4091a470d0d990f70a642e0a1c0d30 /proto/rip/rip.c
parent98e87c8628f9b0a0a96bc46879b65a78b756a718 (diff)
downloadbird-ee969ea7f4c4f40020e4209b167da04d04aba52c.tar
bird-ee969ea7f4c4f40020e4209b167da04d04aba52c.zip
Added #if 0 to rip_postconfig(), so that it doesn't crash whole daemon
when RIP is unconfigured. die() -> bug()
Diffstat (limited to 'proto/rip/rip.c')
-rw-r--r--proto/rip/rip.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index cbdaea0..d5107a6 100644
--- a/proto/rip/rip.c
+++ b/proto/rip/rip.c
@@ -194,7 +194,7 @@ rip_sendto( struct proto *p, ip_addr daddr, int dport, struct rip_interface *rif
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 );
@@ -532,6 +532,7 @@ new_iface(struct proto *p, struct iface *new, unsigned long flags)
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;
}
@@ -657,7 +658,9 @@ rip_preconfig(struct protocol *x)
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 = {