Start Arp Listener

Starts ARP listener on a given channel.

Arguments Description

**channel str: name of a channel to listen on

Arp_filter (dict, optional): filter to be applied on received frames, only frames which match this filter

will be stored in the queue.

Example {‘operation’: 0x01, ‘sender_ip_address’:’160.48.199.64’ } *for syntax you can check the andi sdk documentation *

keep_cache (bool, optional): this is used in case you start the listener multiple times.

if true, then the result from the last start remain in the queue, else the queue will be reset to empty. Defaults to False.

callback_fnc (_type_, optional): callback function

silent_mode (boolean, optional): Flag to choose the listening mode. (Default to True)

When silent_mode = False, both, the MTF-Pyapi and MTF-Core callbacks will work. Else When silent_mode = True, only the MTF-Core callback will be activated.**

Returns

bool: True if the listener is started; otherwise, False.

Example

**| # Example for arp message structure, this can give a hint on how to make a filter:

${filter}= Create Dictionary operation=${0x002} sender_ip_address=${ip_add}
${res}= Start Arp Listener ${channel_name} ${filter}**

Note

It is highly recommended to set the silent mode to True with high-network traffic.