added fw_get_ports() function to hook