iflist: fix link type detection for tap devices

To distinguish between tun and tap devices based on link->kind,
we need to check hwaddr.type, otherwise all tun/tap devices
show up as tun.

fixes bnc#887564
Merge pull request #326 from kmroz/fix-309

iflist: fix link type detection for tap devices