Currently the port scan works within given port numbers, but if a transport protocol layer has been chosen (--udp, --tcp or --sctp) the ports belong to these protocols are scanned but the not in the range of given port numbers. This behavior should be changed to include ports only in that range.
The port numbers for transport layer protocols are fetched from corresponding sorted arrays in port_details.rs. And depending on protocol these arrays are fed to stream (check fn get_ports)
These streams should be fed only with part of the array that matches port range. A slice can be thought for instance.
Currently the port scan works within given port numbers, but if a transport protocol layer has been chosen (--udp, --tcp or --sctp) the ports belong to these protocols are scanned but the not in the range of given port numbers. This behavior should be changed to include ports only in that range.
The port numbers for transport layer protocols are fetched from corresponding sorted arrays in port_details.rs. And depending on protocol these arrays are fed to stream (check fn get_ports)
These streams should be fed only with part of the array that matches port range. A slice can be thought for instance.