summaryrefslogtreecommitdiffstats
path: root/bgpd/bgpd.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-02-15 21:54:53 +0100
committerDonald Sharp <sharpd@nvidia.com>2022-02-15 22:38:32 +0100
commit8b4a0b6631c9484a8925a7279b7a111c3e340de1 (patch)
treea38252b53584295cea81481d81aba53c8a7869ab /bgpd/bgpd.h
parentMerge pull request #10571 from rameshabhinay/ospf6_auth_trailer (diff)
downloadfrr-8b4a0b6631c9484a8925a7279b7a111c3e340de1.tar.xz
frr-8b4a0b6631c9484a8925a7279b7a111c3e340de1.zip
bgpd: Remove impossible invalid state
confederations are checking to see that the bgp pointer is non-null. But it's impossible to have a null pointer in the cli and in all paths we have already deref'ed the bgp pointer. Let's remove that error code as that it is impossible to happen. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to '')
-rw-r--r--bgpd/bgpd.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h
index ae6427b35..d102a17dc 100644
--- a/bgpd/bgpd.h
+++ b/bgpd/bgpd.h
@@ -1921,7 +1921,6 @@ enum bgp_clear_type {
#define BGP_ERR_INVALID_VALUE -1
#define BGP_ERR_INVALID_FLAG -2
#define BGP_ERR_INVALID_AS -3
-#define BGP_ERR_INVALID_BGP -4
#define BGP_ERR_PEER_GROUP_MEMBER -5
#define BGP_ERR_PEER_GROUP_NO_REMOTE_AS -7
#define BGP_ERR_PEER_GROUP_CANT_CHANGE -8