pythonping
pythonping copied to clipboard
Don't Fragment IP Option
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.
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.
Issue has been fixed for Linux users of pythonping: https://github.com/alessandromaggio/pythonping/commit/85d751e507e1569ee262cc540205ef5b4ad7b9c6
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?