Strange Problem regarding PING ??
-
Dear ALL now i was makeing a small ping app. and i read alot about it and i take some codes from the internet and after some problems it worked at the end but i wished to be sure that packets which were sent are eaxctly what i set it so i used wireshark software to see each ICMP packets i was sending 150 bytes discoverd the real one which was sent is 12 bytes !!! i check it using windows Ping (MS Ping) it worked so fine so i thought the problem is in my code , i tried many of ping codes in the net & almost no one send the right packet size !!!!!!!! so what i should check?? anyone has idea about such problem?? thax all bye
-
Dear ALL now i was makeing a small ping app. and i read alot about it and i take some codes from the internet and after some problems it worked at the end but i wished to be sure that packets which were sent are eaxctly what i set it so i used wireshark software to see each ICMP packets i was sending 150 bytes discoverd the real one which was sent is 12 bytes !!! i check it using windows Ping (MS Ping) it worked so fine so i thought the problem is in my code , i tried many of ping codes in the net & almost no one send the right packet size !!!!!!!! so what i should check?? anyone has idea about such problem?? thax all bye
check your hardware setting,,, maybe some errors there,,,
-
check your hardware setting,,, maybe some errors there,,,
Thx for your reply but what hardware setting ?? :^) :~ nothing in the socket programming related to hardware and i tried MS ping in the same PC and it worked so fine :omg: thx bye :sigh:
-
Dear ALL now i was makeing a small ping app. and i read alot about it and i take some codes from the internet and after some problems it worked at the end but i wished to be sure that packets which were sent are eaxctly what i set it so i used wireshark software to see each ICMP packets i was sending 150 bytes discoverd the real one which was sent is 12 bytes !!! i check it using windows Ping (MS Ping) it worked so fine so i thought the problem is in my code , i tried many of ping codes in the net & almost no one send the right packet size !!!!!!!! so what i should check?? anyone has idea about such problem?? thax all bye
Please Explain what exactly are you trying to do. Did you analyse exactly what was shown by wireshark. Please post it so we know more info. My guess is you icmp message was 12 byte but the whole packet encapsulated by lower layers(udp and ethernet frame) made it to look of wrong size to you but is of correct size. the icmp reply also contain the orginal ping request which is again of different size. Did you send 12 bytes and wireshark showed 150 byte. or you sent 150 bytes and wireshark showed 12 bytes. Just check what data are you giving to the socket????