extracting TCP header

Home Forums Discussions Support Portal extracting TCP header

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4969
    dalgin
    Participant

    how can I extract TCP header?

    what is the offset in the buffer for the 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);

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.