[PATCH v2 7/9] port_fwd: Split TCP and UDP cases for get_bound_ports()