Lines Matching defs:sip_counters
49 sip_traffic_counters_t sip_counters;
66 assert(mutex_held(&sip_counters.sip_counter_mutex));
69 sip_counters.sip_total_bytes_sent += msg_size;
71 sip_counters.sip_total_bytes_rcvd += msg_size;
75 ++sip_counters.sip_total_req_sent;
77 ++sip_counters.sip_total_req_rcvd;
81 ++sip_counters.sip_invite_req_sent;
83 ++sip_counters.sip_invite_req_rcvd;
87 ++sip_counters.sip_ack_req_sent;
89 ++sip_counters.sip_ack_req_rcvd;
93 ++sip_counters.sip_options_req_sent;
95 ++sip_counters.sip_options_req_rcvd;
99 ++sip_counters.sip_bye_req_sent;
101 ++sip_counters.sip_bye_req_rcvd;
105 ++sip_counters.sip_cancel_req_sent;
107 ++sip_counters.sip_cancel_req_rcvd;
111 ++sip_counters.sip_register_req_sent;
113 ++sip_counters.sip_register_req_rcvd;
117 ++sip_counters.sip_refer_req_sent;
119 ++sip_counters.sip_refer_req_rcvd;
123 ++sip_counters.sip_info_req_sent;
125 ++sip_counters.sip_info_req_rcvd;
129 ++sip_counters.sip_subscribe_req_sent;
131 ++sip_counters.sip_subscribe_req_rcvd;
135 ++sip_counters.sip_notify_req_sent;
137 ++sip_counters.sip_notify_req_rcvd;
141 ++sip_counters.sip_prack_req_sent;
143 ++sip_counters.sip_prack_req_rcvd;
150 ++sip_counters.sip_total_resp_sent;
152 ++sip_counters.sip_total_resp_rcvd;
155 ++sip_counters.sip_1xx_resp_sent;
157 ++sip_counters.sip_1xx_resp_rcvd;
160 ++sip_counters.sip_2xx_resp_sent;
162 ++sip_counters.sip_2xx_resp_rcvd;
165 ++sip_counters.sip_3xx_resp_sent;
167 ++sip_counters.sip_3xx_resp_rcvd;
170 ++sip_counters.sip_4xx_resp_sent;
172 ++sip_counters.sip_4xx_resp_rcvd;
175 ++sip_counters.sip_5xx_resp_sent;
177 ++sip_counters.sip_5xx_resp_rcvd;
180 ++sip_counters.sip_6xx_resp_sent;
182 ++sip_counters.sip_6xx_resp_rcvd;
449 (void) pthread_mutex_lock(&sip_counters.sip_counter_mutex);
452 *(uint64_t *)cntval = sip_counters.sip_total_bytes_rcvd;
455 *(uint64_t *)cntval = sip_counters.sip_total_bytes_sent;
458 *(uint64_t *)cntval = sip_counters.sip_total_req_rcvd;
461 *(uint64_t *)cntval = sip_counters.sip_total_req_sent;
464 *(uint64_t *)cntval = sip_counters.sip_total_resp_rcvd;
467 *(uint64_t *)cntval = sip_counters.sip_total_resp_sent;
470 *(uint64_t *)cntval = sip_counters.sip_ack_req_rcvd;
473 *(uint64_t *)cntval = sip_counters.sip_ack_req_sent;
476 *(uint64_t *)cntval = sip_counters.sip_bye_req_rcvd;
479 *(uint64_t *)cntval = sip_counters.sip_bye_req_sent;
482 *(uint64_t *)cntval = sip_counters.sip_cancel_req_rcvd;
485 *(uint64_t *)cntval = sip_counters.sip_cancel_req_sent;
488 *(uint64_t *)cntval = sip_counters.sip_info_req_rcvd;
491 *(uint64_t *)cntval = sip_counters.sip_info_req_sent;
494 *(uint64_t *)cntval = sip_counters.sip_invite_req_rcvd;
497 *(uint64_t *)cntval = sip_counters.sip_invite_req_sent;
500 *(uint64_t *)cntval = sip_counters.sip_notify_req_rcvd;
503 *(uint64_t *)cntval = sip_counters.sip_notify_req_sent;
506 *(uint64_t *)cntval = sip_counters.sip_options_req_rcvd;
509 *(uint64_t *)cntval = sip_counters.sip_options_req_sent;
512 *(uint64_t *)cntval = sip_counters.sip_prack_req_rcvd;
515 *(uint64_t *)cntval = sip_counters.sip_prack_req_sent;
518 *(uint64_t *)cntval = sip_counters.sip_refer_req_rcvd;
521 *(uint64_t *)cntval = sip_counters.sip_refer_req_sent;
524 *(uint64_t *)cntval = sip_counters.
528 *(uint64_t *)cntval = sip_counters.
532 *(uint64_t *)cntval = sip_counters.
536 *(uint64_t *)cntval = sip_counters.
540 *(uint64_t *)cntval = sip_counters.sip_update_req_rcvd;
543 *(uint64_t *)cntval = sip_counters.sip_update_req_sent;
546 *(uint64_t *)cntval = sip_counters.sip_1xx_resp_rcvd;
549 *(uint64_t *)cntval = sip_counters.sip_1xx_resp_sent;
552 *(uint64_t *)cntval = sip_counters.sip_2xx_resp_rcvd;
555 *(uint64_t *)cntval = sip_counters.sip_2xx_resp_sent;
558 *(uint64_t *)cntval = sip_counters.sip_3xx_resp_rcvd;
561 *(uint64_t *)cntval = sip_counters.sip_3xx_resp_sent;
564 *(uint64_t *)cntval = sip_counters.sip_4xx_resp_rcvd;
567 *(uint64_t *)cntval = sip_counters.sip_4xx_resp_sent;
570 *(uint64_t *)cntval = sip_counters.sip_5xx_resp_rcvd;
573 *(uint64_t *)cntval = sip_counters.sip_5xx_resp_sent;
576 *(uint64_t *)cntval = sip_counters.sip_6xx_resp_rcvd;
579 *(uint64_t *)cntval = sip_counters.sip_6xx_resp_sent;
582 *(time_t *)cntval = sip_counters.starttime;
585 *(time_t *)cntval = sip_counters.stoptime;
588 (void) pthread_mutex_unlock(&sip_counters.
592 (void) pthread_mutex_unlock(&sip_counters.sip_counter_mutex);
605 (void) pthread_mutex_lock(&sip_counters.sip_counter_mutex);
607 if (!sip_counters.enabled) {
609 (void) bzero(&sip_counters, sizeof (sip_traffic_counters_t) -
611 sip_counters.enabled = B_TRUE;
612 sip_counters.starttime = time(NULL);
613 sip_counters.stoptime = 0;
615 (void) pthread_mutex_unlock(&sip_counters.sip_counter_mutex);
628 (void) pthread_mutex_lock(&sip_counters.sip_counter_mutex);
629 if (sip_counters.enabled) {
630 sip_counters.enabled = B_FALSE;
631 sip_counters.stoptime = time(NULL);
633 (void) pthread_mutex_unlock(&sip_counters.sip_counter_mutex);