aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-08-23 05:25:30 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-08-23 05:25:30 +0000
commit71f7093cf3a81be8870086c9e9817aa87c4de02a (patch)
tree56517b2d298c68b70c488cd387da5258687074d8 /tshark.c
parentf9aaaebdc8bd4b2eb5c726235543fe8eef1ec79c (diff)
Output a warning about kernel BPF JIT compiler beeing activated.
svn path=/trunk/; revision=51488
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tshark.c b/tshark.c
index 0343bec0b4..e3ce2bb1d2 100644
--- a/tshark.c
+++ b/tshark.c
@@ -352,6 +352,14 @@ print_usage(gboolean print_ver)
fprintf(output, " -G [report] dump one of several available reports and exit\n");
fprintf(output, " default report=\"fields\"\n");
fprintf(output, " use \"-G ?\" for more help\n");
+#ifdef __linux__
+ fprintf(output, "\n");
+ fprintf(output, "WARNING: dumpcap will enable kernel BPF JIT compiler if available.\n");
+ fprintf(output, "You might want to reset it\n");
+ fprintf(output, "By doing \"echo 0 > /proc/sys/net/core/bpf_jit_enable\"\n");
+ fprintf(output, "\n");
+#endif
+
}
static void