0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-10 05:08:42 +00:00

Output made prettier.

This commit is contained in:
Pavel Machek 2000-01-26 12:07:18 +00:00
parent 7211be1cff
commit 8660913ba8

View File

@ -521,9 +521,10 @@ rip_dump(struct proto *p)
} }
static void 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 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->ttl = 30;
rif->sock->tos = IP_PREC_INTERNET_CONTROL; rif->sock->tos = IP_PREC_INTERNET_CONTROL;
if (flags & IF_BROADCAST) if (flags & IF_BROADCAST)
rif->sock->daddr = new->addr->brd; rif->sock->daddr = new->addr->brd;
if (flags & IF_UNNUMBERED) { if (flags & IF_UNNUMBERED) {