summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-02-29 23:20:55 +0000
committerMartin Mares <mj@ucw.cz>2000-02-29 23:20:55 +0000
commitef0883a12fc699fbcef61f56fe8445f5e2ac1bb7 (patch)
tree862d4a9e9986f82a69f725c4a38bcb96116d534e
parent6a636392d33627944df9d5a9573932cdc0bf6da5 (diff)
Adapted RIP to new interface flags. Pavel, please verify it's right.
-rw-r--r--proto/rip/rip.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index 08193191..2808e059 100644
--- a/proto/rip/rip.c
+++ b/proto/rip/rip.c
@@ -585,13 +585,9 @@ new_iface(struct proto *p, struct iface *new, unsigned long flags, struct iface_
rif->sock->ttl = 30;
rif->sock->tos = IP_PREC_INTERNET_CONTROL;
-
- if (flags & IF_BROADCAST)
- rif->sock->daddr = new->addr->brd;
- if (flags & IF_UNNUMBERED) {
- rif->sock->daddr = new->addr->opposite;
+ rif->sock->daddr = new->addr->brd;
+ if (new->addr->flags & IA_UNNUMBERED)
log( L_WARN "RIP/%s: rip is not defined over unnumbered links\n", P_NAME );
- }
if (want_multicast) {
rif->sock->daddr = ipa_from_u32(0xe0000009);
rif->sock->saddr = ipa_from_u32(0xe0000009);