forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Questions about ICMP with vdsipp.dll

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Hortalonus
Valued Contributor
Valued Contributor


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Wed Aug 28, 2002 5:10 pm    Post subject: Questions about ICMP with vdsipp.dll Reply with quote

Question Is there a way to change the size of the packet sent when using ICMP with vdsipp.dll?
I read and reread the help file but found no reference on how to do this. I would like to allow the user to specify the size.

Also...

Question Why, when I ping an IP address would I get random replys from my router in the middle of the replys from the node I am pinging?
See the image below for an example.




Here is the code I am using...

Code:

EXTERNAL @PATH(%0)vdsipp.dll
OPTION SCALE,96
OPTION DECIMALSEP,.
TITLE VDSping
%%timeout = 3000
%%ttl = 128
%%wait = 1
%%node =
%i = 0
%j = 0
%k = 0

DIALOG CREATE,VDSping,-1,0,404,194,NOMIN
DIALOG ADD,STYLE,STYLE1,Verdana,8,,BLACK,LTGREEN
DIALOG ADD,TEXT,TEXT1,16,22,,,Address:
DIALOG ADD,EDIT,Address,10,76,222,21
DIALOG ADD,BUTTON,ping,10,316,64,22,Ping,DEFAULT
DIALOG ADD,BUTTON,stop,10,316,64,22,Stop,DEFAULT
DIALOG ADD,LIST,LIST1,42,10,384,140,STYLE1
DIALOG HIDE,stop
DIALOG SHOW

INTERNET ICMP,CREATE,1
INTERNET ICMP,THREADS,1,ON
INTERNET ICMP,TIMEOUT,1,%%timeout
INTERNET ICMP,TTL,1,%%ttl

:evloop
WAIT EVENT,%%wait
%E = @EVENT()
GOTO %E

:TIMER
IF @EQUAL(%%doPING,1)
  INTERNET ICMP,PING,1,%%node
  %i = @SUCC(%i)
END
GOTO EVLOOP

:pingBUTTON
%%doPING = 1
LIST CLEAR,LIST1
DIALOG DISABLE,Address
DIALOG HIDE,ping
DIALOG SHOW,stop
%%node = @DLGTEXT(Address)
GOTO EVLOOP

:stopBUTTON
%%doPING = 0
DIALOG ENABLE,Address
DIALOG HIDE,stop
DIALOG SHOW,ping
DIALOG FOCUS,Address
GOTO EVLOOP

:ICMP1ONPINGDONE
%%msg = @INTERNET(ICMP,MESSAGE,1)
%j = @SUCC(%j)
LIST ADD,LIST1,%%msg
%k = @COUNT(LIST1)
IF @GREATER(%k,0)
  LIST SEEK,LIST1,@PRED(%k)
END
GOTO EVLOOP

:CLOSE
INTERNET ICMP,DESTROY,1
EXIT
Back to top
View user's profile Send private message Send e-mail
moke
Contributor
Contributor


Joined: 02 Jan 2002
Posts: 162

PostPosted: Thu Aug 29, 2002 2:42 pm    Post subject: Reply with quote

I don't think packet size can be changed in VDSIPP but i am pretty sure Tommy's vdsping.dll (I think thats the name) does allow you to change the packet size.

As for random responses from your router, that's pretty strange Question

moke
Back to top
View user's profile Send private message Send e-mail
Hortalonus
Valued Contributor
Valued Contributor


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Thu Aug 29, 2002 3:37 pm    Post subject: Reply with quote

Hey moke!

I thought it was a little odd that I could set TTL and timeout values but not packet size. But if that's the way it is then so be it. It's still a great DLL.
I may give vdsping.dll a look, too. Thanks for the tip! Smile

I also wonder about the extremely high time value for the reply from my router. If I ping the router directly, the reply is always <10ms.
Also, while playing with this script, I have recieved replys from random nodes along the route (found using traceroute) to the destination IP, also with very high ping times.
I am wondering if I need to create a simple filter to drop any reply other than from the IP I'm pinging.
Back to top
View user's profile Send private message Send e-mail
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Thu Aug 29, 2002 11:21 pm    Post subject: Reply with quote

Hi,
I do remember adding in packet size but for some odd reason I seemed to have removed it. If you or anyone here else knows Delphi it would be really easy to update the dll since it is included with source to add in the packet size option. I'm really not sure why a subnet would reply back in a ping request either. Please realize I did not program these internet protocols, rather the vdsipp wraps around the Indy Delphi components (http://www.nevrona.com/Indy). There is a newer version out of Indy and I'm sure it fixes many bugs, but it would require alot of changes in the vdsipp and a recompilation.
Back to top
View user's profile Send private message
Hortalonus
Valued Contributor
Valued Contributor


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Fri Aug 30, 2002 2:20 pm    Post subject: Reply with quote

I noticed that several of the features in vdsipp.dll are not yet implemented and I was wondering if you are planning to add them in the future.
If so, perhaps you could put the packet size option back in. Very Happy
Until then I may use Tommy's vdsping.dll (since I haven't yet learned Delphi). Thanks for the reply Prakash!
Back to top
View user's profile Send private message Send e-mail
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Fri Aug 30, 2002 2:58 pm    Post subject: Reply with quote

Well the dll was originally shareware but had very low interest. I then became very busy working on other projects so I made the dll freeware and open-source due to not being able to update it. In honesty I sincerely doubt that I will add much more to the vdsipp, I may try if I get some free time to update vdsipp to use Indy 9 though. Since the dll is open source and freeware I was hoping other developers would like to update it and make it the standard IP package for vds, unfortunately it hasn't turned out that way Sad
Back to top
View user's profile Send private message
Hortalonus
Valued Contributor
Valued Contributor


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Fri Aug 30, 2002 3:10 pm    Post subject: Reply with quote

Maybe posting a notice in the Open Source forum that you would like to see the dll more fully developed would spark some interest. I for one didn't realize it was now open source. Perhaps others are also unaware of the fact.
Back to top
View user's profile Send private message Send e-mail
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Aug 30, 2002 3:12 pm    Post subject: Reply with quote

I wasn't aware of that either. Very Happy
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Fri Aug 30, 2002 6:41 pm    Post subject: Reply with quote

Well there is a source code directory included with the dll with the source code Smile I guess I should have posted it somewhere that it was open source.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group