Additional flexibility for the getMacAddress functions.
(cherry picked from commit b087d39d825a9f8ffdbbf43850f1c7ddbed271e3)

Changes from the original: Made netdev argument have a default value.