Does anyone know if its possible to adjust the MTU while sending an ICMP echo packet (with IcmpSendEcho)?
I’m trying to do this under Windows using the IcmpSendEcho() function.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The maximum transmission unit (MTU) is a property of your network subsystem, it’s not something that can be changed on the fly. Typical Ethernet, for instance, has a maximum MTU of 1,500 bytes.
If you want to adjust the size of the request, it looks as if the fourth argument to IcmpSendEcho() is the size of the data to send.
If you’re trying to implement path MTU discovery this is the way to adjust the size of your outgoing request, to figure out what the maximum allowable MTU to a host is. Note that you also need to set the DF (don’t fragment) IPv4 header bit.
What are you trying to achieve?