Prusa MINI Firmware overview
icmp.h File Reference
#include "lwip/opt.h"
#include "lwip/pbuf.h"
#include "lwip/ip_addr.h"
#include "lwip/netif.h"
#include "lwip/prot/icmp.h"

Go to the source code of this file.

Macros

#define icmp_port_unreach(isipv6, pbuf)
 

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
}
 
enum  icmp_te_type { ICMP_TE_TTL = 0, ICMP_TE_FRAG = 1 }
 

Detailed Description

ICMP API

Macro Definition Documentation

◆ icmp_port_unreach

#define icmp_port_unreach (   isipv6,
  pbuf 
)

Enumeration Type Documentation

◆ icmp_dur_type

ICMP destination unreachable codes

Enumerator
ICMP_DUR_NET 

net unreachable

ICMP_DUR_HOST 

host unreachable

ICMP_DUR_PROTO 

protocol unreachable

ICMP_DUR_PORT 

port unreachable

ICMP_DUR_FRAG 

fragmentation needed and DF set

ICMP_DUR_SR 

source route failed

55  {
56  /** net unreachable */
57  ICMP_DUR_NET = 0,
58  /** host unreachable */
59  ICMP_DUR_HOST = 1,
60  /** protocol unreachable */
61  ICMP_DUR_PROTO = 2,
62  /** port unreachable */
63  ICMP_DUR_PORT = 3,
64  /** fragmentation needed and DF set */
65  ICMP_DUR_FRAG = 4,
66  /** source route failed */
67  ICMP_DUR_SR = 5
68 };

◆ icmp_te_type

ICMP time exceeded codes

Enumerator
ICMP_TE_TTL 

time to live exceeded in transit

ICMP_TE_FRAG 

fragment reassembly time exceeded

71  {
72  /** time to live exceeded in transit */
73  ICMP_TE_TTL = 0,
74  /** fragment reassembly time exceeded */
75  ICMP_TE_FRAG = 1
76 };
ICMP_TE_TTL
Definition: icmp.h:73
ICMP_DUR_SR
Definition: icmp.h:67
ICMP_DUR_NET
Definition: icmp.h:57
ICMP_DUR_FRAG
Definition: icmp.h:65
ICMP_DUR_PROTO
Definition: icmp.h:61
ICMP_DUR_PORT
Definition: icmp.h:63
ICMP_TE_FRAG
Definition: icmp.h:75
ICMP_DUR_HOST
Definition: icmp.h:59