Until now, packet.dll has been used as the hardware-specific part of
WinPcap. It's able to detect adapters from different sources (registry, IP
Helper API, static definitions) and it supports packet capture from three
sources: the NPF driver, the Dag driver (for Endace cards) and the Netmon
API (for PPP links). Everything is exported to the upper layers through a
common interface, so that libpcap doesn't see any difference (almost,
because the packets from the Endace cards have a different header and need
to be navigated in a different way).
Of course, the solution that you propose is more elegant and modular, but I
think it requires quite a lot of work, and in particular a lot of testing:
current winpcap is very stable because it's the result of a long-time
refinement process; radical changes according to our experience break this
process and require a long alpha-beta period, normally no less than a year,
to be ready for the users. Who's going to do all this work?

Loris


> Hello WinPcap team,
>    have not you thought about any common way for support of other than
NDIS drivers?
>
> My ideas are (see attached file):
>
> 1) support for user extension drivers providing the same interface as
npf.sys
>
> 2) support for user extension DLLs providing the interface similar to
calling npf.sys with
> CreateFile/CloseHandle/ReadFile/WriteFile/DeviceIoControl functions
>
> 3) mapping of rpcap devices to dummy local devices (it is not real
extension)
>
>
> All those extensions could be configurable with ini-file (or with
registry).
> E.g.:
> ----------
> [Driver Extensions]
> DrvExt1=/Device/my_device1, My Device 1 description
> DrvExt2=/Device/my_device2, My Device 2 description
>
> [Dll Extensions]
> ; /Device/... are only dummy devices
> DllExt1=/Device/my_device3, my_stub3.dll, My Device 3 description
> DllExt2=/Device/my_device4, my_stub4.dll, My Device 4 description
>
> [Rpcap Mappings]
> ; /Device/... are only dummy devices
> ; descriptions are taken from remote devices
> Rmap1=/Device/my_device5, rpcap://10.11.12.13/device1
> Rmap2=/Device/my_device6, rpcap://user:[EMAIL PROTECTED]/device1
> Rmap3=/Device/prefix_*, rpcap://10.11.12.13/*  ; map all remote devices
>
>
> It is only very short explanation of my idea.
> What you think about it?
>
>    Regards,
>      Tomas
>




==================================================================
 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