Reply To: extracting TCP header

Home Forums Discussions Support Portal extracting TCP header Reply To: extracting TCP header

#5867

Vadim Smirnov
Moderator

pIpHeader = (iphdr_ptr)(pPacketBuffer->m_IBuffer + ETHER_HEADER_LENGTH);
pTcpHeader = (tcphdr_ptr)(((PUCHAR)pIpHeader) + sizeof(DWORD)*pIpHeader->ip_hl);