how we can use traceroute


 
Thread Tools Search this Thread
Top Forums Programming how we can use traceroute
# 1  
Old 12-11-2006
how we can use traceroute

how we can use traceroute in unix c
so how we can get the output of traceroute command in c
thank u,inadvance
sree
# 2  
Old 12-11-2006
You can use popen, system or the exec family of functions to execute the traceroute command through C. The function that you will use however depends on what you want to do with the output of the command. Maybe you could spell out exactly what you are trying to do.
# 3  
Old 12-11-2006
thank u

thank u for ur reply,i want to know whether net connection is enable or not without ping.
so tried this traceroute in command prompt it's working fine so i wan t to implement in code.
# 4  
Old 12-12-2006
how we can get the gateway address

how we can get the gateway address.
i know gethostname used for ipaddress
how we can get the system gateway address.
thank u inadvance,
sree
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. IP Networking

Traceroute

I have some question about traceroute: 1. Can we hide our computer from traceroute? (2 Replies)
Discussion started by: budiantho_indra
2 Replies

2. UNIX for Dummies Questions & Answers

Traceroute Query

Hi guys, Quick traceroute query. As part of some research I'm doing I need to send a traceroute to an equal number of IPv4 and IPv6 addresses on the net and basically capture the number of hops, and intermediate IP addresses from the traces. This all needs to be automated as there are... (2 Replies)
Discussion started by: churchill
2 Replies

3. UNIX for Advanced & Expert Users

Explain and example of traceroute.

Hi Colleagues, Somebody can explain me and send me examples about traceroute, I know is for network but I need anderstand your funcionality. Thank you for advanced. (2 Replies)
Discussion started by: systemoper
2 Replies

4. IP Networking

Traceroute response

I have 20 servers I installed an application to that is returning message " wrong dispatcher or port " when starting agents. They all have the same dispatcher ip and going through the same port number. After verifying there are no application issues, we figured it was firewall related. The Firewall... (1 Reply)
Discussion started by: HFJ
1 Replies

5. UNIX for Dummies Questions & Answers

traceroute

Good afternoon Can anyone explain traceroutes to me and when it would be necessary/what situations would call one to use it? (2 Replies)
Discussion started by: iamnew2solaris
2 Replies

6. UNIX for Advanced & Expert Users

traceroute

Hi, Can any one suggest me an add on feature for the traceroute command. Thanks in advance. Regards, Selvi (4 Replies)
Discussion started by: salvi
4 Replies

7. Solaris

is traceroute a problem?

Can somebody tell why 2 and 3 hops(147.149.129.21) are repeated two times? corizon@rds894a016 : /usr/sbin/traceroute 147.149.129.21 traceroute: Warning: Multiple interfaces found; using 10.187.37.35 @ e1000g1075000:4 traceroute to 147.149.129.21 (147.149.129.21), 30 hops max, 40 byte packets ... (1 Reply)
Discussion started by: bvvkrishna
1 Replies

8. Shell Programming and Scripting

will traceroute work for this?

hello all- I am soon to convert a large scale ftp server and my problem is this. There are currently over 50,000 ftp profiles (each one within an individual file) that I need to determine which of the 2 interfaces it is traveling to get to its destination. My plans were that I will loop thru... (2 Replies)
Discussion started by: hedrict
2 Replies

9. UNIX for Dummies Questions & Answers

traceroute output?

I understand the concept of traceroute - can anyone explain the output to me e.g. 39ms 39ms 39ms are these the times for each trip it takes? Assuming each machine is pinged 3 times. and how does the RTT work? Is this the time it takes from one machine to another because it doesn't look like... (6 Replies)
Discussion started by: justine petrie
6 Replies
Login or Register to Ask a Question