[Winpcap-users] How to get the mac of the gateway ?

M.Rendra m.rendra at rendra.net
Fri Mar 21 02:20:57 GMT 2008


On Wed, Mar 19, 2008 at 5:06 PM, Frank <frankyuelife at gmail.com> wrote:
>      Hi, everyone !  First, please allow me  to say sorry about my question
> which is irrelevant to WinPcap. I, however, really need to know how to get
> the mac of the gateway  with code ;) .Remember you can not use the lib of
> WinPcap.  I am looking forward to your early reply. Thanks !

You can use WinPcap to send ARP query and wait for ARP response

or

you can call SendARP (which is easier). for more info about SendARP, visit

http://msdn2.microsoft.com/en-us/library/aa366358(VS.85).aspx


-- 
Muhamad Rendra
http://rendra.net/


More information about the Winpcap-users mailing list