Please enable JavaScript to view this site.

IDS Software Suite 4.96.1

Windows_Logo
Linux_Logo

GigE

GigE

Syntax

INT is_SetPacketFilter (INT iAdapterID, UINT uFilterSetting)

Description

Using is_SetPacketFilter(), you can set the packet filter for a network adapter.

hint_info

Only incoming packets are filtered. Regardless of this setting, ICMP (Ping) and ARP packets are always forwarded to the operating system.

Input parameters

iAdapterID

Internal adapter ID of the network adapter. It is returned by the is_DeviceInfo() function in the UEYE_ETH_ADAPTER_INFO structure.

Return values

IS_CANT_OPEN_DEVICE

An attempt to initialize or select the camera failed (no camera connected or initialization error).

IS_INVALID_PARAMETER

One of the submitted parameters is outside the valid range or is not supported for this sensor or is not available in this mode.

IS_IO_REQUEST_FAILED

An IO request from the uEye driver failed. Possibly the versions of the ueye_api.dll (API) and the driver file (ueye_usb.sys or ueye_eth.sys) do not match.

IS_SUCCESS

Function executed successfully

Related functions

is_DeviceInfo()

is_IpConfig()

Example

// Passes all data packets for the network card to the operating system, on which the first found camera is connected.
UEYE_CAMERA_LIST CamList;
UEYE_ETH_DEVICE_INFO DeviceInfo;
is_GetCameraList(&CamList);
is_GetEthDeviceInfo (CamList.uci[0].dwDeviceID | IS_USE_DEVICE_ID,
                    &DeviceInfo, sizeof(DeviceInfo));
is_SetPacketFilter(DeviceInfo.infoAdapter.dwAdapterID, IS_ETH_PCKTFLT_PASSALL);

© 2022 IDS Imaging Development Systems GmbH