Part Number: TM4C129XNCZAD
I saw functions inside NDK at ndk/tools/console that contains the ping function is there a document or a sample project for these Apis ?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: TM4C129XNCZAD
I saw functions inside NDK at ndk/tools/console that contains the ping function is there a document or a sample project for these Apis ?
void ICMPGenPacket( IPHDR *pIpHdr, HANDLE hIFRx, uint Type, uint Code, UINT32 Aux ) void ICMPSendRtAdv( HANDLE hIFTx, uint Life, IPN IPAddr, long Pref )
Hi,
all links in this post are not available and I can't find any description for these APIs
Indeed, these links are inaccessible now. Sorry, but I have tried and I don't know how to retrieve them anymore.
so I took these files at C:\ti\tirtos_tivac_2_16_00_08\products\ndk_2_25_00_09\packages\ti\ndk\tools\console\conping.c
and modified it a little bit to remove logging parts that were hard-coded, I have my logging so this custom version I changed is working now
but the question is
can I use these APIs
ICMPGenPacket and ICMPSendRtAdv
I don't see a problem using these API if they work for you.
I can't run the APIs inside this file directly "coping" so I copied them and modified them a little bit but can I have a tutorial for this example
the other question is that
I found these two APIs
ICMPGenPacket and ICMPSendRtAdv
and I don't know If I can send an ICMP echo request with any of them.
is there any API description for these two APIs(ICMPGenPacket and ICMPSendRtAdv) I can't find one.?
Hi Hazem,
Unfortunately, I'm unable to find any documentation for these two functions either. I have done some searches and there are a few posts with some code snippets making use of ICMPGenPacket. You can do the same search too. I suppose if it woks for you, you should see a 8-byte ICMP packet on Wireshark that conforms the packet protocol described here. https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol