Adapted RIP to new interface flags. Pavel, please verify it's right.

This commit is contained in:
Martin Mares 2000-02-29 23:20:55 +00:00
parent 6a636392d3
commit ef0883a12f

View file

@ -585,13 +585,9 @@ new_iface(struct proto *p, struct iface *new, unsigned long flags, struct iface_
rif->sock->ttl = 30; rif->sock->ttl = 30;
rif->sock->tos = IP_PREC_INTERNET_CONTROL; rif->sock->tos = IP_PREC_INTERNET_CONTROL;
if (flags & IF_BROADCAST)
rif->sock->daddr = new->addr->brd; rif->sock->daddr = new->addr->brd;
if (flags & IF_UNNUMBERED) { if (new->addr->flags & IA_UNNUMBERED)
rif->sock->daddr = new->addr->opposite;
log( L_WARN "RIP/%s: rip is not defined over unnumbered links\n", P_NAME ); log( L_WARN "RIP/%s: rip is not defined over unnumbered links\n", P_NAME );
}
if (want_multicast) { if (want_multicast) {
rif->sock->daddr = ipa_from_u32(0xe0000009); rif->sock->daddr = ipa_from_u32(0xe0000009);
rif->sock->saddr = ipa_from_u32(0xe0000009); rif->sock->saddr = ipa_from_u32(0xe0000009);