]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Output made prettier.
authorPavel Machek <pavel@ucw.cz>
Wed, 26 Jan 2000 12:07:18 +0000 (12:07 +0000)
committerPavel Machek <pavel@ucw.cz>
Wed, 26 Jan 2000 12:07:18 +0000 (12:07 +0000)
proto/rip/rip.c

index b8338a5eb4d102293e68b767ddefd41c1874a39b..6e3f8cdd6f0e557a6ef0066ed1890a793b34240e 100644 (file)
@@ -521,9 +521,10 @@ rip_dump(struct proto *p)
 }
 
 static void
-rip_get_route_info(rte *rte, char *buf)
+rip_get_route_info(rte *rte, byte *buf)
 {
-  sprintf(buf, "(%d/%d) t%04x", rte->u.rip.metric, rte->pref, rte->u.rip.tag );
+  buf += sprintf(buf, " (%d/%d)", rte->pref, rte->u.rip.metric );
+  sprintf(buf, " t%04x", rte->u.rip.tag );
 }
 
 static int
@@ -580,6 +581,7 @@ 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) {