When to recalculate RecalculateIPChecksum ?

Home Forums Discussions Support Portal When to recalculate RecalculateIPChecksum ?

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #5350


    hello every one
    I have some problems with my project using ntkernel
    i ‘ve to change destination ip address , for example if some one requested a site with specific ip address i change ip packets destination ip header to
    My code is like this :

    IPAddress src_addr = new IPAddress(pIpHeader->Src);
    IPAddress dst_addr = new IPAddress(pIpHeader->Dest);
    IPAddress v_dst_addr = new IPAddress(new byte[] { 127, 0, 0, 1 });
    pIpHeader->Dest =(uint ) v_dst_addr.Address;

    but it dosent work
    when i request a site in IE it cant event connect any where ! and all of my network cant work correctly when i start the program
    what should i do ? does it need to recalculate the ip checksum ? or something else ?
    please help me to solve this problem

    thank you very much


    Vadim Smirnov

    Using 127.XXX.XXX.XXX for redirection is senseless because in Windows such packets never reach NDIS level. You should use local real IP address instead.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.