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

Function get_bl_marker

blacklists.c:118–128  ·  view source on GitHub ↗

* get_bl_marker() and store_bl_marker(): * easy manipulation of the blacklist bitmask stored in global context */

Source from the content-addressed store, hash-verified

116 * easy manipulation of the blacklist bitmask stored in global context
117 */
118static int get_bl_marker(unsigned int *marker)
119{
120 if (!current_processing_ctx)
121 return -1;
122
123 if (marker)
124 *marker = (unsigned int)context_get_int(
125 CONTEXT_GLOBAL, current_processing_ctx, bl_ctx_idx);
126
127 return 0;
128}
129
130#define store_bl_marker(value) \
131 (context_put_int( \

Callers 3

mark_for_searchFunction · 0.85
reset_bl_markersFunction · 0.85
check_against_blacklistFunction · 0.85

Calls 1

context_get_intFunction · 0.85

Tested by

no test coverage detected