summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2012-05-28 15:15:32 +0000
committererdgeist <>2012-05-28 15:15:32 +0000
commitae16a23ae09b78b78b5b0b21129e3ee014ae1e87 (patch)
tree97e1a463b50a1bc69885e449db94964262cdd3f5
parent44e004ac9aaa7cab4fd2f3d64ffecf0d188ac756 (diff)
Add connection id missmatch code
-rw-r--r--ot_stats.c3
-rw-r--r--ot_stats.h3
2 files changed, 5 insertions, 1 deletions
diff --git a/ot_stats.c b/ot_stats.c
index 39b8d69..5e7a9f3 100644
--- a/ot_stats.c
+++ b/ot_stats.c
@@ -59,6 +59,7 @@ static char * ot_failed_request_names[] = { "302 Redirect", "400 Par
59static unsigned long long ot_renewed[OT_PEER_TIMEOUT]; 59static unsigned long long ot_renewed[OT_PEER_TIMEOUT];
60static unsigned long long ot_overall_sync_count; 60static unsigned long long ot_overall_sync_count;
61static unsigned long long ot_overall_stall_count; 61static unsigned long long ot_overall_stall_count;
62static unsigned long long g_stats_connid_missmatches;
62 63
63static time_t ot_start_time; 64static time_t ot_start_time;
64 65
@@ -723,6 +724,8 @@ void stats_issue_event( ot_status_event event, PROTO_FLAG proto, uintptr_t event
723 pthread_mutex_unlock( &g_woodpeckers_mutex ); 724 pthread_mutex_unlock( &g_woodpeckers_mutex );
724 break; 725 break;
725#endif 726#endif
727 case EVENT_CONNID_MISSMATCH:
728 ++g_stats_connid_missmatches;
726 default: 729 default:
727 break; 730 break;
728 } 731 }
diff --git a/ot_stats.h b/ot_stats.h
index ffb5ad7..821bc2b 100644
--- a/ot_stats.h
+++ b/ot_stats.h
@@ -20,7 +20,8 @@ typedef enum {
20 EVENT_FULLSCRAPE, /* TCP only */ 20 EVENT_FULLSCRAPE, /* TCP only */
21 EVENT_FAILED, 21 EVENT_FAILED,
22 EVENT_BUCKET_LOCKED, 22 EVENT_BUCKET_LOCKED,
23 EVENT_WOODPECKER 23 EVENT_WOODPECKER,
24 EVENT_CONNID_MISSMATCH
24} ot_status_event; 25} ot_status_event;
25 26
26enum { 27enum {