extracting TCP header

Home Forums Discussions Support Portal extracting TCP header

This topic contains 1 reply, has 2 voices, and was last updated by  Vadim Smirnov 11 years, 11 months ago.

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.