diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-03-09 17:21:22 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-03-09 17:21:22 +0000 |
commit | 7c87236e9af7831202b55aabefdd52e2b52d5d37 (patch) | |
tree | 9c4312a452767d0f1d7cc943db6701dc6ee8e03f /usr.sbin/bgpd/bgpd.h | |
parent | 247b27868d074e1f20776fbdbdaa649afb79c867 (diff) |
Implement ASPA support in RTR by following draft-ietf-sidrops-8210bis-10.
In rtr.c renamed rtr_aspa_merge_set() to rtr_aspa_insert() and move it
close to rtr_roa_insert().
In rtr_proto.c most complexity comes from the version negotiation. The
ASPA parser is reasonably streight forward. The version negotiation is
fragile but that is mostly because of the protocol specification and the
fact that RTR cache daemons sometimes fail to send errors.
OK tb@
Diffstat (limited to 'usr.sbin/bgpd/bgpd.h')
-rw-r--r-- | usr.sbin/bgpd/bgpd.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h index 1cef0670cae..af2f67509e2 100644 --- a/usr.sbin/bgpd/bgpd.h +++ b/usr.sbin/bgpd/bgpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.h,v 1.462 2023/03/09 13:12:19 claudio Exp $ */ +/* $OpenBSD: bgpd.h,v 1.463 2023/03/09 17:21:21 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -538,7 +538,7 @@ struct rtr_config { struct bgpd_addr remote_addr; struct bgpd_addr local_addr; uint32_t id; - in_addr_t remote_port; + uint16_t remote_port; }; struct ctl_show_rtr { @@ -550,7 +550,8 @@ struct ctl_show_rtr { uint32_t retry; uint32_t expire; int session_id; - in_addr_t remote_port; + uint16_t remote_port; + uint8_t version; enum rtr_error last_sent_error; enum rtr_error last_recv_error; char last_sent_msg[REASON_LEN]; |