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

pinging dynamic IP server

I invoked ping process on ubuntu, then while ping works the IP of server has been changed. another ping process from the same machine showed me the correct IP, but the first process still printing old IP. that can be variable in ping, initialized…
Sławomir Lenart
  • 7,543
  • 4
  • 45
  • 61
0
votes
1 answer

How to traceroute with Indy10 TIdIcmpClient?

To do a trace route we can read in the Indy documentation "For Traceroute application, send ping echo requests with increased TTL values" The problem is that the TTL property is protected and can't be set. Is this just another bug or do I really…
Max Kielland
  • 5,627
  • 9
  • 60
  • 95
0
votes
2 answers

Pure python ping is causing my Zyxel router to trigger bad-icmp-l4-size ATTACK warning

I'm using pure Python ping utility from ftp://ftp.visi.com/disk3/mdc/ping.py to monitor hosts across the network and my ZyWALL USG200 router is complaining like this: from Any to DMZ, [type=ICMP-Decoder(8911017)] bad-icmp-l4-size ATTACK…
kuz8
  • 369
  • 2
  • 10
0
votes
1 answer

IcmpSendEcho and setting MTU size?

Does anyone know if its possible to adjust the MTU while sending an ICMP echo packet (with IcmpSendEcho)? I'm trying to do this under Windows using the IcmpSendEcho() function.
user233726
  • 39
  • 5
0
votes
2 answers

Debug ideas to investigate on packets getting dropped?

I recently encountered a scenario where in I find that ICMP network unreachable [type-1, code-3- meaning destination unreachable, which is correct w.r.t trace route working, refer rfc link below] packet is getting dropped only when bytes sent…
smaven
  • 21
  • 3
0
votes
2 answers

Is it possible to count number of ICMP packets sent/received per interface in Linux?

Is it possible to check statistics in Linux per interface for ICMP packets in particular? ifconfig command it provides statistics per interface for received and sent packets: -> /sbin/ifconfig eth1 eth1 Link encap:Ethernet HWaddr…
Borja Tarraso
  • 863
  • 2
  • 12
  • 20
0
votes
1 answer

Intellisense: error C2440: '=' : cannot convert from 'unsigned long (__stdcall *)(const char *)' to 'IPAddr'

I'm trying to write an application that pings an ip address and gives relevant information related to the ping. While I am getting a plethora of errors, this one is what I have chosen to try and learn to solve first! I have my small bit of code and…
Craig Smith
  • 137
  • 1
  • 3
  • 16
0
votes
0 answers

System function to make some ICMP activity

which system command should I use to make some ICMP activity? I tried to use system("ping www.google.com");, but it looks like program does not read further code after that. Or how to make it read after system("ping www.google.com");? For…
maximilliano
  • 163
  • 1
  • 2
  • 16
0
votes
1 answer

Receiving data on socket (ICMP)

I have made a look into the socket module of Python and wanted to try out some things. But unfortunately I'm not even able to receive some data (always socket.timeout is raised on recvfrom()). Here is the current state: import socket connection =…
user2081738
0
votes
2 answers

How to calculate round trip time for an ICMP packet

I'm writing some C code in Qt5 to send ICMP echo packet to detect a machine. I don't know how to calculate round trip time. my code seems not working properly: Before sending: struct timezone tz; struct timeval ts; gettimeofday( &ts, &tz…
QtFan
  • 65
  • 1
  • 8
0
votes
1 answer

Spoof source IP address in ICMP ECHO REQUEST packet

I get two wireless devices A and B, and an AP. The IP address of A is 1.2.3.4 and that of B is 1.2.3.5. If A send an ICMP ECHO REQUEST packet to the AP, in which the source IP address is spoofed to 1.2.3.5, will B receive an ICMP ECHO REPLY from the…
is.magl
  • 315
  • 1
  • 3
  • 8
0
votes
1 answer

Finding all of the machines available on my local subnet

We have several embedded systems that work on a small network, and these run some physical displays, part of which shows the network status for each embedded system. We are no longer able to get the wireless bridges we have been using up until now,…
Alex Marshall
  • 10,162
  • 15
  • 72
  • 117
0
votes
1 answer

Merging Python lists fails

So I'm having some trouble with these Python lists I am trying merge together. I am trying to write an algorithm to check if the machine is connected to the internet. So I ping different Google servers and if none of them responds I assume the…
Luiz Berti
  • 1,421
  • 1
  • 15
  • 24
0
votes
0 answers

Discarded UDP datagram over MTU size with IPv6

I've found out that when I send an UDP datagram that gets fragmented (over 1452 bytes with MTU=1500), according to tcpdump, all the fragments are received on the target machine but then no message is received on the socket. This happens only with…
Radim Vansa
  • 5,686
  • 2
  • 25
  • 40
0
votes
1 answer

set default ping deadline in linux

I want to set default deadline for ping in some settings file or so. My program hangs when trying to connect to non-pinging ip address. In terminal I can call "ping 123.0.0.1 -w 5" and it wont last forever, but I can't set any deadline in code.
ehrid
  • 95
  • 8