summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/bgpd.h4
-rw-r--r--usr.sbin/bgpd/rde_filter.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h
index 3f7e61ffcd7..08fac2c5ceb 100644
--- a/usr.sbin/bgpd/bgpd.h
+++ b/usr.sbin/bgpd/bgpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.h,v 1.344 2018/09/21 04:55:27 claudio Exp $ */
+/* $OpenBSD: bgpd.h,v 1.345 2018/09/26 15:48:01 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -651,7 +651,7 @@ struct ctl_show_rib {
};
enum as_spec {
- AS_NONE,
+ AS_UNDEF,
AS_ALL,
AS_SOURCE,
AS_TRANSIT,
diff --git a/usr.sbin/bgpd/rde_filter.c b/usr.sbin/bgpd/rde_filter.c
index 10d4735d820..7682e42cf9e 100644
--- a/usr.sbin/bgpd/rde_filter.c
+++ b/usr.sbin/bgpd/rde_filter.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde_filter.c,v 1.110 2018/09/26 15:01:36 claudio Exp $ */
+/* $OpenBSD: rde_filter.c,v 1.111 2018/09/26 15:48:01 claudio Exp $ */
/*
* Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org>
@@ -360,7 +360,7 @@ rde_filter_match(struct filter_rule *f, struct rde_peer *peer,
if (f->peer.ibgp && peer->conf.ebgp)
return (0);
- if (asp != NULL && f->match.as.type != AS_NONE) {
+ if (asp != NULL && f->match.as.type != AS_UNDEF) {
if (aspath_match(asp->aspath->data, asp->aspath->len,
&f->match.as, peer->conf.remote_as) == 0)
return (0);