About 23,100 results
Open links in new tab
  1. ping - Sending ICMP packets in a C program - Stack Overflow

    14 I'm trying to create an ICMP ping test program in C but am having difficulties with successfully sending the packets. The sendto function returns the # of bytes and everything but no packets are …

  2. What data is included in ICMP (ping) request? - Stack Overflow

    Oct 23, 2013 · I know the ICMP request contains the IP address. Is the client MAC address included in an ICMP request? What other info (if any) is included in a ping request?

  3. Source and destination port of ICMP packet - Stack Overflow

    Mar 29, 2013 · I'm writing a packet filter in netfilter. Is there a way I can get the source and destination port of a ICMP packet? I have extracted icmp_hdr from the sk_buff structure. But I don't see any …

  4. How is an ICMP packet constructed in python - Stack Overflow

    Jan 5, 2016 · ICMP echo request and echo reply are better known as ping. The ID and the sequence number allow to match the replies with the requests. They are necessary beacuse the ICMP protocol …

  5. how to copy message inside icmp header - Stack Overflow

    Feb 28, 2014 · @user2437651 Fragmentation happens at IP layer. Assuming sk_buff *sb refers to the received packet, the IP packet may be fragmented. I suggest reading the following articles: IPv4 …

  6. How to send ICMP packet through sockets? - Stack Overflow

    Mar 12, 2012 · In order to construct an ICMP packet, you have to create the whole packet yourself using a raw socket. The struct module is useful for this. Secondly, in order to even use raw sockets in the …

  7. ICMP sockets (linux) - Stack Overflow

    The traditional way of sending/receiving ICMP messages is indeed to use SOCK_RAW, and build up the ICMP messages yourself. The code I posted uses an alternative, linux specific feature to send and …

  8. Additional bytes in ICMP Echo Reply message

    May 19, 2021 · The sendto () function adds an IPv4 header. The packet is now 88 bytes long. If the TTL is exceeded, an ICMP message of Type 11, Code 0 is generated. The data appended after this …

  9. Как в Windows получить пакет через сырой ICMP RAW сокет?

    При этом если создать сокет с параметром IPPROTO_IP, то recvfrom прекрасно отрабатывает, но возвращает в recvbuf ICMP-сообщение от роутера, но без первых 8 байт ICMP-заголовка, …

  10. python - Craft an IP in IP example with scapy - Stack Overflow

    Feb 17, 2021 · the destination then sends an ICMP packet back with type 3 (destination unreachable) and code 2 (Protocol unreachable). I have tried setting several protocols on the outer and inner …