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

Function resetbflag

dset.c:878–891  ·  view source on GitHub ↗

! \brief * Resets the per branch flags */

Source from the content-addressed store, hash-verified

876 * Resets the per branch flags
877 */
878int resetbflag(struct sip_msg *msg, unsigned int b_idx, unsigned int mask)
879{
880 unsigned int *flags;
881
882 flags = get_ptr_bflags( msg, b_idx );
883#ifdef EXTRA_DEBUG
884 LM_DBG("bflags for %p : (%u, %u)\n", msg, mask, *flags);
885#endif
886 if (flags==0)
887 return -1;
888
889 (*flags) &= ~mask;
890 return 1;
891}
892
893
894int get_msg_branch_attr(unsigned int b_idx, int name_id,

Callers 2

w_resetbflagFunction · 0.85
msg_branch_flag_setFunction · 0.85

Calls 1

get_ptr_bflagsFunction · 0.85

Tested by

no test coverage detected