diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2018-09-26 15:48:02 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2018-09-26 15:48:02 +0000 |
commit | 10f930973817607d5708ccc4ec3d6d759dcb7f56 (patch) | |
tree | 322f9e25b46e65177cccebff539e00f0cbc6899b /usr.sbin | |
parent | 8be368703a390096f9dd34d1b9bfaa0be2a90918 (diff) |
Rename AS_NONE to AS_UNDEF, AS_NONE will be reused for a different purpose
soon. OK compiler and grep
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bgpd/bgpd.h | 4 | ||||
-rw-r--r-- | usr.sbin/bgpd/rde_filter.c | 4 |
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); |