在hping3的详细输出中,什么是win=x。
len=46 ip=4.2.2.1 ttl=56 DF id=32841 sport=52 flags=RA seq=2 win=0 rtt=285.4 ms
len=46 ip=4.2.2.1 ttl=56 DF id=32842 sport=52 flags=RA seq=2 win=29200 rtt=245.4 ms发布于 2020-09-20 17:10:42
这是TCP窗口大小,来自hping3's th_win头文件中的struct ars.h:
/* The TCP header structure */
struct ars_tcphdr {
__u16 th_sport; /* source port */
__u16 th_dport; /* destination port */
...
__u16 th_win; /* window */
...
};您引用的打印输出似乎来自waitpacket.c:
printf("sport=%d flags=%s seq=%d win=%d rtt=%.1f ms\n",
ntohs(tcp.th_sport), flags, sequence,
ntohs(tcp.th_win), ms_delay);TCP窗口大小也称为TCP接收窗口大小。引用维基百科,"窗口大小是接收窗口的大小,它指定此段的发送方当前愿意接收的窗口大小单位的数量。“
https://security.stackexchange.com/questions/238552
复制相似问题