c - While creating IP, IGMP packets using Raw Sockets, How to fille the hex value in those packets? -
i have 1 ip packet, includes igmp packet. want simulate using raw socket programming. checksum field of ip packet e1c9, how assign value in programming. tried iphdr->iph_chksum="e1c9";
also iphdr->iph_chksum=57801;
is above thing right?
it not working properly, please tell me exact way?
thanks in advance....... :)
the c syntax hexadecimal values 0xe1c9
in case. should ensure using correct byte order, need pass value through htons
Comments
Post a Comment