summaryrefslogtreecommitdiff
path: root/proto
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-06-04 20:00:35 +0000
committerMartin Mares <mj@ucw.cz>2000-06-04 20:00:35 +0000
commite24ddd9bef7e3d3490a8ee7667cd25069b40fe81 (patch)
tree8f1d94ac38920af84e4fe072786f90759a6aaa99 /proto
parent13e9bac33fc99e71efddf1790ce1e7dfdc09dfa8 (diff)
Don't set precedence and TTL for the dummy socket.
Diffstat (limited to 'proto')
-rw-r--r--proto/rip/rip.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index 636e7c2f..02565282 100644
--- a/proto/rip/rip.c
+++ b/proto/rip/rip.c
@@ -622,10 +622,10 @@ new_iface(struct proto *p, struct iface *new, unsigned long flags, struct iface_
rif->sock->daddr = IPA_NONE;
rif->sock->dport = P_CF->port;
if (new)
- rif->sock->ttl = 1;
- else
- rif->sock->ttl = 30; /* FIXME: Shouldn't we leave default TTL in this case? [mj] */
- rif->sock->tos = IP_PREC_INTERNET_CONTROL; /* FIXME: Interface sockets only, I guess [mj] */
+ {
+ rif->sock->ttl = 1;
+ rif->sock->tos = IP_PREC_INTERNET_CONTROL;
+ }
if (new) {
if (new->addr->flags & IA_UNNUMBERED)