AndroidPing
AndroidPing copied to clipboard
Question: what about emulating ping option
Can AndroidPing emulate ping with option parameter? e.g. 'ping -a ip' to get the host name. Thx,
No, the lib just does basic ping functionality. The functionality you are looking for would be more like nslookup.
Dustin
On Fri, Feb 1, 2019 at 12:02 PM opaquewarellc [email protected] wrote:
Can AndroidPing emulate ping with option parameter? e.g. 'ping -a ip' to get the host name. Thx,
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dburckh/AndroidPing/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AFmq0bLhhu4MMmXNsNDge5T1-b649wWhks5vJI9ZgaJpZM4ae5ja .
How to make traceroute functionality by increasing TTL, i was able to achieve with native ping CLI command but don't know how to do with this lib. i know OS level API are capable for that but don't know how to implement it. I have seen one example here which using same API as in this lib but coded in CPP. Any help much appreciated. https://github.com/steamclock/internetmap/blob/master/Android-NDK/tracepath.cpp
In theory you should be able to manipulate the TTL with Os.setsockoptInt and OsConstants.IP_TTL
Dustin
On Tue, Aug 6, 2019 at 2:00 AM Rstar [email protected] wrote:
How to make traceroute functionality by increasing TTL, i was able to achieve with native ping CLI command but don't know how to do with this lib. i know OS level API are capable for that but know how to implement i have seen one example here which using same API as in this lib. any help much appreciated.
https://github.com/steamclock/internetmap/blob/master/Android-NDK/tracepath.cpp
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dburckh/AndroidPing/issues/1?email_source=notifications&email_token=ABM2VUORNZNPHNHFZQANFOLQDEOSFA5CNFSM4GT3TDNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3UDK3A#issuecomment-518534508, or mute the thread https://github.com/notifications/unsubscribe-auth/ABM2VUPKPWH5MURI5GSVBJ3QDEOSFANCNFSM4GT3TDNA .
@dburckh Thank you for reply, do you have any example or could you make demo lib for this? Also not sure why this app lib throwing exception in Android LOLLIPOP 5 and 5.1 for other version its working, i Tested in emulator.
I've never actually seen this done, I just believe it should be possible based on Wikipedia. It going to take some work on your end.
Dustin
On Thu, Aug 8, 2019 at 10:52 PM Rstar [email protected] wrote:
@dburckh https://github.com/dburckh Thank you for reply, do you have any example or could you make demo lib for this?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dburckh/AndroidPing/issues/1?email_source=notifications&email_token=ABM2VULYAEWI3I22XNDLFWTQDTZZRA5CNFSM4GT3TDNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD35SXWQ#issuecomment-519777242, or mute the thread https://github.com/notifications/unsubscribe-auth/ABM2VULCPI5CM6ZIVDZZLWLQDTZZRANCNFSM4GT3TDNA .