commit | e6408a8ca29502f8069b3b620f1bd13600ee795e | [log] [tgz] |
---|---|---|
author | Guy Harris <guy@alum.mit.edu> | Wed Apr 10 16:11:41 2013 -0700 |
committer | Guy Harris <guy@alum.mit.edu> | Wed Apr 10 16:11:41 2013 -0700 |
tree | 58d0525d2a8809079307468b801e16f0b46567f2 | |
parent | ed88379764e5bfa754df224d6293793c0802654b [diff] |
Use raw ioctls or setsockopts to set the bad filters. That guarantees that libpcap doesn't test the filter and decide the kernel can't handle it, or attempt to fix it to work as a kernel filter, and also avoids warnings from libpcap looking at the filter rather than the system call looking at the filter.