[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


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


Muhamad Rendra

More information about the Winpcap-users mailing list