Prusa MINI Firmware overview
icmp6.h File Reference
#include "lwip/arch.h"

Go to the source code of this file.

Classes

struct  icmp6_hdr
 
struct  icmp6_echo_hdr
 

Enumerations

enum  icmp6_type {
  ICMP6_TYPE_DUR = 1, ICMP6_TYPE_PTB = 2, ICMP6_TYPE_TE = 3, ICMP6_TYPE_PP = 4,
  ICMP6_TYPE_PE1 = 100, ICMP6_TYPE_PE2 = 101, ICMP6_TYPE_RSV_ERR = 127, ICMP6_TYPE_EREQ = 128,
  ICMP6_TYPE_EREP = 129, ICMP6_TYPE_MLQ = 130, ICMP6_TYPE_MLR = 131, ICMP6_TYPE_MLD = 132,
  ICMP6_TYPE_RS = 133, ICMP6_TYPE_RA = 134, ICMP6_TYPE_NS = 135, ICMP6_TYPE_NA = 136,
  ICMP6_TYPE_RD = 137, ICMP6_TYPE_MRA = 151, ICMP6_TYPE_MRS = 152, ICMP6_TYPE_MRT = 153,
  ICMP6_TYPE_PE3 = 200, ICMP6_TYPE_PE4 = 201, ICMP6_TYPE_RSV_INF = 255
}
 
enum  icmp6_dur_code {
  ICMP6_DUR_NO_ROUTE = 0, ICMP6_DUR_PROHIBITED = 1, ICMP6_DUR_SCOPE = 2, ICMP6_DUR_ADDRESS = 3,
  ICMP6_DUR_PORT = 4, ICMP6_DUR_POLICY = 5, ICMP6_DUR_REJECT_ROUTE = 6
}
 
enum  icmp6_te_code { ICMP6_TE_HL = 0, ICMP6_TE_FRAG = 1 }
 
enum  icmp6_pp_code { ICMP6_PP_FIELD = 0, ICMP6_PP_HEADER = 1, ICMP6_PP_OPTION = 2 }
 

Variables

PACK_STRUCT_BEGIN struct icmp6_hdr PACK_STRUCT_STRUCT
 

Detailed Description

ICMP6 protocol definitions

Enumeration Type Documentation

◆ icmp6_type

enum icmp6_type

ICMP type

Enumerator
ICMP6_TYPE_DUR 

Destination unreachable

ICMP6_TYPE_PTB 

Packet too big

ICMP6_TYPE_TE 

Time exceeded

ICMP6_TYPE_PP 

Parameter problem

ICMP6_TYPE_PE1 

Private experimentation

ICMP6_TYPE_PE2 

Private experimentation

ICMP6_TYPE_RSV_ERR 

Reserved for expansion of error messages

ICMP6_TYPE_EREQ 

Echo request

ICMP6_TYPE_EREP 

Echo reply

ICMP6_TYPE_MLQ 

Multicast listener query

ICMP6_TYPE_MLR 

Multicast listener report

ICMP6_TYPE_MLD 

Multicast listener done

ICMP6_TYPE_RS 

Router solicitation

ICMP6_TYPE_RA 

Router advertisement

ICMP6_TYPE_NS 

Neighbor solicitation

ICMP6_TYPE_NA 

Neighbor advertisement

ICMP6_TYPE_RD 

Redirect

ICMP6_TYPE_MRA 

Multicast router advertisement

ICMP6_TYPE_MRS 

Multicast router solicitation

ICMP6_TYPE_MRT 

Multicast router termination

ICMP6_TYPE_PE3 

Private experimentation

ICMP6_TYPE_PE4 

Private experimentation

ICMP6_TYPE_RSV_INF 

Reserved for expansion of informational messages

47  {
48  /** Destination unreachable */
49  ICMP6_TYPE_DUR = 1,
50  /** Packet too big */
51  ICMP6_TYPE_PTB = 2,
52  /** Time exceeded */
53  ICMP6_TYPE_TE = 3,
54  /** Parameter problem */
55  ICMP6_TYPE_PP = 4,
56  /** Private experimentation */
57  ICMP6_TYPE_PE1 = 100,
58  /** Private experimentation */
59  ICMP6_TYPE_PE2 = 101,
60  /** Reserved for expansion of error messages */
61  ICMP6_TYPE_RSV_ERR = 127,
62 
63  /** Echo request */
64  ICMP6_TYPE_EREQ = 128,
65  /** Echo reply */
66  ICMP6_TYPE_EREP = 129,
67  /** Multicast listener query */
68  ICMP6_TYPE_MLQ = 130,
69  /** Multicast listener report */
70  ICMP6_TYPE_MLR = 131,
71  /** Multicast listener done */
72  ICMP6_TYPE_MLD = 132,
73  /** Router solicitation */
74  ICMP6_TYPE_RS = 133,
75  /** Router advertisement */
76  ICMP6_TYPE_RA = 134,
77  /** Neighbor solicitation */
78  ICMP6_TYPE_NS = 135,
79  /** Neighbor advertisement */
80  ICMP6_TYPE_NA = 136,
81  /** Redirect */
82  ICMP6_TYPE_RD = 137,
83  /** Multicast router advertisement */
84  ICMP6_TYPE_MRA = 151,
85  /** Multicast router solicitation */
86  ICMP6_TYPE_MRS = 152,
87  /** Multicast router termination */
88  ICMP6_TYPE_MRT = 153,
89  /** Private experimentation */
90  ICMP6_TYPE_PE3 = 200,
91  /** Private experimentation */
92  ICMP6_TYPE_PE4 = 201,
93  /** Reserved for expansion of informational messages */
94  ICMP6_TYPE_RSV_INF = 255
95 };

