]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Don't set precedence and TTL for the dummy socket.
authorMartin Mares <mj@ucw.cz>
Sun, 4 Jun 2000 20:00:35 +0000 (20:00 +0000)
committerMartin Mares <mj@ucw.cz>
Sun, 4 Jun 2000 20:00:35 +0000 (20:00 +0000)
proto/rip/rip.c

index 636e7c2f3d0ecfe3f87ffb56e52777e30273ab3c..025652821b42bd988ece115a9bde4ac2022d906d 100644 (file)
@@ -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)