km/common: fix bug in IVM mac address access