summaryrefslogtreecommitdiff
path: root/bgpd/bgp_errors.h
AgeCommit message (Collapse)Author
2023-10-10Revert "bgpd: store bgp link-state prefixes"Donald Sharp
This reverts commit 39a8d354c11f6f063fa5154f5807e7a0c9b04b46.
2023-09-18bgpd: store bgp link-state prefixesLouis Scalbert
Add the ability to store link-state prefixes in the BGP table. Store a raw copy of the BGP link state NLRI TLVs as received in the packet in 'p.u.prefix_linkstate.ptr'. Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com> Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
2023-02-09*: auto-convert to SPDX License IDsDavid Lamparter
Done with a combination of regex'ing and banging my head against a wall. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-10-26bgpd: Implement Accumulated IGP Metric Attribute for BGPDonatas Abraitis
https://www.rfc-editor.org/rfc/rfc7311.html Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-05-19bgpd: implement SendHoldTimerDavid Lamparter
As described by https://www.ietf.org/archive/id/draft-spaghetti-idr-bgp-sendholdtimer-04.html Since this replicates the HoldTime check on the receiver that is already part of the protocol, I do not believe it necessary to wait for IETF progress on this draft. It's just replicating an existing element of the protocol at the other side of the session. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-03-07bgpd: Warn user when an interface has no v6 LL address associated with itDonald Sharp
When BGP detects that a peering is using a global address but no v6 LL address has been created for the interface that the global address is on warn the user that something is amiss and they need to fix it. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2020-11-06bgpd: Advertise FIB installed routes to bgp peers (Part 2)Soman K S
* Added CLI command "[no] bgp suppress-fib-pending" to enable and disable suppress-fib-pending * Send ZEBRA_ROUTE_NOTIFY_REQUEST to zebra when "bgp suppress-fib-pending" is enabled or disabled * Define BGP_DEFAULT_UPDATE_ADVERTISEMENT_TIME which is the delay added to update group timer. * Added error codes Signed-off-by: kssoman <somanks@gmail.com>
2020-02-19bgpd: Add a better breadcrumb for when bgp is missconfigedDonald Sharp
Currently During bgp open collision resolution if both the router-id's are the same, we correctly follow the RFC and close the connection. The problem is of course that there is no notification of the error in configuration to the end user other than a subtle open debug message. Explicitly call out the miss-configuration as an error message as that this miss-config took several hours of debugging to notice. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2019-06-18bgpd: BGP_ERR_MULTIPLE_INSTANCE_NOT_SET is an impossible conditionDonald Sharp
This code is not returned anywhere in the system as that bgp is by default multiple-instance 'only' now. So remove the last remaining bits of it from the code base. Remove BGP_ERR_MULTIPLE_INSTANCE_USED too. Make bgp_get explicitly return BGP_SUCCESS instead of 0. Remove the multi-instance error code too. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2019-05-24bgpd, lib: Remove SO_MARKDonald Sharp
The SO_MARK socket option was being used pre vrf to allow for the separation of the front panel -vs- the management port. This was facilitated by a ip rule. Since this is undocumented anywhere in our system( other than old commits see ed40466af80c9d0b88436c637a1d54b28a669b1c ). We should remove this because this will cause interference with people using rules and are not aware of this offshoot of functionality. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-10-01bgpd: Try to notice when configuration changes during startupDonald Sharp
During peer startup there exists the possibility that both locally and remote peers try to start communication at the same time. In addition it is possible for local configuration to change at the same time this is going on. When this happens try to notice that the remote peer may be in opensent or openconfirm and if so we need to restart the connection from both sides. Additionally try to write a bit of extra code in peer_xfer_conn to notice when this happens and to emit a error message to the end user about this happening so that it can be cleaned up. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-09-13bgpd: BGP_[WARN|ERR] -> EC_BGPQuentin Young
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-09-06bgpd: Update bgp_updgrp_packet.c to use flog_warnDonald Sharp
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-09-06bgpd: Convert bgp_open.c to use flog_warnDonald Sharp
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-09-06bgpd: convert bgp_nht.c to use flog_warnDonald Sharp
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-09-06bgpd: Modify bgp_label to use flog_warnDonald Sharp
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-09-06bgpd: Convert bgp_evpn.c to use flow_warnDonald Sharp
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-09-06bgpd: Convert bgp_network.c to use flog_warnDonald Sharp
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-09-06bgpd: Convert zlog_warn to flog_warn for bgp_packet.cDonald Sharp
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-09-06bgpd: Convert bgp_dump.c to use flog_warnDonald Sharp
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-09-06bgpd: Convert zlog_warn to flog_warn for bgp_aspath.c and bgp_attr.cDonald Sharp
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-08-14*: rename ferr_ref -> log_refQuentin Young
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-08-14*: fix source file headers & includes for errcodesQuentin Young
* Use the correct license header * Stop headers from including themselves * Use uniform relative include conventions * Ensure that sources include what they use * Turn off clang-format around struct array blocks Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-08-14bgpd: Add some FLowspec specific Error Codes.Donald Sharp
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-08-14bgpd: Convert to using LIB_ERR_XXX where possibleDonald Sharp
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-08-14bgpd: implement zlog_ferr facility for enhance error messages in bgpDon Slice
Signed-off-by: Don Slice <dslice@cumulusnetworks.com<