Re: sock structure.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

> such sock_put function. All the other functions r there. Can you give some
> idea for 2.2.x type of kernel?

This is good question.

In 2.2 each TCP socket finishes its life in net/ipv4/timer.c.
Each TCP_DONE_TIME this timer checks that socket is closed,
and as soon as timer finds it closed, destroy_sock() is called.

It is still not the end. Until socket buffers are drained,
destroy is retried each SOCK_DESTROY_TIME and finally dies in:

destroy_sock()
	kill_sk_now()
		sk_free(sk)


Alexey

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux