Description of various parameters in/PROC/NET/TCP

Source: Internet
Author: User

The content in/proc/net/tcp is printed by the Tcp4_seq_show () function, which has three printing forms, and here we have this list of states that are the tcp_seq_state_listening or tcp_seq_state_established case is as follows:


The result of Netstat is to read the/proc/net/tcp file.

How to view the creation time of a connection

1.NESTAT-APN | grep XXX checks to see the corresponding connected process PID and port

2. Convert the upper and lower ports to 16 binary XXXA XXXB

3. Then Cat/proc/net/tcp | Grep-i Xxxa | Grep-i XXXB Find the Inode inodex for the socket connection

4.ls-al/proc/pid/fd | grep Inodex to see when the socket file was created

Description of various parameters in/PROC/NET/TCP

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.