1. Don't know should use what means to transmit packets such as baidu website url
2. Don't know what to through what way or call function regulation to send the survival time of field (TTL)
3. How to accept from the IP address of the unknown in advance to send ICMP timeout message
I am novice, is not enough in-depth understanding of Java, are looking forward to your reply urgently, thanks!
CodePudding user response:
Find some open source projects researchhttps://github.com/kirillF/icmp-android
https://github.com/impalex/knockonports
https://github.com/summer2186/android_ndk_icmp_ping
https://github.com/alexeysirenko/android-sockets-icmp-ping-test