From: Martin Mares Date: Wed, 26 Apr 2000 12:32:07 +0000 (+0000) Subject: Better formatting of router ID's. X-Git-Tag: v1.2.0~1094 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbf3939a53192c093f9f367edb15bf613126e347;p=thirdparty%2Fbird.git Better formatting of router ID's. --- diff --git a/nest/rt-attr.c b/nest/rt-attr.c index 42317e97f..17721fb4e 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);