5.6. Berkeley Packet Filter - emllBPF
The Ethernet Driver BPF is always part of the EC-Master for QNX package. It uses already established Ethernet adapters, e.g. wm0, rt0, etc. It is strongly recommended to use a separate network adapter to connect EtherCAT® network adapters. If the main network adapter is used for both EtherCAT® network adapters and the local area network there may be a major impact on the local area network operation.
Note
The BPF Ethernet Driver cannot be used for real time applications and may need cycle time of 1 ms or higher.
The parameters to the Ethernet Driver BPF are setup-specific. The function CreateLinkParmsFromCmdLineBPF() in EcSelectLinkLayer.cpp demonstrates how to initialize the Ethernet Driver instance.
-
struct EC_T_LINK_PARMS_BPF
Public Members
-
EC_T_LINK_PARMS linkParms
Common link parameters. Signature must be set to EC_LINK_PARMS_SIGNATURE_BPF.
-
EC_T_CHAR szIfName[EC_BPF_IF_NAME_SIZE]
Name of Ethernet Interface
-
EC_T_CHAR szPrefix[EC_BPF_IF_NAME_SIZE]
Optional prefix of the BPF instance path
-
EC_T_DWORD dwRxBuffers
Receive buffer count
-
EC_T_LINK_PARMS linkParms