fprintf(output, "\t-s secret\tRADIUS secret.\n");
fprintf(output, "\t-S\t\tSort attributes in the packet.\n");
fprintf(output, "\t\t\tUsed to compare server results.\n");
+ fprintf(output, "\t-w file\tWrite output packets to file.\n");
fprintf(output, "\t-x\t\tPrint out debugging information.\n");
exit(status);
}
char *pcap_filter = NULL;
char *radius_filter = NULL;
char *filename = NULL;
+ int printable_output = 1;
char *dump_file = NULL;
int packet_count = -1; /* how many packets to sniff */
int opt;
break;
case 'F':
filter_stdin = 1;
+ printable_output = 0;
break;
case 'f':
pcap_filter = optarg;
break;
case 'w':
dump_file = optarg;
+ printable_output = 0;
break;
case 'x':
case 'X': /* for backwards compatibility */
}
/*
- * There are many times where we don't need the dictionaries.
+ * There are times when we don't need the dictionaries.
*/
- if (fr_debug_flag || radius_filter) {
+ if (printable_output) {
if (dict_init(radius_dir, RADIUS_DICTIONARY) < 0) {
fr_perror("radsniff");
return 1;