packet capture: can a packet with the FIN flag also have data?

懵懂的女人 提交于 2019-12-19 17:40:49

问题


I'm working on a packet capture program. Is it possible for an IP packet to have the FIN flag set but also have data?


回答1:


Strictly speaking, it is possible to put data in a TCP FIN packet... Quoting from RFC 793 (emphasis mine):

The SYN and FIN are the only controls requiring this protection, and these controls are used only at connection opening and closing. For sequence number purposes, the SYN is considered to occur before the first actual data octet of the segment in which it occurs, while the FIN is considered to occur after the last actual data octet in a segment in which it occurs.



来源:https://stackoverflow.com/questions/8702646/packet-capture-can-a-packet-with-the-fin-flag-also-have-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!