Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 directory
- Loading branch information