summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-04-26 14:32:07 +0200
committerMartin Mares <mj@ucw.cz>2000-04-26 14:32:07 +0200
commitdbf3939a53192c093f9f367edb15bf613126e347 (patch)
tree6c78196870e8cd902f441a50ebe8181fd4f8f57a
parentebd3720f8335cecd671382c23fe61f03b7e2acaa (diff)
downloadbird-dbf3939a53192c093f9f367edb15bf613126e347.tar
bird-dbf3939a53192c093f9f367edb15bf613126e347.zip
Better formatting of router ID's.
-rw-r--r--nest/rt-attr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/nest/rt-attr.c b/nest/rt-attr.c
index 42317e9..17721fb 100644
--- a/nest/rt-attr.c
+++ b/nest/rt-attr.c
@@ -285,7 +285,11 @@ ea_format(eattr *e, byte *buf)
bsprintf(buf, "%I", *(ip_addr *) ad->data);
break;
case EAF_TYPE_ROUTER_ID:
- bsprintf(buf, "%08x", e->u.data); /* FIXME: Better printing of router ID's */
+ bsprintf(buf, "%d.%d.%d.%d",
+ (e->u.data >> 24) & 0xff,
+ (e->u.data >> 16) & 0xff,
+ (e->u.data >> 8) & 0xff,
+ e->u.data & 0xff);
break;
case EAF_TYPE_AS_PATH:
as_path_format(ad, buf, end - buf);