<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-2022-jp">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN
class=094282608-07112006>Maybe there is a misunderstanding:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN class=094282608-07112006>I
want to retrieve the MAC-Address of the local network adapter, which I
opened with pcap_open_live.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN
class=094282608-07112006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN class=094282608-07112006>I
know the local IP-Address, but I cannot send an ARP-Request for my own
IP-Address, as I have</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN
class=094282608-07112006>to insert my own MAC-Address in the sender-field of the
message, which is unknown.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=094282608-07112006><FONT face=Arial size=2>Which possibility do
I have to retrieve the local MAC-Address?</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> winpcap-users-bounces@winpcap.org
[mailto:winpcap-users-bounces@winpcap.org] <B>Im Auftrag von </B>Eric
Hansen<BR><B>Gesendet:</B> Sonntag, 5. November 2006 14:31<BR><B>An:</B>
winpcap-users@winpcap.org<BR><B>Betreff:</B> Re: [Winpcap-users] Getting MAC
Address<BR></FONT><BR></DIV>
<DIV></DIV>"<SPAN id=intelliTXT name="intelliTxt"> This is done by sending ARP
packet. ARP packet is used to determine the host's MAC address when its IP
address is known. First ARP request packet is sent by specifying the source MAC
address, source IP address and destination IP Address. The ARP reply packet
contains the destination MAC address. This method also prevents the target host
from sending arp packet to source host when the source host sends the first SYN
packet during scanning process. From the ARP request packet that we have sent ,
target host will come to know about the MAC address of the source
host."<BR><BR>Source: <A
href="http://www.codeproject.com/internet/NagTPortScanner.asp">http://www.codeproject.com/internet/NagTPortScanner.asp</A><BR></SPAN><BR>
<DIV><SPAN class=gmail_quote>On 11/5/06, <B class=gmail_sendername>Wolf
Wolfgang</B> <<A
href="mailto:wolf@faps.uni-erlangen.de">wolf@faps.uni-erlangen.de</A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hello,<BR><BR>I'm
using pcap_...-Functions for sniffing and sending<BR>messages. But for sending
I need the MAC address of the<BR>opened connection (with
"pcap_open_live").<BR>How can I obtain this?<BR><BR>Thanks!
<BR><BR>Wolfgang<BR><BR><BR>_______________________________________________<BR>Winpcap-users
mailing list<BR><A
href="mailto:Winpcap-users@winpcap.org">Winpcap-users@winpcap.org</A><BR><A
href="https://www.winpcap.org/mailman/listinfo/winpcap-users">https://www.winpcap.org/mailman/listinfo/winpcap-users</A><BR></BLOCKQUOTE></DIV><BR><BR
clear=all><BR>-- <BR>さよう瘢雹今に<BR>君立ちで。。。愛瘢雹して<BR>私は二ィナァジョイビロヌを愛瘢雹 </BODY></HTML>