Just get the MAC address of the default gateway (using IPHLPAPI). When
packet comes, change its MAC address to gateway MAC address and send it.

Daniel
----- Original Message ----- 
From: "Stanford .T. Mings Jr." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 09, 2003 7:56 AM
Subject: [WinPcap-users] forwarding packets...


> Hi,
>
> I am interested in writing a smart repeater(gateway ?) that will forward
> packets from one interface to the another and vice-versa.  Does anyone
have
> any source code snippets to do this ?  Howtos possibly ?
>
> stm
>
>
>
> ==================================================================
>  This is the WinPcap users list. It is archived at
>  http://www.mail-archive.com/[EMAIL PROTECTED]/
>
>  To unsubscribe use
>  mailto: [EMAIL PROTECTED]
> ==================================================================
>




==================================================================
 This is the WinPcap users list. It is archived at
 http://www.mail-archive.com/[EMAIL PROTECTED]/

 To unsubscribe use 
 mailto: [EMAIL PROTECTED]
==================================================================

Reply via email to