diff options
author | Sebastian Benoit <benno@cvs.openbsd.org> | 2016-06-03 17:36:38 +0000 |
---|---|---|
committer | Sebastian Benoit <benno@cvs.openbsd.org> | 2016-06-03 17:36:38 +0000 |
commit | 9a8e40458d24a58d330dfaf6596f4ff3ce9d723a (patch) | |
tree | fe5fc56801499639920817c4d0e533069b869cbb /usr.sbin/bgpctl/bgpctl.c | |
parent | 0f09414e8b1b99b05c35ca8fae09b6cad3ccf3ad (diff) |
Add operators =, !=, - (range), >< (exclsive range) to the as-path
filters (AS, peer-as, source-as, transit-as).
Add a use case (block illegal AS numbers) to the bgpd.conf example.
feedback from claudio, sthen, florian,
ok florian@ phessler@
Diffstat (limited to 'usr.sbin/bgpctl/bgpctl.c')
-rw-r--r-- | usr.sbin/bgpctl/bgpctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c index 62569bf39a5..7f3f42e0a77 100644 --- a/usr.sbin/bgpctl/bgpctl.c +++ b/usr.sbin/bgpctl/bgpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpctl.c,v 1.187 2015/12/05 13:17:05 claudio Exp $ */ +/* $OpenBSD: bgpctl.c,v 1.188 2016/06/03 17:36:37 benno Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -1788,7 +1788,7 @@ show_mrt_dump(struct mrt_rib *mr, struct mrt_peer *mp, void *arg) /* filter by AS */ if (req->as.type != AS_NONE && !aspath_match(mre->aspath, mre->aspath_len, - req->as.type, req->as.as)) + &req->as, req->as.as)) continue; if (req->flags & F_CTL_DETAIL) { @@ -1853,7 +1853,7 @@ network_mrt_dump(struct mrt_rib *mr, struct mrt_peer *mp, void *arg) /* filter by AS */ if (req->as.type != AS_NONE && !aspath_match(mre->aspath, mre->aspath_len, - req->as.type, req->as.as)) + &req->as, req->as.as)) continue; bzero(&net, sizeof(net)); |