sebschrader / python-arpreq

Query the Kernel ARP cache for the MAC address of an IP address

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Query all interfaces instead of just the first that matched

sebschrader opened this issue · comments

When multiple interfaces are on the same subnet, we use the first one that matches in the subsequent SIOCGARP query.

This may however not be the one, on which an ARP entry is cached for. Typically the “best” one, i.e. the one with the lowest metric, will have the entry, but this can not be relied on either.

We should therefore query all interfaces instead.