{ "getDOHFrontendCount", true, "", "returns the number of DoH listeners" },
{ "getListOfAddressesOfNetworkInterface", true, "itf", "returns the list of addresses configured on a given network interface, as strings" },
{ "getListOfNetworkInterfaces", true, "", "returns the list of network interfaces present on the system, as strings" },
+ { "getMACAddress", true, "IP addr", "return the link-level address (MAC) corresponding to the supplied remote IP address, if known by the kernel" },
{ "getOutgoingTLSSessionCacheSize", true, "", "returns the number of TLS sessions (for outgoing connections) currently cached" },
{ "getPool", true, "name", "return the pool named `name`, or \"\" for the default pool" },
{ "getPoolServers", true, "pool", "return servers part of this pool" },
.. versionadded:: 1.8.0
- Return the list of network interfaces configured on the system, as strings
+ Return the list of network interfaces configured on the system, as strings.
This function requires support for ``getifaddrs``, which is known to be present on FreeBSD, Linux, and OpenBSD at least.
+.. function:: getMacAddress(ip)
+
+ .. versionadded:: 1.8.0
+
+ Return the link-level address (MAC) corresponding to the supplied remote IP address, if known by the kernel.
+ This function is only implemented on Linux.
+
+ :param str ip: The IP address, IPv4 or IPv6, to look up the corresponding link-level address for.
+
.. function:: getOutgoingTLSSessionCacheSize()
.. versionadded:: 1.7.0