<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE type=text/css>DIV {
        MARGIN: 0px
}
</STYLE>
<META content="MSHTML 6.00.2800.1589" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=311525116-09052007><FONT face=Arial
color=#800080 size=2>My guess would be the fact your trouble is coming from the
fact that the packet is going out over the wireless interface. The NIC
driver does encapsulation and de-encapsulation between standard ethernet
framing, and 802.11 framing. It's just a guess, but the wireless driver is
ignoring your 'invalid' MAC address when encapsulating packets between
Ethernet_II and 802.11 framing.</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#800080 size=2></FONT> </DIV>
<DIV><SPAN class=311525116-09052007><FONT face=Arial color=#800080 size=2>I know
of no API which would allow you to directly craft 802.11
packets.</FONT></SPAN></DIV><!-- Converted from text/plain format -->
<P><FONT size=2>---<BR>Steighton
Haley
shaley@mcafee.com<BR>Software Engineer<BR><BR>"Why do nerds confuse Halloween
and Christmas? Because OCT31=DEC25"</FONT> </P>
<DIV> </DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #800080 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> winpcap-users-bounces@winpcap.org
[mailto:winpcap-users-bounces@winpcap.org] <B>On Behalf Of </B>eddie
harari<BR><B>Sent:</B> Wednesday, May 09, 2007 5:44 AM<BR><B>To:</B>
winpcap-users@winpcap.org<BR><B>Subject:</B> [Winpcap-users] Technical 802.11
question - winpcap related<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV>Hi , </DIV>
<DIV> </DIV>
<DIV> I have the folowing question trubling me and i cant seem to
find an answer for it:</DIV>
<DIV> </DIV>
<DIV> I was able to inject packets to my wireless network using winpcap
llibrary and some C source code i wrote under cygwin.</DIV>
<DIV> </DIV>
<DIV> my problem is that i could not change my MAC address in the packets
i send, technically speaking all i do is make a "frame format" buffer , i put
</DIV>
<DIV> the correct values in it and then i send it over the wireless
interface. </DIV>
<DIV> when i put another MAC ADDRESS insted of my real MAC address , the
packet will be ignored by the AP ( i guess ).</DIV>
<DIV> </DIV>
<DIV> what i am trying to understand:</DIV>
<DIV> </DIV>
<DIV> 1. the buffer i provide is basically like an ethernet frame
format. I do not try to control the 802.11 frame format. ( i dont know
how to take control over it with the current API ). Is there something
in the 802.11 frame header that will cause my </DIV>
<DIV>"crafted" packets to be ignored when i fake my mac address ?</DIV>
<DIV> </DIV>
<DIV> 2. anyone knows of an API that will give me control on the 802.11
frame header ?</DIV>
<DIV> </DIV>
<DIV> thanks , </DIV>
<DIV> </DIV>
<DIV>Eddie.</DIV>
<DIV> </DIV></DIV><BR>
<HR SIZE=1>
Now that's room service! <A
href="http://travel.yahoo.com/hotelsearchpage;_ylc=X3oDMTFtaTIzNXVjBF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzIEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw--">Choose
from over 150,000 hotels <BR>in 45,000 destinations on Yahoo! Travel</A> to
find your fit.</BLOCKQUOTE></BODY></HTML>