projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f865232
)
Remove port 1814 from the default pcap filter. It isn't necessary
author
Alan T. DeKok
<aland@freeradius.org>
Tue, 7 Sep 2010 20:36:04 +0000
(22:36 +0200)
committer
Alan T. DeKok
<aland@freeradius.org>
Thu, 9 Sep 2010 11:12:08 +0000
(13:12 +0200)
src/main/radsniff.c
patch
|
blob
|
history
diff --git
a/src/main/radsniff.c
b/src/main/radsniff.c
index
d5c4256
..
f2385ee
100644
(file)
--- a/
src/main/radsniff.c
+++ b/
src/main/radsniff.c
@@
-306,7
+306,7
@@
static void NEVER_RETURNS usage(int status)
fprintf(output, "options:\n");
fprintf(output, "\t-c count\tNumber of packets to capture.\n");
fprintf(output, "\t-d directory\tDirectory where the dictionaries are found\n");
fprintf(output, "options:\n");
fprintf(output, "\t-c count\tNumber of packets to capture.\n");
fprintf(output, "\t-d directory\tDirectory where the dictionaries are found\n");
- fprintf(output, "\t-f filter\tPCAP filter. (default is udp port 1812 or 1813
or 1814
)\n");
+ fprintf(output, "\t-f filter\tPCAP filter. (default is udp port 1812 or 1813)\n");
fprintf(output, "\t-h\t\tPrint this help message.\n");
fprintf(output, "\t-i interface\tInterface to capture.\n");
fprintf(output, "\t-I filename\tRead packets from filename.\n");
fprintf(output, "\t-h\t\tPrint this help message.\n");
fprintf(output, "\t-i interface\tInterface to capture.\n");
fprintf(output, "\t-I filename\tRead packets from filename.\n");
@@
-396,14
+396,14
@@
int main(int argc, char *argv[])
if (!pcap_filter) {
pcap_filter = buffer;
if (!pcap_filter) {
pcap_filter = buffer;
- snprintf(buffer, sizeof(buffer), "udp port %d or %d or %d",
- port, port + 1, port + 2);
+ snprintf(buffer, sizeof(buffer), "udp port %d or %d",
+ port, port + 1);
+ }
+
+ if (dict_init(radius_dir, RADIUS_DICTIONARY) < 0) {
+ fr_perror("radsniff");
+ return 1;
}
}
-
- if (dict_init(radius_dir, RADIUS_DICTIONARY) < 0) {
- fr_perror("radsniff");
- return 1;
- }
if (radius_filter) {
parsecode = userparse(radius_filter, &filter_vps);
if (radius_filter) {
parsecode = userparse(radius_filter, &filter_vps);