How to modify the TCP/IP mechanism?
Thanks for the reply. What I really wanted to do is to modify the handshaking procedure in establishing a TCP connection, at the same time, be able to edit the header and do some functions. So do you think this would be possible? Could it be done in user space? connect() function is responsible for three-way handshaking, but I wanted to modify it. So I thought, I need to modify the kernel. I know this would be a deviation to the TCP protocol, but this experiment is only for my research project. I am not an expert linux kernel programmer, so I dont really know where to start.