Added FIXME: If a strange interface appears, ignore it instead of only
writing an error message...
This commit is contained in:
parent
f5c687f791
commit
6c02d83f4d
1 changed files with 1 additions and 0 deletions
|
@ -503,6 +503,7 @@ new_iface(struct proto *p, struct iface *new, unsigned long flags)
|
||||||
|
|
||||||
if (!ipa_nonzero(rif->sock->daddr))
|
if (!ipa_nonzero(rif->sock->daddr))
|
||||||
log( L_WARN "RIP: interface %s is too strange for me", rif->iface ? rif->iface->name : "(dummy)" );
|
log( L_WARN "RIP: interface %s is too strange for me", rif->iface ? rif->iface->name : "(dummy)" );
|
||||||
|
/* FIXME: Should ignore the interface instead of blindly trying to bind on it */
|
||||||
|
|
||||||
if (sk_open(rif->sock)<0)
|
if (sk_open(rif->sock)<0)
|
||||||
die( "RIP/%s: could not listen on %s", P_NAME, rif->iface ? rif->iface->name : "(dummy)" );
|
die( "RIP/%s: could not listen on %s", P_NAME, rif->iface ? rif->iface->name : "(dummy)" );
|
||||||
|
|
Loading…
Reference in a new issue