Mac Getter From Ip Module

mtf.network_port.mac_getter_from_ip.getARPTable()
mtf.network_port.mac_getter_from_ip.check_lost_packets(commandoutput: str) int
mtf.network_port.mac_getter_from_ip.ping_command(ip: str) bool
mtf.network_port.mac_getter_from_ip.dest_ip_to_mac(ip: str) str
mtf.network_port.mac_getter_from_ip.get_mac_address_from_ip(ip: str, adapter_name: str)

Get the Mac address from the IP address

Args:

ip (str): the IP address adapter_name(str): the sender adapter name

Returns:

str: Mac address if found, else None

mtf.network_port.mac_getter_from_ip.get_multicast_mac(ip_address)

Calculate the multicast MAC address from a multicast IP.

Args:

ip_address (str): the IP address

Returns:

str: Mac address if found, else None

mtf.network_port.mac_getter_from_ip.get_mac_address(ip_address, adapter_name: str)

Get the MAC address for a given IP (handles both unicast and multicast).

Args:

ip_address (str): the IP address adapter_name(str): the sender adapter name

Returns:

str: Mac address if found, else None