From: Roy Marples Date: Fri, 22 Feb 2008 14:53:02 +0000 (+0000) Subject: As we don't use the udp socket, set the recieve buffer to 1. X-Git-Tag: v3.2.3~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56f32d403768f7cb71e2c595206b39dc6640ec52;p=thirdparty%2Fdhcpcd.git As we don't use the udp socket, set the recieve buffer to 1. --- diff --git a/socket.c b/socket.c index ef0a21a8..34a1cfd1 100644 --- a/socket.c +++ b/socket.c @@ -474,6 +474,10 @@ int open_socket (interface_t *iface, int protocol) &n, sizeof (n)) == -1) logger (LOG_ERR, "SO_REUSEADDR: %s", strerror (errno)); + if (setsockopt (fd, SOL_SOCKET, SO_RCVBUF, + &n, sizeof (n)) == -1) + logger (LOG_ERR, "SO_RCVBUF: %s", + strerror (errno)); strncpy (ifr.ifr_name, iface->name, sizeof (ifr.ifr_name)); if (setsockopt (fd, SOL_SOCKET, SO_BINDTODEVICE,