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

Function setbflag

dset.c:841–854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

839}
840
841int setbflag(struct sip_msg *msg, unsigned int b_idx, unsigned int mask)
842{
843 unsigned int *flags;
844
845 flags = get_ptr_bflags( msg, b_idx );
846#ifdef EXTRA_DEBUG
847 LM_DBG("bflags for %p : (%u, %u)\n", msg, mask, *flags);
848#endif
849 if (flags==0)
850 return -1;
851
852 (*flags) |= mask;
853 return 1;
854}
855
856
857/*! \brief

Callers 3

w_setbflagFunction · 0.85
msg_branch_flag_setFunction · 0.85
push_branchFunction · 0.85

Calls 1

get_ptr_bflagsFunction · 0.85

Tested by

no test coverage detected