E-R
2017-05-02 10:27:58 0 举报
tcp协议流程图
作者其他创作
大纲/内容
AdvertisedWindow = ntohs(tcp-AdvertisedWindow);
N
unsigned short AdvertisedWindow;
unsigned short SourcePort;
Y
start
Acknowledgment = ntohl(tcp-Acknowledgment);
Flags = tcp-Flags;
char myflags[1024];
unsigned short DestinationPort;
int HeaderLength;
tcp = (struct TCP *) packetdata;
if (Flags & 0x10)
SequenceNum = ntohl(tcp-SequenceNum);
unsigned short UrgPtr;
DestinationPort = ntohs(tcp-DstPort);
UrgPtr = ntohs(tcp-UrgPtr);
return 0;
unsigned char Flags;
if (Flags & 0x02)
struct TCP* tcp;
SourcePort = ntohs(tcp-SrcPort);
if (Flags & 0x04)
if (Flags & 0x08)
结束
HeaderLength = tcp-HdrLen * 4;
if (Flags & 0x01)
unsigned int Acknowledgment;
unsigned int SequenceNum;
if (Flags & 0x20)
0 条评论
下一页