[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4F743115.4000600@parallels.com>
Date: Thu, 29 Mar 2012 13:53:25 +0400
From: Pavel Emelyanov <xemul@...allels.com>
To: Ben Hutchings <bhutchings@...arflare.com>
CC: Linux Netdev List <netdev@...r.kernel.org>,
David Miller <davem@...emloft.net>
Subject: Re: [PATCH 2/3] tcp: Initial repair mode
On 03/29/2012 12:39 AM, Ben Hutchings wrote:
> On Wed, 2012-03-28 at 19:37 +0400, Pavel Emelyanov wrote:
> [...]
>> * Ability to forcibly bind a socket to a port
>>
>> The sk->sk_reuse is set to 2 denoting, that the socket is question
>> should be bound as if all the others in the system are configured
>> with the SO_REUSEADDR option.
>
> Shouldn't this constant be named?
Agree, I will fix this up.
> [...]
>> --- a/net/ipv4/tcp.c
>> +++ b/net/ipv4/tcp.c
> [...]
>> + case TCP_REPAIR_QUEUE:
>> + if (!tp->repair)
>> + err = -EPERM;
>> + else if (val <= TCP_QUEUES_NR)
>
> Off-by-one.
Oops :( Thanks for noticing!
>> + tp->repair_queue = val;
>> + else
>> + err = -EINVAL;
>> + break;
> [...]
>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists