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:
csjp 2005-05-19 21:09:44 +00:00
parent e4e6ba7230
commit 45d9993b41

View File

@ -1189,6 +1189,8 @@ fprintlog(struct filed *f, int flags, const char *msg)
logerror("sendto");
errno = e;
switch (errno) {
case ENOBUFS:
case ENETDOWN:
case EHOSTUNREACH:
case EHOSTDOWN:
break;