diff options
author | Anders Broman <anders.broman@ericsson.com> | 2013-08-23 05:21:25 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2013-08-23 05:21:25 +0000 |
commit | f9aaaebdc8bd4b2eb5c726235543fe8eef1ec79c (patch) | |
tree | 6ffc476a17e9499f467962942cc035642621c12f /dumpcap.c | |
parent | 6880359a5f42c208f7ba2fe7af9703214c9cd1e9 (diff) |
Output a warning about kernel BPF JIT compiler beeing activated.
svn path=/trunk/; revision=51487
Diffstat (limited to 'dumpcap.c')
-rw-r--r-- | dumpcap.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -548,6 +548,12 @@ print_usage(gboolean print_ver) fprintf(output, " -v print version information and exit\n"); fprintf(output, " -h display this help and exit\n"); fprintf(output, "\n"); +#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, "\n"); +#endif fprintf(output, "Example: dumpcap -i eth0 -a duration:60 -w output.pcapng\n"); fprintf(output, "\"Capture packets from interface eth0 until 60s passed into output.pcapng\"\n"); fprintf(output, "\n"); |