pthread_condattr_destroy(&attrs);
// initialize peer hashtable
- peerhash = hash_create_size(2048, peer_hash_key, peer_hash_cmp);
+ peerhash = hash_create_size(2048, peer_hash_key, peer_hash_cmp, NULL);
}
static void bgp_keepalives_finish(void *arg)
uint32_t quanta =
atomic_load_explicit(&bgp->wpkt_quanta, memory_order_relaxed);
if (quanta != BGP_WRITE_PACKET_MAX)
- vty_out(vty, " write-quanta %d%s", quanta, VTY_NEWLINE);
+ vty_out(vty, " write-quanta %d\n", quanta);
}
void bgp_config_write_rpkt_quanta(struct vty *vty, struct bgp *bgp)
uint32_t quanta =
atomic_load_explicit(&bgp->rpkt_quanta, memory_order_relaxed);
if (quanta != BGP_READ_PACKET_MAX)
- vty_out(vty, " read-quanta %d%s", quanta, VTY_NEWLINE);
+ vty_out(vty, " read-quanta %d\n", quanta);
}
/* Packet quanta configuration */