Author: gkruse Date: 2006-09-12 07:22:59 +0200 (Tue, 12 Sep 2006) New Revision: 191 Modified: trunk/Sources/WaveDrivers/WaveDriverAirportExtreme.m Log: Maybe if we open the device in promisc mode, we will actually get data packets on the mac book. Please test and report. I don't have a mac book, but nothing bad happens when we open the device in promisc mode on my pbg4 Modified: trunk/Sources/WaveDrivers/WaveDriverAirportExtreme.m =================================================================== --- trunk/Sources/WaveDrivers/WaveDriverAirportExtreme.m 2006-09-11 04:46:44 UTC (rev 190) +++ trunk/Sources/WaveDrivers/WaveDriverAirportExtreme.m 2006-09-12 05:22:59 UTC (rev 191) @@ -263,13 +263,14 @@ _apeType = APExtTypeUnknown; } - _device = pcap_open_live([[defs objectForKey:@"bpfdevice"] cString], 3000, 0, 2, err); + //pcap_open_live(char *device,int snaplen, int prmisc,int to_ms,char *ebuf) + _device = pcap_open_live([[defs objectForKey:@"bpfdevice"] cString], 3000, 1, 2, err); if (!_device) { if (![[BLAuthentication sharedInstance] executeCommand:@"/usr/bin/chgrp" withArgs:[NSArray arrayWithObjects:@"admin", [defs objectForKey:@"bpfloc"], nil]]) return Nil; if (![[BLAuthentication sharedInstance] executeCommand:@"/bin/chmod" withArgs:[NSArray arrayWithObjects:@"0660", [defs objectForKey:@"bpfloc"], nil]]) return Nil; [NSThread sleep:0.5]; - _device = pcap_open_live([[defs objectForKey:@"bpfdevice"] cString], 3000, 0, 2, err); + _device = pcap_open_live([[defs objectForKey:@"bpfdevice"] cString], 3000, 1, 2, err); [[BLAuthentication sharedInstance] executeCommand:@"/usr/bin/chgrp" withArgs:[NSArray arrayWithObjects:@"wheel", [defs objectForKey:@"bpfloc"], nil]]; [[BLAuthentication sharedInstance] executeCommand:@"/bin/chmod" withArgs:[NSArray arrayWithObjects:@"0600", [defs objectForKey:@"bpfloc"], nil]];