[kismac] Re: [binaervarianz] r191 - trunk/Sources/WaveDrivers
- From: Nicholas David McKinney <nickfrommaryland@xxxxxxxxx>
- To: kismac@xxxxxxxxxxxxx
- Date: Tue, 12 Sep 2006 01:58:04 -0400
It seems think that there are some data packets, but they don't seem
to be right. I started generating a storm of traffic on the network
but that did not seem to do much. On the plus side, nothing broke.
Using a MBP (not sure if that makes a difference, but I'll report
just the same)
On 12 Sep 2006, at 1:23 AM, svn@xxxxxxxxxxxxxxxx wrote:
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]];
- Follow-Ups:
- References:
Other related posts:
- » [kismac] [binaervarianz] r191 - trunk/Sources/WaveDrivers
- » [kismac] Re: [binaervarianz] r191 - trunk/Sources/WaveDrivers
- » [kismac] Re: [binaervarianz] r191 - trunk/Sources/WaveDrivers
- » [kismac] Re: [binaervarianz] r191 - trunk/Sources/WaveDrivers
- » [kismac] Re: [binaervarianz] r191 - trunk/Sources/WaveDrivers
- » [kismac] Re: [binaervarianz] r191 - trunk/Sources/WaveDrivers
- » [kismac] Re: [binaervarianz] r191 - trunk/Sources/WaveDrivers
- » [kismac] Re: [binaervarianz] r191 - trunk/Sources/WaveDrivers
- » [kismac] Re: [binaervarianz] r191 - trunk/Sources/WaveDrivers
- » [kismac] Re: [binaervarianz] r191 - trunk/Sources/WaveDrivers
- » [kismac] Re: [binaervarianz] r191 - trunk/Sources/WaveDrivers
- » [kismac] Re: [binaervarianz] r191 - trunk/Sources/WaveDrivers
- » [kismac] Re: [binaervarianz] r191 - trunk/Sources/WaveDrivers
On 12 Sep 2006, at 1:23 AM, svn@xxxxxxxxxxxxxxxx wrote:
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]];