Add cases for ENOBUFS and ENETDOWN. We need to make sure that we
catch all transient errors. This fixes situations where transient error conditions such as network interfaces losing carrier signals or the system running out of mbufs would result in the permanent removal of forwarding syslog messages. MFC after: 1 week
This commit is contained in:
parent
419c028b36
commit
8e56d2ee05
@ -1189,6 +1189,8 @@ fprintlog(struct filed *f, int flags, const char *msg)
|
|||||||
logerror("sendto");
|
logerror("sendto");
|
||||||
errno = e;
|
errno = e;
|
||||||
switch (errno) {
|
switch (errno) {
|
||||||
|
case ENOBUFS:
|
||||||
|
case ENETDOWN:
|
||||||
case EHOSTUNREACH:
|
case EHOSTUNREACH:
|
||||||
case EHOSTDOWN:
|
case EHOSTDOWN:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user