You simply reading my mind...
Yesterday I had finish development of PCAP based network interface for PearPC.

PCAP interface allow PearPC connect over the real Ethernet card like vmWare Workstation's or Virtual PC's bridged network.
For running PearPC over PCAP driver you have to install WinPCAP 4.0.2 first.
And for listing of PC network interfaces you should you pcap-list utility.
pcap-list.rar
- PCAP interface lister
- (2.44 KiB) Downloaded 1633 times
This utility produce output like that:
- Code: Select all
\Device\NPF_GenericDialupAdapter (Adapter for generic dialup and VPN capture)
\Device\NPF_{0007F387-533A-4475-A734-A370148B2781} (TAP-Win32 Adapter V8 (Microsoft's Packet Scheduler) )
\Device\NPF_{696E3F75-AB0A-4D05-A3EB-C7ECB3A9ECB9} (Marvell Yukon Ethernet Controller. (Microsoft's Packet Scheduler) )
In this example "\Device\NPF_{696E3F75-AB0A-4D05-A3EB-C7ECB3A9ECB9}" is a real Ethernet card name.
I have introduced new entries for configuration file:
pci_rtl8139_type and pci_3c90x_type - interface type "tap" or "pcap"
pci_rtl8139_interface and pci_3c90x_interface - interface name e.g. "\Device\NPF_{696E3F75-AB0A-4D05-A3EB-C7ECB3A9ECB9}"
I have tested PCAP connectivity so far with RTL8139 virtual ethernet card.
Example of configuration entry for RTL8139 to work with PCAP:
- Code: Select all
pci_rtl8139_installed = 1
pci_rtl8139_mac = "de:ad:ca:fe:12:34"
pci_rtl8139_type = "pcap"
pci_rtl8139_interface = "\Device\NPF_{696E3F75-AB0A-4D05-A3EB-C7ECB3A9ECB9}"
And code below show how to configure virtual card to work "old way":
- Code: Select all
pci_rtl8139_installed = 1
pci_rtl8139_mac = "de:ad:ca:fe:12:34"
pci_rtl8139_type = "tap"
pci_rtl8139_interface = ""
Entry "pci_rtl8139_interface" must be valid only for "pcap" connection.
Known issues:
- PCAP access may work not with Wi-Fi or BlueTooth connections. Use tap method in this case.
- When MacOS X produce packets bigger than MTU (1500 bytes), PCAP drive fail to send this packet. This cause error message while disconnecting of Windows share folder. This issue probably can be fixed later.
UPDATE:- MTU > 1500 issue is fixed.
- In my home encrypted Wi-Fi network PCAP connection
doesn't work! Please report if PCAP connection works in your Wi-Fi network!
- In my work network PCAP connection over Ethernet line also
doesn't work well. This issue may be fixed later... because at my home network this connection works fine...