| 34 | |
| 35 | |
| 36 | int 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 | |
| 55 | int tcp_mgm_get_profile(const union sockaddr_union *remote, |
no test coverage detected