Commit 6bcd7d9
committed
ip,ip6: remove the builtin ICMP echo API
The grcli ping and traceroute commands are gone, and nothing else ever
called GR_IP4_ICMP_SEND, GR_IP4_ICMP_RECV or their IPv6 counterparts.
What they drove goes with them: the session pool that held a reply until
a client came to collect it, the two icmp_local_send nodes that built the
echo requests, and the parsers that walked an error message looking for
one of our own probes.
The punt callback loses its session lookup and hands everything to the
kernel. It keeps the drain check the pool used to do: a message that came
in on an interface being removed is dropped rather than quietly delivered
on the VRF loopback, which is where it would land once the addresses of
that interface are gone.
Deciding whether a message is well formed no longer happens here. The
input nodes do it, so what reaches the callback has already been checked
against RFC 792 and RFC 4443, and the errno the parsers used to carry is
not needed to tell a malformed message from one that is simply not ours.
icmp_output stays, icmp_input and ip_error both feed it, so grout still
answers echo requests and still emits the time exceeded that traceroute
walks through.
Signed-off-by: Maxime Leroy <maxime@leroys.fr>1 parent f559cfc commit 6bcd7d9
20 files changed
Lines changed: 424 additions & 1553 deletions
File tree
- api
- docs
- modules
- infra/control
- ip6
- api
- control
- datapath
- ip
- api
- control
- datapath
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
168 | 167 | | |
169 | 168 | | |
170 | 169 | | |
171 | 170 | | |
172 | 171 | | |
173 | 172 | | |
174 | | - | |
175 | 173 | | |
176 | 174 | | |
177 | 175 | | |
| |||
218 | 216 | | |
219 | 217 | | |
220 | 218 | | |
221 | | - | |
222 | 219 | | |
223 | 220 | | |
224 | 221 | | |
| |||
228 | 225 | | |
229 | 226 | | |
230 | 227 | | |
231 | | - | |
232 | 228 | | |
233 | 229 | | |
234 | 230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
Loading
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
| |||
117 | 115 | | |
118 | 116 | | |
119 | 117 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | 118 | | |
152 | 119 | | |
153 | 120 | | |
| |||
0 commit comments