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

Function fixup_blacklist_ip

core_cmds.c:616–629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614}
615
616static int fixup_blacklist_ip(void** param)
617{
618 str *s = (str*)*param;
619 struct ip_addr *ip_pkg;
620 struct ip_addr *ip = str2ip(s);
621 if (!ip)
622 return E_BAD_ADDRESS;
623 ip_pkg = pkg_malloc(sizeof *ip_pkg);
624 if (!ip_pkg)
625 return E_OUT_OF_MEM;
626 memcpy(ip_pkg, ip, sizeof *ip_pkg);
627 *param = ip_pkg;
628 return 0;
629}
630
631static int fixup_check_wrvar(void** param)
632{

Callers

nothing calls this directly

Calls 1

str2ipFunction · 0.85

Tested by

no test coverage detected