Remove SO_BSDCOMPAT since it was only support by Linux 2.0 and 2.2,
authorJoey Schulze <joey@infodrom.org>
Thu, 24 May 2007 14:04:22 +0000 (14:04 +0000)
committerJoey Schulze <joey@infodrom.org>
Thu, 24 May 2007 14:04:22 +0000 (14:04 +0000)
ignored in 2.4 and emitted a warning in 2.6

syslogd.c

index dacd7f0..be7911e 100644 (file)
--- a/syslogd.c
+++ b/syslogd.c
@@ -1277,15 +1277,6 @@ static int create_inet_socket()
                close(fd);
                return -1;
        }
-       /* We need to enable BSD compatibility. Otherwise an attacker
-        * could flood our log files by sending us tons of ICMP errors.
-        */
-       if (setsockopt(fd, SOL_SOCKET, SO_BSDCOMPAT, \
-                       (char *) &on, sizeof(on)) < 0) {
-               logerror("setsockopt(BSDCOMPAT), suspending inet");
-               close(fd);
-               return -1;
-       }
        /* We must not block on the network socket, in case a packet
         * gets lost between select and recv, otherise the process
         * will stall until the timeout, and other processes trying to