tun: Don't assume type tun in tun_device_event