traceroute ipv6 using vb6
Hello guys,
Am trying to do traceroute using vb6, but don;t have any idea.
Am thinking of using dos to do the job, and then capturing the output of dos in my app
OR
Another idea is converting the address from ipv6 to ipv4 and the do the traceroute in case the hardware doesnt support ipv6
any ideas?
Re: traceroute ipv6 using vb6
I found out that i need to use this functions to implement ipv6 traceroute
Icmp6CreateFile, Icmp6SendEcho2, and Icmp6ParseReplies
and the declaration for each
Icmp6SendEcho2
vb Code:
Declare Function IcmpCloseHandle Lib "ICMP.dll" ( _
ByVal IcmpHandle As Long) As Long
Icmp6SendEcho2
vb Code:
Declare Function IcmpSendEcho2 Lib "ICMP.dll" ( _
ByVal IcmpHandle As Long, _
ByVal hEvent As Long, _
ByVal ApcRoutine As Long, _
ByRef ApcContext As Any, _
ByVal DestinationAddress As Long, _
ByRef RequestData As Any, _
ByVal RequestSize As Long, _
ByRef RequestOptions As Any, _
ByRef ReplyBuffer As Any, _
ByVal ReplySize As Long, _
ByVal Timeout As Long) As Long
Icmp6ParseReplies
vb Code:
Declare Function IcmpParseReplies Lib "ICMP.dll" ( _
ByRef ReplyBuffer As Any, _
ByVal ReplySize As Long) As Long
The point is that I don't know the constants, types and how to connect the remaining pieces together
Help please