From: Patrick McHardy <[EMAIL PROTECTED]>
Date: Thu, 21 Jul 2005 02:36:13 +0200

> ctnetlink needs large socket buffer sizes. To avoid increasing
> the system wide limit we would like to have something that allows
> CAP_NET_ADMIN to override these limits. The first idea was to
> change the SO_{SND,RCV}BUF behaviour, but since a valid way of
> getting the largest possible size is to use ~0 this would possibly
> break existing applications. So this patch introduces two new
> socket options, SO_SNDBUFFORCE and SO_RCVBUFFORCE, that allow to
> set it to any value.

I couldn't come up with a better way to do this, so the patch
is applied to my net-2.6.14 tree.

I thought perhaps we could special case "~0", but actually there
are many programs which use an algorithm like "double socket
buffer size until reading it back does not show an increase".
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to