[core][port] improve getDestinationPort() method
[core][port] improve getDestinationPort() method

Martoni/periphondemand,trabucayre/periphondemand,magyarm/periphondemand-code,trabucayre/periphondemand,trabucayre/periphondemand,magyarm/periphondemand-code,Martoni/periphondemand,magyarm/periphondemand-code,magyarm/periphondemand-code,Martoni/periphondemand