summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde.c
diff options
context:
space:
mode:
authorSebastian Benoit <benno@cvs.openbsd.org>2016-06-03 17:36:38 +0000
committerSebastian Benoit <benno@cvs.openbsd.org>2016-06-03 17:36:38 +0000
commit9a8e40458d24a58d330dfaf6596f4ff3ce9d723a (patch)
treefe5fc56801499639920817c4d0e533069b869cbb /usr.sbin/bgpd/rde.c
parent0f09414e8b1b99b05c35ca8fae09b6cad3ccf3ad (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/bgpd/rde.c')
-rw-r--r--usr.sbin/bgpd/rde.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c
index 3c6e0d1327e..edb3246b2a7 100644
--- a/usr.sbin/bgpd/rde.c
+++ b/usr.sbin/bgpd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.345 2015/12/22 21:36:57 mmcc Exp $ */
+/* $OpenBSD: rde.c,v 1.346 2016/06/03 17:36:37 benno Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -2252,7 +2252,7 @@ rde_dump_filter(struct prefix *p, struct ctl_show_rib_request *req)
return;
if (req->type == IMSG_CTL_SHOW_RIB_AS &&
!aspath_match(p->aspath->aspath->data,
- p->aspath->aspath->len, req->as.type, req->as.as))
+ p->aspath->aspath->len, &req->as, req->as.as))
return;
if (req->type == IMSG_CTL_SHOW_RIB_COMMUNITY &&
!community_match(p->aspath, req->community.as,