MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / validate_update

Function validate_update

modules/clusterer/node_info.h:217–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217static inline int validate_update(int seq_no, int msg_seq_no, int timestamp,
218 int msg_timestamp, int val_type, int node_id)
219{
220 if (msg_seq_no == 0) {
221 if (seq_no == 0 && msg_timestamp <= timestamp)
222 return -1;
223 } else if (msg_seq_no <= seq_no)
224 return -1;
225
226 return 0;
227}
228
229#endif /* CL_NODE_INFO_H */
230

Callers 3

handle_cap_updateFunction · 0.85
handle_full_top_updateFunction · 0.85
handle_ls_updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected