Hello everybody,
in preparation to my next patchset, which will enable clients to be detected from nodes in the network _before_ they are announced by means of the TT mechanism (more details will come within the companion email email of the related patchset), I'm sending this 4 patches that fix/clean up something here and there plus a little behaviour change in the OGM preparation.
In particular (for further details please refer to the commit message of each patch):
patch 1) changes the behaviour of how an OGM is built. Instead of preparing/building it at the same time we schedule it, this patch delays such operation to the instant before sending the message. This patch also introduce a new entry in the protocol API called ".bat_fill_ogm".
patch 2) in case of ADD and DEL events (or viceversa) of the same client during the same originator interval, such events can be both nullified instead of being sent.
patch 3) future operations will require to look for a particular originator in the orig_list of a global entry, therefore tt_global_entry_has_orig() is modified accordingly so that it returns the found originator, if any.
patch 4) updates the tt_global_entry ttvn in case of reannouncement of the same client.
patch 5) changes tt_global_Add() sign. We use to pass several boolean flags to this function that are then converted to the TT_CLIENT_* ones. This patch modifies the tt_global_add() sign so that we can directly pass a combination of TT_CLIENT_* flags instead of several boolean parameters.
Thank you, Antonio