Skip to content

Commit

Permalink
Fix IPStats Privacy stance
Browse files Browse the repository at this point in the history
  • Loading branch information
huitema committed Mar 1, 2024
1 parent cd6b135 commit 8b19182
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ithitools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ static int usage()
fprintf(stderr, " -n number Number of strings in the list of leaking domains(M4).\n");
fprintf(stderr, " -N number Number of packets to read from this capture.\n");
fprintf(stderr, " -X Include TCP records in CBOR files.\n");
#ifdef PRIVACY_CONSCIOUS
fprintf(stderr, " -I ip-usage.csv Extract IP level statistics.\n");
#ifdef PRIVACY_CONSCIOUS
fprintf(stderr, " -A List all IP addresses and their usage in the report.\n");
fprintf(stderr, " -E List all DNS names found and their usage in the report.\n");
fprintf(stderr, " Options A and E are rather slow, and have privacy issues.\n");
Expand Down Expand Up @@ -286,11 +286,11 @@ int main(int argc, char ** argv)
case 'f':
stats.enable_frequent_address_filtering = true;
break;
#ifdef PRIVACY_CONSCIOUS
case 'I':
ip_stats_csv = optarg;
exit_code = check_execution_mode(ithi_mode_ipstats, &exec_mode);
break;
#ifdef PRIVACY_CONSCIOUS
case 'A':
stats.address_report = optarg;
break;
Expand Down
2 changes: 0 additions & 2 deletions test/ithi_test_class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,9 @@ ithi_test_class * ithi_test_class::TestByNumber(int number)
case test_enum_HyperLogLog:
test = new HyperLogLog_test();
break;
#ifdef PRIVACY_CONSCIOUS
case test_enum_IPStats:
test = new IPStatsTest();
break;
#endif
default:
break;
}
Expand Down

0 comments on commit 8b19182

Please sign in to comment.