Fix swift TUNNELRECV data and length inconsistency problem

Fixes swift TUNNELRECV data and length inconsistency problem