diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-02-26 14:00:34 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-02-26 14:00:34 +0000 |
commit | 11a180c99e46f36231edf3068b2a427969f69411 (patch) | |
tree | 8230d636d704aeee6f6653ca69945b4673fda63b /usr.sbin/bgpd/rde_decide.c | |
parent | 8f7a65223ef60cf679511eed6084ba0d67d363e2 (diff) |
Implement "enforce neighbor-as yes|no" which is by default on for ebgp
neighbors. While doing that check also that the nexthop is valid (not class D
or E and not in 127/8 range). Kill some TODO and XXX and rename the british
neighbour to neighbor as used everywhere else. OK henning@
Diffstat (limited to 'usr.sbin/bgpd/rde_decide.c')
-rw-r--r-- | usr.sbin/bgpd/rde_decide.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/rde_decide.c b/usr.sbin/bgpd/rde_decide.c index b16e2a05757..9580e9fbf42 100644 --- a/usr.sbin/bgpd/rde_decide.c +++ b/usr.sbin/bgpd/rde_decide.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_decide.c,v 1.28 2004/02/17 14:22:40 claudio Exp $ */ +/* $OpenBSD: rde_decide.c,v 1.29 2004/02/26 14:00:33 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> @@ -147,8 +147,8 @@ prefix_cmp(struct prefix *p1, struct prefix *p2) return (asp2->flags.origin - asp1->flags.origin); /* 5. MED decision, only comparable between the same neighboring AS */ - if (aspath_neighbour(asp1->flags.aspath) == - aspath_neighbour(asp2->flags.aspath)) + if (aspath_neighbor(asp1->flags.aspath) == + aspath_neighbor(asp2->flags.aspath)) /* the bigger, the better */ if ((asp1->flags.med - asp2->flags.med) != 0) return (asp1->flags.med - asp2->flags.med); |