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

Function tcp_path_init

modules/tcp_mgm/tcp_path.c:36–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35
36int tcp_path_init(void)
37{
38 tcp_paths_lk = lock_init_rw();
39 if (!tcp_paths_lk) {
40 LM_ERR("failed to create rw lock\n");
41 return -1;
42 }
43
44 tcp_paths_sz = shm_malloc(sizeof *tcp_paths_sz);
45 if (!tcp_paths_sz) {
46 LM_ERR("oom\n");
47 return -1;
48 }
49 *tcp_paths_sz = 0;
50
51 return 0;
52}
53
54
55int tcp_mgm_get_profile(const union sockaddr_union *remote,

Callers 1

mod_initFunction · 0.85

Calls 2

lock_init_rwFunction · 0.85
shm_mallocFunction · 0.85

Tested by

no test coverage detected