Home > C: Programming > Function descriptions > History back  Previous chapter  Next chapter  Print  

is_SetPacketFilter

uEye Camera Manual Version 4.00

is_SetPacketFilter

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.

Hinweis

The is_SetPacketFilter() function is only supported by the cameras of the GigE uEye series.

Hinweis

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_GetEthDeviceInfo() function in the UEYE_ETH_ADAPTER_INFO structure.

IS_ETH_PCKTFLT_PASSALL

Forward all packets to the operating system.

IS_ETH_PCKTFLT_BLOCKUEGET

Block GigE uEye data packets directed to the operating system (recommended).

IS_ETH_PCKTFLT_BLOCKALL

Block all packets directed to the operating system.

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);


Suggestion for improvement? Send us your short Feedback on this chapter. Thank you very much!

For technical questions please contact you local distributor or use the support form on our website.


© 2012 IDS Imaging Development Systems GmbH
http://www.ids-imaging.com