diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-01-06 15:06:38 +0200 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-01-14 21:30:35 +0200 |
| commit | db3f8f319913a83abb1be283796c42f29e60423b (patch) | |
| tree | c6950c92ae9ae62ffe6ddb4cb4f099ad374bed9a /bgpd/bgp_open.c | |
| parent | 329dc2070440672c215bdf385f353deb35ef8442 (diff) | |
bgpd: Deprecate some unused BGP stuff
* BGP optional parameter type (Authentication)
* BGP UPDATE message error subcode for AS loop
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_open.c')
| -rw-r--r-- | bgpd/bgp_open.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/bgpd/bgp_open.c b/bgpd/bgp_open.c index 79c54dd32d..659e93bdfa 100644 --- a/bgpd/bgp_open.c +++ b/bgpd/bgp_open.c @@ -1129,13 +1129,6 @@ static int bgp_capability_parse(struct peer *peer, size_t length, return 0; } -static int bgp_auth_parse(struct peer *peer, size_t length) -{ - bgp_notify_send(peer, BGP_NOTIFY_OPEN_ERR, - BGP_NOTIFY_OPEN_AUTH_FAILURE); - return -1; -} - static bool strict_capability_same(struct peer *peer) { int i, j; @@ -1339,17 +1332,11 @@ int bgp_open_option_parse(struct peer *peer, uint16_t length, zlog_debug( "%s rcvd OPEN w/ optional parameter type %u (%s) len %u", peer->host, opt_type, - opt_type == BGP_OPEN_OPT_AUTH - ? "Authentication" - : opt_type == BGP_OPEN_OPT_CAP - ? "Capability" - : "Unknown", + opt_type == BGP_OPEN_OPT_CAP ? "Capability" + : "Unknown", opt_length); switch (opt_type) { - case BGP_OPEN_OPT_AUTH: - ret = bgp_auth_parse(peer, opt_length); - break; case BGP_OPEN_OPT_CAP: ret = bgp_capability_parse(peer, opt_length, mp_capability, &error); |
