Linux: network:tcp: option: TCP_INFO

https://www.man7.org/linux/man-pages/man7/tcp.7.html
https://www.man7.org/linux/man-pages/man8/ss.8.html

从TCP的使用手册上看,这个选项的作用是返回一个结构体数据。2.4 就引入了,其实大家可以用起来这个选项。
TCP_INFO (since Linux 2.4)
Used to collect information about this socket. The kernel returns a struct tcp_info as defined in the file /usr/include/linux/tcp.h. This option should not be used in code intended to be portable.

而这个结构体返回的内容如下:

struct tcp_info {
   
   
	__u8	tcpi_state;
	__u8	tcpi_ca_state;
	__u8	tcpi_retransmits;
	__u8	tcpi_probes;
	__u8	tcpi_backoff;
	__u8	tcpi_options;
	__u8	tcp

相关推荐

最近更新

  1. TCP协议是安全的吗?

    2023-12-20 17:38:02       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2023-12-20 17:38:02       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2023-12-20 17:38:02       19 阅读
  4. 通过文章id递归查询所有评论(xml)

    2023-12-20 17:38:02       20 阅读

热门阅读

  1. react基于antd二次封装分页组件Pagination

    2023-12-20 17:38:02       38 阅读
  2. 使用DB1小波进行三层小波分解(Matlab实现)

    2023-12-20 17:38:02       39 阅读
  3. 基于软译码的Hamming信道编码误码率Matlab仿真

    2023-12-20 17:38:02       38 阅读
  4. 力扣 | 347. 前 K 个高频元素

    2023-12-20 17:38:02       35 阅读
  5. VUE2组件按需引用

    2023-12-20 17:38:02       40 阅读
  6. 2024 年 QA 自动化的语言是什么?

    2023-12-20 17:38:02       49 阅读
  7. vivado 用XDC约束IP和子模块

    2023-12-20 17:38:02       28 阅读
  8. 低信噪比环境下的GPS信号识别与捕获技术

    2023-12-20 17:38:02       32 阅读
  9. k8s的API资源对象CustomResourceDefinition(CRD)

    2023-12-20 17:38:02       54 阅读