[Winpcap-users] Using WinPcap for packet translation
Loris Degioanni
loris.degioanni at gmail.com
Fri Dec 9 18:15:21 GMT 2005
Accessing the Ethernet header is default with WinPcap. Just download the
developer's pack and you'll find many examples to do it.
Bridging is a slightly more complicated problem, because of loopback
issues (WinPcap capturing back what he's just sent) that are not easy to
control in current version.
Next version will have better support for these problems.
Loris
Gary Berkheiser wrote:
> Greetings all,
>
> I have an interesting and seemingly simple application
> to write. My timeframe is short, so I don't want to
> delve into the bowels of Windows if I can avoid it.
> Also the application is of a "throw away" nature, it
> should only have about a year of use.
>
> I need to run a "packet translator" within a PC. The
> PC has a client app that will talk via PPPoE. My app
> will act as a PPPoE server and handle all the PPPoE
> handshaking. On the other end, it will convert the
> PPPoE payloads to UDP and send them to the device on
> the other end of the Ethernet cable. It will, in
> turn, receive the UDP packets from the other device
> and reconstruct them as PPPoE. The actual conversion
> looks simple and will code up quickly. My problem is
> in getting access to the full Ethernet header which is
> where a capture program comes into play.
> Can this be done (reasonably quickly)?
>
> TIA,
> Gary Berkheiser
>
>
>
>
>
> __________________________________________
> Yahoo! DSL – Something to write home about.
> Just $16.99/mo. or less.
> dsl.yahoo.com
>
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users
>
More information about the Winpcap-users
mailing list