Questions tagged [icmp]

Internet Control Message Protocol, designed for control and diagnostic messages. Used by common diagnostic tools like ping or traceroute.

583 questions
0
votes
1 answer

Ping and TTL-expired packets: no round trip time shown

If I run ping with packets that expire at a given hop, ping won't compute any round trip time: ~# ping www.google.com -t 3 -v PING www.google.com (173.194.40.17) 56(84) bytes of data. From te1-3-marseille1-rtr-021.noc.renater.fr (193.51.189.25)…
Ricky Robinson
  • 21,798
  • 42
  • 129
  • 185
0
votes
3 answers

how to icmp ping thousands of IP addresses simultaneously every second?

I'm looking for solution, how to be able to ping some 5000 (up to 10000) IP addresses on a local network each 1 second and immediatelly, when any icmp packet timeouts, it will write output to a file with the unix epoch time of the lost packet and IP…
user2616411
  • 1
  • 1
  • 3
0
votes
1 answer

Get Intermediate hops using InetAddress.isReachable method

InetAddress.isReachable(NetworkInterface , int ttl, int timeOut) return true if the specific address is reachable in number of hops from ttl, other wise false. Can I also know from which IP address it got the success or failure message? I meant can…
Adi GuN
  • 1,244
  • 3
  • 16
  • 38
0
votes
1 answer

wireshark doesn't display icmp traffic between tow logical interafce

I add tow logical interfaces for test with the following commands : # set link on physical Device Up sudo ip link set up dev eth0 # create logical Interfaces sudo ip link add link eth0 dev meth0 address 00:00:8F:00:00:02 type macvlan sudo ip link…
stack_A
  • 713
  • 4
  • 13
  • 21
0
votes
1 answer

Executing a tcpstat command and performing operations on its output simultaneously

I am trying to run a tcpstat command that gives the output about number of icmp requests being received. and at the same time i need to check the count so that if it exceeds some threshold, a message should be displayed. i tried out something like…
Kiran Vemuri
  • 2,762
  • 2
  • 24
  • 40
0
votes
2 answers

Calculating the difference between the first words(timestamp) using perl dynamically

I have a program that keeps on writing the icmp echo requests being received by a machine into a file. I am using system ("tcpdump icmpecho[0] == 8 | tee abc.txt") to do that. So this process keeps on going till I end the program manually. Each line…
Kiran Vemuri
  • 2,762
  • 2
  • 24
  • 40
0
votes
1 answer

Retrieve ping time from system command in c++ (ping x.x.x.x -n)

I'm write a small console application (windows plateform using visual studio 2012) that show the current ping to an IP and some others stats. (average of the last 100pings, packet loss, etc...) Here is my actual implementation: char…
cagou
  • 25
  • 6
0
votes
1 answer

Ping Sequence Numbers Synchronize on Windows

I've noticed that over a long-duration two-2ay ping between two windows machines, the sequence numbers embedded in the pings ICMP packets synchronize. Is this expected and, if so, does anybody know why this is done?
Dave
  • 1,519
  • 2
  • 18
  • 39
0
votes
1 answer

ICMP_ECHO_REPLY32 and IP_OPTION_INFORMATION32

In one of my vb6 code i am using IP_OPTION_INFORMATION and ICMP_ECHO_REPLY which i have declared as Private Type IP_OPTION_INFORMATION Ttl As Byte Tos As Byte Flags As Byte OptionsSize As Byte …
Navaneet
  • 1,367
  • 1
  • 19
  • 44
0
votes
1 answer

port forwarding causes ICMP unreachable error

I have an unusual error whereby I am trying to set up port forwarding. I have port forwarded port 33333 to my static internal IP address. However, when I send a packet to the router I via port 33333 I don't get the packet back. I checked wire shark…
Joel
  • 385
  • 1
  • 3
  • 15
0
votes
1 answer

How many requests does IcmpSendEcho2 send?

IcmpSendEcho2 documentation says: The ReplyBuffer contains the ICMP echo responses, if any. For ICMP, if only one request is sent, wouldn't only zero or one responses be expected? If that's the case, does that mean IcmpSendEcho2 can send multiple…
DougN
  • 4,407
  • 11
  • 56
  • 81
0
votes
2 answers

Denial of service (DoS) Application in Visual Studio 2010

Its a lengthy question and Its might be amature, sorry I'm new at programming; I want to design a console based application for testing with a Denial of service (DOS) attack. Suppose ping example.com -t -l 65000 is the only thing that needs to be…
Raj
  • 1
  • 1
  • 3
0
votes
1 answer

stack smashing detected..while sending ICMP packet

I have written a C program to send an ICMP packet. Here is the corresponding code.. #include #include #include #include #include #include #include #include…
nitish712
  • 19,504
  • 5
  • 26
  • 34
0
votes
0 answers

How to capture ICMPv6 neighbor advertisement packet (136) on windows?

I have created an IPV6 SOCK_RAW socket to capture NA packet. To enables promiscuous mode i have used the function WSAIoctl with SIO_RCVALL control code and RCVALL_ON as option value, but this function return SOCKET_ERROR with 10022(Invalid argument)…
0
votes
2 answers

Why is my ICMP sequence number not incrementing? (C Socket Programming)

is it possible someone can help me workout why my ICMP sequence number isn't incrementing on every request, when this was used as a ping program it would increment the sequence number on each ping. Also does anyone have any idea why my Round Trip…
A CSc Student----
  • 97
  • 1
  • 2
  • 10