Hi All,
We are working on a application which will offload some of the
tcp/ip connections after the setup completes. For this purpose, we
want to keep the socket in suspended state till we hand back the
control to socket. For this I tried to do the following:
1. In the user space established the connection and send the socket
file descriper to a kernel module.
2. In the kernel module we got the handle to sock structure by
sock_lookup call.
3. In the sock structure, we made the state to TCP_LISTEN from
ESTABLISHED as in LISTEN state the tcp socket can stay alive
indefinitely.
But doing this makes the whole sytem to hang. Can some one please help
me to know
* How to do the above?
* How to disable TCP timers for a given socket effectively making
the socket to sleep until woken up.
thanks and regards,
Ravi
|