Thanks for the reply Abhi No need to worry about whether it was rejected or accepted. Just need to send UDP packet on different ports. I checked sendto manual and it says that it sends data on connected sockets. This gives me hint that to send such a packet I have to write a program that tries to connect on that port using UDP. Thanks Abhi. Any further suggestion will be highly appreciated.
Abhijit Menon-Sen <[EMAIL PROTECTED]> wrote: At 2004-03-19 09:25:47 +0530, [EMAIL PROTECTED] wrote: > > > I just want to send a UDP packet on an IP on internet. I want to see > > whether it denies it or accepts it. I have to do some tests. Telnet > > won't help. Do u have any idea how to create a program for this? Read the socket(2) and sendto(2) manual pages. Or buy the Stevens book (UNIX network programming.) Oh, and by the way, did you ask Google? > AFAIK, there is no way to figure out whether the UDP packet was thrown > away (denied or rejected), I think the protocol doesn't support it. I > may be wrong, please enlighten. You should get ICMP messages for certain kinds of errors. Traceroute, for example, depends on this. -- ams _______________________________________________ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/ Sumit Chaudhary Network Seurity Engg. R Systems Yahoo! India Promos: Win a trip for 2 to Britain. Click here. _______________________________________________ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/
