netif: add support for creating macvlan interface
netif: fix pointer casting