summaryrefslogtreecommitdiffstats
path: root/filter/filter.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-03-14 12:43:10 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2009-03-14 12:43:10 +0100
commitcf1860349182503523975fb8084d514407a75fb4 (patch)
tree24fbf737c0204f763ae0a29705706d4786308c3d /filter/filter.c
parentf16ad72ed76c398f081b97b09d56f4b199822464 (diff)
downloadbird-cf1860349182503523975fb8084d514407a75fb4.tar
bird-cf1860349182503523975fb8084d514407a75fb4.zip
New syntax for bgp_path
Diffstat (limited to 'filter/filter.c')
-rw-r--r--filter/filter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/filter/filter.c b/filter/filter.c
index 785a087..623ab29 100644
--- a/filter/filter.c
+++ b/filter/filter.c
@@ -83,9 +83,9 @@ pm_format(struct f_path_mask *p, byte *buf, unsigned int size)
}
if (p->any)
- buf += bsprintf(buf, "* ");
+ buf += bsprintf(buf, " *");
else
- buf += bsprintf(buf, "%u ", p->val);
+ buf += bsprintf(buf, " %u", p->val);
p = p->next;
}
@@ -252,7 +252,7 @@ val_print(struct f_val v)
case T_ENUM: PRINTF( "(enum %x)%d", v.type, v.val.i ); break;
case T_PATH: as_path_format(v.val.ad, buf2, 1020); PRINTF( "(path %s)", buf2 ); break;
case T_CLIST: int_set_format(v.val.ad, 1, buf2, 1020); PRINTF( "(clist %s)", buf2 ); break;
- case T_PATH_MASK: pm_format(v.val.path_mask, buf2, 1020); PRINTF( "(pathmask %s)", buf2 ); break;
+ case T_PATH_MASK: pm_format(v.val.path_mask, buf2, 1020); PRINTF( "(pathmask%s)", buf2 ); break;
default: PRINTF( "[unknown type %x]", v.type );
#undef PRINTF
}