#include "frescan_bandwidth_reservation.h"
#include "frescan_data.h"
#include "frescan_requests_queue.h" // frescan_requests_init
-#include "frescan_negotiator_thread.h" // frescan_negotiator_thread_create
#include "frescan_debug.h"
#include "frescan_config.h"
-#include "frescan_acceptor_threads.h"
#include "frescan_servers.h"
#include "frescan_negotiation_messages.h"
+#include "frescan_negotiation_threads.h"
/**
* frescan_bwres_init()
if (the_networks[net].local_node == FRESCAN_NEG_MASTER_NODE) {
DEBUG(FRESCAN_BWRES_ENABLE_DEBUG, "i am master node (%u)\n",
the_networks[net].local_node);
- ret = frescan_negotiator_thread_create(net);
+ ret = frescan_master_neg_thread_create(net);
if (ret != 0) {
ERROR("could not initialize the negotiator thread\n");
return ret;
* support several interfaces for the same network.
* @fd: file descriptor associated to /dev/canXX
* @repl_thread_id: replenishment thread id
- * @neg_thread_id: negotiator thread id (only master node has it)
+ * @neg_thread_id: master local negotiator thread id (only master node has it)
+ * @acceptor_thread_id: acceptor negotiation thread id (all nodes have one)
* @neg_messages_ss_id: sporadic server for negotiation messages
* @queues: the queues of this network instance
* @last_packet: pointer to the last packet from which a frame was inserted
int fd;
fosa_thread_id_t repl_thread_id;
fosa_thread_id_t neg_thread_id;
+ fosa_thread_id_t acceptor_thread_id;
frescan_ss_t neg_messages_ss_id;
frescan_queues_t queues;
frescan_packet_t *last_packet;