Home > OS > Do the NDIS driver intercepted packets but encountered a problem, ask a great god reply?
Do the NDIS driver intercepted packets but encountered a problem, ask a great god reply?
Time:09-26
In intercepting IP header of data packet header
Typedef struct _IP_HEADER { Char cVersionAndHeaderLen;//version information (4), head length (4) after Char cTypeOfService;//service type 8 Short sTotalLenOfPacket;//packet length Short sPacketID;//packet marking Short sSliceinfo;//shard use Char cTTL;//survival time Char Protocol;//protocol type Short sCheckSum;//the checksum Unsigned int uiSourIp;//source IP Unsigned int uiDestIp;//destination IP } __attribute__ ((the packed)) IP_HEADER, * PIP_HEADER;
This does not mean that number is the upper member of the Protocol Protocol type 17 6 TCP UDP why I print out here is full of 17? Package is based on the TCP and obviously a great god reply
CodePudding user response:
Sure is done with a TCP connection? Useless IP_HEADER, to study under