Skip to content

Instantly share code, notes, and snippets.

@ryanjin
Created March 17, 2014 14:29
Show Gist options
  • Save ryanjin/9600230 to your computer and use it in GitHub Desktop.
Save ryanjin/9600230 to your computer and use it in GitHub Desktop.
从左到右,
1:URG:(置一有效)紧急指针,表明发送端向另一端使用紧急方式发送数据。
2:ACK:(置一有效)表示确认序号。
3:PSH:(置一有效)表示接收方应该尽快将这个报文交给应用层。
4:RST:(置一有效)表示重建连接。
5:SYN:(置一有效)用来发起一个连接。
6:FIN:(置一有效)表示发送方的表示完成任务,接收方的表示同意断开连接。
因此,02表明该数据包发送的是一个同步序号,用来发起一个新的连接
0x10表示,ACK,FIN
0x14表示,ACK,RST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment