summaryrefslogtreecommitdiffstats
path: root/nest/a-set.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-07-23 16:06:25 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2009-07-23 16:06:25 +0200
commit2f6483cd312ffd7ef055099ce801fb8f437d9abe (patch)
treedd4d468a17017a5b1372057be9bcc40536089a3c /nest/a-set.c
parentf0333f44a5a4bec9f3978a90cf7eda1b0a2ec151 (diff)
downloadbird-2f6483cd312ffd7ef055099ce801fb8f437d9abe.tar
bird-2f6483cd312ffd7ef055099ce801fb8f437d9abe.zip
Adds %R printf directive for Router ID.
Diffstat (limited to 'nest/a-set.c')
-rw-r--r--nest/a-set.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/nest/a-set.c b/nest/a-set.c
index 505c0e5..fad4481 100644
--- a/nest/a-set.c
+++ b/nest/a-set.c
@@ -34,9 +34,7 @@ int_set_format(struct adata *set, int way, byte *buf, unsigned int size)
if (way)
buf += bsprintf(buf, "(%d,%d)", *z >> 16, *z & 0xffff);
else
- buf += bsprintf(buf, "%d.%d.%d.%d",
- (*z >> 24) & 0xff, (*z >> 16) & 0xff,
- (*z >> 8) & 0xff, *z & 0xff);
+ buf += bsprintf(buf, "%R", *z);
z++;
sp = 0;