Fix pcap capture problems when captured port and target port are equal