Originally Posted by
WarHammer
Yeah. It works. Thank you very much but Sorry. It has some new problem. The packet data is changed when I send and receive both on the localhost. The tcp packets are changed, sent and recieve all through 127.0.0.1. It works well on the same laptop. But when I send and recv at different laptop through ad hoc network,the receiver cannot receive anything. At the sender side, the packets seem changed and sent out. And after 6 or 7 packets sent out, the sender seems hanged there and will not send any more packets. I impose the iptable to capture the OUTPUT tcp packet at the sender side. I only change the tcp data with the condition of my defined string,like the data has a string of "today" (then I change only the "today" string). I'm not sure whether the capture and modification process stops any tcp communication packets which help to maintain the tcp connection.Anybody has an idea of what may why the receiver cannot receive the modified packet?
Bookmarks