Ethernet for Nucleo and Disco board STM32F746 works with gcc and arm. IAC is untested
Dependents: STM32F746_iothub_client_sample_mqtt DISCO-F746NG_Ethernet Nucleo_F746ZG_Ethernet thethingsiO-DISCO_F746NG-mqtt ... more
icmp.c File Reference
ICMP - Internet Control Message Protocol. More...
Go to the source code of this file.
Functions | |
static void | icmp_send_response (struct pbuf *p, u8_t type, u8_t code) |
Send an icmp packet in response to an incoming packet. | |
void | icmp_input (struct pbuf *p, struct netif *inp) |
Processes ICMP input packets, called from ip_input(). | |
void | icmp_dest_unreach (struct pbuf *p, enum icmp_dur_type t) |
Send an icmp 'destination unreachable' packet, called from ip_input() if the transport layer protocol is unknown and from udp_input() if the local port is not bound. | |
void | icmp_time_exceeded (struct pbuf *p, enum icmp_te_type t) |
Send a 'time exceeded' packet, called from ip_forward() if TTL is 0. |
Detailed Description
ICMP - Internet Control Message Protocol.
Definition in file icmp.c.
Function Documentation
void icmp_dest_unreach | ( | struct pbuf * | p, |
enum icmp_dur_type | t | ||
) |
Send an icmp 'destination unreachable' packet, called from ip_input() if the transport layer protocol is unknown and from udp_input() if the local port is not bound.
- Parameters:
-
p the input packet for which the 'unreachable' should be sent, p->payload pointing to the IP header t type of the 'unreachable' packet
void icmp_input | ( | struct pbuf * | p, |
struct netif * | inp | ||
) |
Processes ICMP input packets, called from ip_input().
Currently only processes icmp echo requests and sends out the echo response.
- Parameters:
-
p the icmp echo request packet, p->payload pointing to the ip header inp the netif on which this packet was received
static void icmp_send_response | ( | struct pbuf * | p, |
u8_t | type, | ||
u8_t | code | ||
) | [static] |
void icmp_time_exceeded | ( | struct pbuf * | p, |
enum icmp_te_type | t | ||
) |
Send a 'time exceeded' packet, called from ip_forward() if TTL is 0.
- Parameters:
-
p the input packet for which the 'time exceeded' should be sent, p->payload pointing to the IP header t type of the 'time exceeded' packet
Generated on Tue Jul 12 2022 18:14:55 by 1.7.2