ADTF_DEVICE_TOOLBOX  3.12.1 (ADTF 3.18.3)
PCap BPF Ethernet Reducer Plugin

PCap BPF Ethernet Reducer

Note
The PCap BPF Ethernet Reducer uses libpcap to filter raw ethernet frames. Due to licensing issues the pcap library is not part of the the Device Toolbox - to be able to use the PCap BPF Ethernet Reducer make sure that libpcap is installed on your system. On Linux this is usually a matter of installing the libpcap package provided by your distribution.

Windows users can choose from a number of PCap implementations such as npcap, winpcap or win10pcap. With Wireshark installed and working on your Windows system there is a good chance that the PCap BPF Ethernet Reducer will work, too.

Plugin Information
Plugin Filenamepcap_bpf_ethernet_reducer.adtfplugin
Plugin Descriptionpcap_bpf_ethernet_reducer.plugindescription
Plugin NamePCap BPF Ethernet Reducer Plugin
LicenseADTF
Support Mailsupport@digitalwerk.net
Homepage URLwww.digitalwerk.net
Plugin Versions
Plugin Version3.12.1
Plugin File Version1.0
adtf::devicetb3.12.1
adtf3.18.3
adtf::ucom3.1.0
Component Information
NamePCap BPF Ethernet Reducer
CIDpcap_bpf_ethernet_reducer.filter.devicetb.cid
DescriptionUse this filter to output only a subset of the incoming raw ethernet stream by using a Berkeley Packet Filter.
TypeFilter
Properties
NameValueTypeDescriptionSubproperties
berkeley_packet_filtercStringDefinition of the subset to filter.
Input Pins
NameStream TypeDescription
ethernet_in adtf/devicetb/ethernet Sample stream containing raw ethernet samples to create a subset of.
Output Pins
NameStream TypeDescription
ethernet_out adtf/devicetb/ethernet Provides the filtered subset of raw ethernet samples.
Runner
NameActivation TypeData TriggeredData InputThread TriggeredThread CyclicTimer TriggeredTimer IntervalDescription
process_ethernet_in91ethernet_in0000Default runner port for the input pin 'ethernet_in'
Dynamic Pins
Dynamic Input Pinsfalse
Dynamic Output Pinsfalse
Dynamic Input Binding Pinsfalse
Dynamic Output Binding Pinsfalse
Required Interfaces
IID
reference_clock.flash.streaming.adtf.iid
Input Pin Stream Types
Pin Nameethernet_in
Meta Type Nameadtf/devicetb/ethernet
Stream Type Properties
NameValueTypeDescriptionSubproperties
md_data_serializedtruetBool
md_definitions
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<adtf:ddl xmlns:adtf="adtf">
<structs>
<struct name="tEthernetSampleHeader" version="1" ddlversion="4.0">
<element name="tmTimestampBeginNs" type="tInt64" arraysize="1">
<deserialized alignment="1"/>
<serialized bytepos="0" byteorder="LE"/>
</element>
<element name="tmTimestampEndNs" type="tInt64" arraysize="1">
<deserialized alignment="1"/>
<serialized bytepos="8" byteorder="LE"/>
</element>
<element name="nErrorCode" type="tInt32" arraysize="1">
<deserialized alignment="1"/>
<serialized bytepos="16" byteorder="LE"/>
</element>
<element name="nFrameCheckSequence" type="tUInt32" arraysize="1">
<deserialized alignment="1"/>
<serialized bytepos="20" byteorder="LE"/>
</element>
<element name="nFrameSize" type="tUInt32" arraysize="1">
<deserialized alignment="1"/>
<serialized bytepos="24" byteorder="LE"/>
</element>
<element name="aFrameData" type="tUInt8" arraysize="nFrameSize">
<deserialized alignment="1"/>
<serialized bytepos="28" byteorder="LE"/>
</element>
</struct>
</structs>
</adtf:ddl>
cString
md_structtEthernetSampleHeadercString
Output Pin Stream Types
Pin Nameethernet_out
Meta Type Nameadtf/devicetb/ethernet
Stream Type Properties
NameValueTypeDescriptionSubproperties
md_data_serializedtruetBool
md_definitions
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<adtf:ddl xmlns:adtf="adtf">
<structs>
<struct name="tEthernetSampleHeader" version="1" ddlversion="4.0">
<element name="tmTimestampBeginNs" type="tInt64" arraysize="1">
<deserialized alignment="1"/>
<serialized bytepos="0" byteorder="LE"/>
</element>
<element name="tmTimestampEndNs" type="tInt64" arraysize="1">
<deserialized alignment="1"/>
<serialized bytepos="8" byteorder="LE"/>
</element>
<element name="nErrorCode" type="tInt32" arraysize="1">
<deserialized alignment="1"/>
<serialized bytepos="16" byteorder="LE"/>
</element>
<element name="nFrameCheckSequence" type="tUInt32" arraysize="1">
<deserialized alignment="1"/>
<serialized bytepos="20" byteorder="LE"/>
</element>
<element name="nFrameSize" type="tUInt32" arraysize="1">
<deserialized alignment="1"/>
<serialized bytepos="24" byteorder="LE"/>
</element>
<element name="aFrameData" type="tUInt8" arraysize="nFrameSize">
<deserialized alignment="1"/>
<serialized bytepos="28" byteorder="LE"/>
</element>
</struct>
</structs>
</adtf:ddl>
cString
md_structtEthernetSampleHeadercString

Reference setup

Tested with win10pcap Version 10.2.5002, npcap Version 0.9995, Wireshark Version 3.2.5