The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Utils - Utility functions for testing Net::Pcap

FUNCTIONS

is_available()

Returns true if the given function name is available in the version of the pcap library the module is being built against.

is_allowed_to_use_pcap()

Returns true if the user running the test is allowed to use the packet capture library. On Unix systems, this function tries to open a raw socket. On Win32 systems (ActivePerl, Cygwin), it just checks whether the user has administrative privileges.

find_network_device()

Returns the name of a device suitable for listening to network traffic.