pythonping icon indicating copy to clipboard operation
pythonping copied to clipboard

Don't Fragment IP Option

Open alessandromaggio opened this issue 6 years ago • 3 comments

It looks like the DF option is not being set (tested on Windows, verifies with Wireshark). Currently, the option set is option 10, and it is set to 1.

alessandromaggio avatar Sep 08 '18 14:09 alessandromaggio

It seems like Socket.DONT_FRAGMENT is not valued correctly. The "don't fragment" option is assumed to be 10 without proper documentation. From a deeper analysis, it seems MS Windows doesn't have this capability on IPv4, just on IPv6.

alessandromaggio avatar Apr 03 '20 19:04 alessandromaggio

Issue has been fixed for Linux users of pythonping: https://github.com/alessandromaggio/pythonping/commit/85d751e507e1569ee262cc540205ef5b4ad7b9c6

malbers15 avatar Aug 27 '20 15:08 malbers15

when running, ping('192.168.255.11',size=1700, df=True) in linux system, I see with Wireshark that the packets get fragmented, and More fragments bit is set (1). Shouldn't "Don't fragment" flag be 1, when enabling df option?

fdauti avatar Feb 25 '22 17:02 fdauti