Output a warning about kernel BPF JIT compiler beeing activated.
authorAnders Broman <anders.broman@ericsson.com>
Fri, 23 Aug 2013 05:25:30 +0000 (05:25 -0000)
committerAnders Broman <anders.broman@ericsson.com>
Fri, 23 Aug 2013 05:25:30 +0000 (05:25 -0000)
svn path=/trunk/; revision=51488

dumpcap.c
tshark.c

index 149c4d1bad5743a0406b1119e795cf182d9eefed..10cacbd941a97684526249e782e592ffda0e96f9 100644 (file)
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -551,7 +551,7 @@ print_usage(gboolean print_ver)
 #ifdef __linux__
     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, "By doing \"echo 0 > /proc/sys/net/core/bpf_jit_enable\"\n");
     fprintf(output, "\n");
 #endif
     fprintf(output, "Example: dumpcap -i eth0 -a duration:60 -w output.pcapng\n");
index 0343bec0b4a79a2aaeb79296e3b451a7a9545579..e3ce2bb1d24fc318f9abff9ebba185c0842d1c89 100644 (file)
--- 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