31 #ifndef BROADCASTCOMMS_H_
32 #define BROADCASTCOMMS_H_
35 #define BROADCAST_MSG_HOPS_MAX 15
38 #define BROADCAST_MSG_MAX_TIMEOUT 4
110 void broadcastMsgUpdateLeaderElection(
BroadcastMessage* msgPtr, NbrList* nbrListPtr);
120 void broadcastMsgUpdateNbrData(
BroadcastMessage* msgPtr, NbrData* nbrDataPtr);
207 void nbrListPrintHops(NbrList* nbrListPtr,
BroadcastMessage* broadcastMessagePtr,
char* name);
218 NbrList* nbrListGetParents(NbrList* nbrListParents, NbrList* nbrListIn,
BroadcastMessage* msgPtr);
229 NbrList* nbrListGetSiblings(NbrList* nbrListSiblings, NbrList* nbrListIn,
BroadcastMessage* msgPtr);
240 NbrList* nbrListGetChildren(NbrList* nbrListChildren, NbrList* nbrListIn,
BroadcastMessage* msgPtr);
254 void nbrListPickParents(NbrList* ParentListOut1, NbrList* Parents, NbrList* Siblings,
BroadcastMessage* msgPtr);