Commit 538665f
committed
cps: correct returned error code for RTM_DELROUTE
Although the Linux kernel uses ENOENT for similar situations (e.g.
when RTM_NEWROUTE tries to replace an entry that does not exist),
it uses ESRCH for RTM_DELROUTE. Thus, this patch replaces ENOENT
with ESRCH when returning a not-found error for RTM_DELROUTE.
This patch was motivated by many enigmatic log entries from Bird
like this one:
<DATE> <SERVER> bird[<PID>]: Netlink: No such file or directory1 parent 1ee27cb commit 538665f
1 file changed
+18
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
293 | 292 | | |
294 | | - | |
| 293 | + | |
295 | 294 | | |
296 | | - | |
| 295 | + | |
297 | 296 | | |
298 | | - | |
299 | | - | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
300 | 301 | | |
301 | 302 | | |
302 | 303 | | |
303 | | - | |
| 304 | + | |
304 | 305 | | |
305 | | - | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
306 | 317 | | |
307 | 318 | | |
308 | 319 | | |
| |||
0 commit comments