OpcLabs.Pcap communication package
You need to use the OpcLabs.Pcap communication package (the OpcLabs.Pcap assembly and its dependencies) for following purposes:
- OPC UA PubSub Ethernet transport (the "opc.eth" scheme).
- OPC UA PubSub reading or writing Wireshark capture files.
See also: Using communication packages.
OpcLabs.Pcap depends on SharpPcap and PacketDotNet libraries that are licensed under LGPL.
The OpcLabs.Pcap assembly is not strong-named.
QuickOPC assemblies (such as OpcLabs.EasyOpcUA) do not reference the OpcLabs.Pcap assembly (they cannot - because they are strong-named but OpcLabs.Pcap is not). This means that by default, OpcLabs.Pcap will not become part of your project output, even if your code uses the features for which it is needed. It is your responsibility to make sure that a copy of OpcLabs.Pcap assembly and its dependencies is available to your app when it runs.
We recommend that you yourself put a reference to the OpcLabs.Pcap assembly to your project in such cases. When built by Visual Studio, the OpcLabs.Pcap assembly and its assembly dependencies (transitively) will be copied to the project's output directory. In most hosting environments, this is sufficient for the OpcLabs.Pcap assembly be found in runtime (at least when the current directory is the directory where the program binaries reside). In some cases, this approach will not work, and you will need to take additional steps to make sure that the OpcLabs.Pcap assembly and its dependencies are copied to their destination, and properly located in runtime when QuickOPC attempts to load them.
OpcLabs.Pcap depends on SharpPcap and PacketDotNet assemblies; they, in turn, may depend on other assemblies as well.
For live packet capture (OPC UA PubSub Ethernet mapping), OpcLabs.Pcap has (through SharpPcap) additional dependencies:
- On Windows, it requires the WinPcap (old) or Npcap (new) driver. Npcap download page.
- On Linux, it requires the libpcap library. On some Linux systems, the library is preinstalled. Libpcap project page.
Refer to the SharpPcap project page for more information.