It uses the first packet it sees as source. So if it has missed some packets from the beginning of the connection then it can get the source/destination wrong.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.