Re: libpcap monitor_mode() handle s/EINVAL/ENOTTY/ for unknown ioctls

2015-02-14 Thread Jérémie Courrèges-Anglas
Makes sense, ok jca@ -- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE

Re: libpcap monitor_mode() handle s/EINVAL/ENOTTY/ for unknown ioctls

2015-02-14 Thread David Coppa
On Fri, Feb 13, 2015 at 6:19 PM, Stuart Henderson wrote: > In sys/net/if_media.c r1.19 (2007/12/20) the return code for unknown > ioctl requests was changed from EINVAL to ENOTTY. > > libpcap uses a SIOCGIFMEDIA to determine whether an interface can use > rfmon mode; this change breaks this. Notic

libpcap monitor_mode() handle s/EINVAL/ENOTTY/ for unknown ioctls

2015-02-13 Thread Stuart Henderson
In sys/net/if_media.c r1.19 (2007/12/20) the return code for unknown ioctl requests was changed from EINVAL to ENOTTY. libpcap uses a SIOCGIFMEDIA to determine whether an interface can use rfmon mode; this change breaks this. Noticed because wireshark doesn't identify the correct DLT for interface