Modify the TCP function to pass by-pointer

Modify TCP code send data frame from pass by-value to pass by-pointer.