bgp_size_t length)
{
struct peer *const peer = args->peer;
+ struct attr *const attr = args->attr;
const uint8_t flags = args->flags;
/* startp and length must be special-cased, as whether or not to
* send the attribute data with the NOTIFY depends on the error,
*/
uint8_t *notify_datap = (length > 0 ? args->startp : NULL);
+ if (bgp_debug_update(peer, NULL, NULL, 1)) {
+ char attr_str[BUFSIZ] = {0};
+
+ bgp_dump_attr(attr, attr_str, BUFSIZ);
+
+ zlog_debug("%s: attributes: %s", __func__, attr_str);
+ }
+
/* Only relax error handling for eBGP peers */
if (peer->sort != BGP_PEER_EBGP) {
bgp_notify_send_with_data(peer, BGP_NOTIFY_UPDATE_ERR, subcode,