summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/bgpd.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2004-02-26 14:00:34 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2004-02-26 14:00:34 +0000
commit11a180c99e46f36231edf3068b2a427969f69411 (patch)
tree8230d636d704aeee6f6653ca69945b4673fda63b /usr.sbin/bgpd/bgpd.h
parent8f7a65223ef60cf679511eed6084ba0d67d363e2 (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/bgpd.h')
-rw-r--r--usr.sbin/bgpd/bgpd.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h
index 801c649948b..0339b077619 100644
--- a/usr.sbin/bgpd/bgpd.h
+++ b/usr.sbin/bgpd/bgpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.h,v 1.99 2004/02/26 09:53:58 claudio Exp $ */
+/* $OpenBSD: bgpd.h,v 1.100 2004/02/26 14:00:33 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -125,6 +125,12 @@ enum announce_type {
ANNOUNCE_ALL
};
+enum enforce_as {
+ ENFORCE_AS_UNDEF,
+ ENFORCE_AS_OFF,
+ ENFORCE_AS_ON
+};
+
struct filter_set {
u_int8_t flags;
u_int32_t localpref;
@@ -150,6 +156,7 @@ struct peer_config {
u_int16_t min_holdtime;
struct filter_set attrset;
enum announce_type announce_type;
+ enum enforce_as enforce_as;
char tcp_md5_key[TCP_MD5_KEY_LEN];
enum reconf_action reconf_action;
};