Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: cobaLCDJoyMotor_Thread odometry_omni_3roda_v3 odometry_omni_3roda_v1 odometry_omni_3roda_v2 ... more
icmp.h File Reference
ICMP API. More...
Go to the source code of this file.
Enumerations | |
enum | icmp_dur_type { ICMP_DUR_NET = 0, ICMP_DUR_HOST = 1, ICMP_DUR_PROTO = 2, ICMP_DUR_PORT = 3, ICMP_DUR_FRAG = 4, ICMP_DUR_SR = 5 } |
ICMP destination unreachable codes. More... | |
enum | icmp_te_type { ICMP_TE_TTL = 0, ICMP_TE_FRAG = 1 } |
ICMP time exceeded codes. More... | |
Functions | |
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 API.
Definition in file icmp.h.
Enumeration Type Documentation
enum icmp_dur_type |
enum icmp_te_type |
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
Definition at line 301 of file lwip_icmp.c.
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 icmp header inp the netif on which this packet was received
Definition at line 80 of file lwip_icmp.c.
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
Definition at line 316 of file lwip_icmp.c.
Generated on Tue Jul 12 2022 13:03:24 by
