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.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.c')
-rw-r--r-- | usr.sbin/bgpd/rde.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c index 83b93321053..38444f5a210 100644 --- a/usr.sbin/bgpd/rde.c +++ b/usr.sbin/bgpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.87 2004/02/26 09:53:58 claudio Exp $ */ +/* $OpenBSD: rde.c,v 1.88 2004/02/26 14:00:33 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -409,8 +409,8 @@ rde_update_dispatch(struct imsg *imsg) /* parse path attributes */ attr_init(&attrs); while (attrpath_len > 0) { - if ((pos = attr_parse(p, attrpath_len, &attrs, - peer->conf.ebgp)) < 0) { + if ((pos = attr_parse(p, attrpath_len, &attrs, peer->conf.ebgp, + peer->conf.enforce_as, peer->conf.remote_as)) < 0) { emsg = attr_error(p, attrpath_len, &attrs, &subtype, &size); rde_update_err(peer, ERR_UPDATE, subtype, emsg, size); |