◆ icmp6_dur_code

ICMP destination unreachable codes

Enumerator
ICMP6_DUR_NO_ROUTE 

No route to destination

ICMP6_DUR_PROHIBITED 

Communication with destination administratively prohibited

ICMP6_DUR_SCOPE 

Beyond scope of source address

ICMP6_DUR_ADDRESS 

Address unreachable

ICMP6_DUR_PORT 

Port unreachable

ICMP6_DUR_POLICY 

Source address failed ingress/egress policy

ICMP6_DUR_REJECT_ROUTE 

Reject route to destination

98  {
99  /** No route to destination */
100  ICMP6_DUR_NO_ROUTE = 0,
101  /** Communication with destination administratively prohibited */
103  /** Beyond scope of source address */
104  ICMP6_DUR_SCOPE = 2,
105  /** Address unreachable */
106  ICMP6_DUR_ADDRESS = 3,
107  /** Port unreachable */
108  ICMP6_DUR_PORT = 4,
109  /** Source address failed ingress/egress policy */
110  ICMP6_DUR_POLICY = 5,
111  /** Reject route to destination */
113 };

◆ icmp6_te_code

ICMP time exceeded codes

Enumerator
ICMP6_TE_HL 

Hop limit exceeded in transit

ICMP6_TE_FRAG 

Fragment reassembly time exceeded

116  {
117  /** Hop limit exceeded in transit */
118  ICMP6_TE_HL = 0,
119  /** Fragment reassembly time exceeded */
120  ICMP6_TE_FRAG = 1
121 };

◆ icmp6_pp_code

ICMP parameter code

Enumerator
ICMP6_PP_FIELD 

Erroneous header field encountered

ICMP6_PP_HEADER 

Unrecognized next header type encountered

ICMP6_PP_OPTION 

Unrecognized IPv6 option encountered

124  {
125  /** Erroneous header field encountered */
126  ICMP6_PP_FIELD = 0,
127  /** Unrecognized next header type encountered */
128  ICMP6_PP_HEADER = 1,
129  /** Unrecognized IPv6 option encountered */
130  ICMP6_PP_OPTION = 2
131 };

Variable Documentation

◆ PACK_STRUCT_STRUCT

ICMP6_TYPE_TE
Definition: icmp6.h:53
ICMP6_TYPE_EREP
Definition: icmp6.h:66
ICMP6_TYPE_PE2
Definition: icmp6.h:59
ICMP6_TYPE_MLR
Definition: icmp6.h:70
ICMP6_PP_HEADER
Definition: icmp6.h:128
ICMP6_TYPE_PP
Definition: icmp6.h:55
ICMP6_TYPE_RS
Definition: icmp6.h:74
ICMP6_TYPE_MRS
Definition: icmp6.h:86
ICMP6_PP_FIELD
Definition: icmp6.h:126
ICMP6_DUR_NO_ROUTE
Definition: icmp6.h:100
ICMP6_TYPE_PTB
Definition: icmp6.h:51
ICMP6_DUR_POLICY
Definition: icmp6.h:110
ICMP6_TYPE_PE1
Definition: icmp6.h:57
ICMP6_TYPE_EREQ
Definition: icmp6.h:64
ICMP6_DUR_PROHIBITED
Definition: icmp6.h:102
ICMP6_TE_HL
Definition: icmp6.h:118
ICMP6_TYPE_PE4
Definition: icmp6.h:92
ICMP6_TYPE_RA
Definition: icmp6.h:76
ICMP6_TYPE_RD
Definition: icmp6.h:82
ICMP6_TYPE_NS
Definition: icmp6.h:78
ICMP6_DUR_SCOPE
Definition: icmp6.h:104
ICMP6_PP_OPTION
Definition: icmp6.h:130
ICMP6_TYPE_RSV_INF
Definition: icmp6.h:94
ICMP6_TYPE_DUR
Definition: icmp6.h:49
ICMP6_DUR_REJECT_ROUTE
Definition: icmp6.h:112
ICMP6_TYPE_PE3
Definition: icmp6.h:90
ICMP6_TYPE_MRT
Definition: icmp6.h:88
ICMP6_TE_FRAG
Definition: icmp6.h:120
ICMP6_TYPE_MLD
Definition: icmp6.h:72
ICMP6_TYPE_RSV_ERR
Definition: icmp6.h:61
ICMP6_TYPE_MRA
Definition: icmp6.h:84
ICMP6_TYPE_NA
Definition: icmp6.h:80
ICMP6_DUR_PORT
Definition: icmp6.h:108
ICMP6_TYPE_MLQ
Definition: icmp6.h:68
ICMP6_DUR_ADDRESS
Definition: icmp6.h:106