update the statistics regading the final replies sent to UAC side * A single transaction may generate multiple updates on different * statistics if (1) there is a retransmission of the final reply or * (2) there are multiple final replies (like multi 200 OK) */
| 92 | * (2) there are multiple final replies (like multi 200 OK) |
| 93 | */ |
| 94 | inline static void stats_trans_rpl( int code, int local ) |
| 95 | { |
| 96 | stat_var *numerical_stat; |
| 97 | |
| 98 | if (tm_enable_stats) { |
| 99 | if (local) |
| 100 | update_stat( tm_loc_rpls, 1); |
| 101 | else |
| 102 | update_stat( tm_rld_rpls, 1); |
| 103 | |
| 104 | numerical_stat = |
| 105 | get_stat_var_from_num_code(code, 1); |
| 106 | |
| 107 | /* Increment the status code. */ |
| 108 | if (numerical_stat != NULL) |
| 109 | update_stat(numerical_stat, 1); |
| 110 | |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | inline static void stats_trans_new( int local ) { |
| 115 | if (tm_enable_stats) { |
no test coverage detected