Solved

free libraries for writing my own ICMP packets and sockets in C?

Posted on 2003-11-29
6
219 Views
Last Modified: 2010-04-15
Are there any free libraries for writing my own ICMP packets and sockets in C for Windows, and can i compile them with gcc?
I need to use my own trace route in a application of mine so it must not be any restrictive licenses since my program is shareware.

cheers
Andreas
0
Comment
Question by:andtor
  • 3
6 Comments
 
LVL 45

Expert Comment

by:sunnycoder
ID: 9842085
0
 
LVL 45

Expert Comment

by:sunnycoder
ID: 9842104
btw, it seems that winsock provides raw icmp sockets ... why not use them ?
0
 

Author Comment

by:andtor
ID: 9843470
Im quite new to C, i've got several years of expirience with Java, but java does not support icmp sockets. All i need is a console program that can do pings to arbitrary addresses and with variable TTL (so i can do a trace route). Can i use winsock for this and can i use it in my comercial program without restrictions? Where can i get the winsock libraries?
0
 
LVL 45

Accepted Solution

by:
sunnycoder earned 250 total points
ID: 9849454
>Can i use winsock for this and can i use it in my comercial program without restrictions?
not the above ones ...

>Where can i get the winsock libraries?
Winsock is part of standard windows SDK AFAIK

>All i need is a console program that can do pings to arbitrary addresses and with variable TTL
these are free, but read the lincensing ... I have not read any
http://codeproject.com/internet/ctraceroute.asp         
http://www.traceroute.org/#source%20code
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now