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 127.0.0.1
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