Hi,
kuznet@ms2.inr.ac.ru wrote:
Right place to finish tracking is when socket is removed from TCP hash tables, and to start tracking is when the socket is inserted to TCP hash tables. BTW you would not see the problem with binding if it was made right.
Thanks for the reply. In the meantime, although because of slightly different reasons, we also came to the same conclusion. Right now I'm testing a version in which our "unassign" hook is removed from inet_release(), and added to udp_v4_unhash() and tcp_put_port().
However, I'm not quite sure there won't be locking problems when calling our hook from these places.
-- Regards, Krisztian KOVACS
- : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html