Re: sosetstate/soclrstate

2018-01-09 Thread Alexander Bluhm
On Tue, Jan 09, 2018 at 11:23:32AM +0100, Martin Pieuchot wrote: > --- netinet6/ip6_output.c 1 Sep 2017 15:05:31 - 1.232 > +++ netinet6/ip6_output.c 9 Jan 2018 10:16:10 - > @@ -1033,12 +1033,12 @@ int > ip6_ctloutput(int op, struct socket *so, int level, int optname, >

Re: sosetstate/soclrstate

2018-01-09 Thread Martin Pieuchot
On 09/01/18(Tue) 00:42, Alexander Bluhm wrote: > On Mon, Jan 08, 2018 at 03:50:14PM +0100, Martin Pieuchot wrote: > > ok? > > OK bluhm@ with a few remarks. visa@ pointed out that since all the writes are done under the socket lock it is enough to use an aligned int32 variable. So here's an

Re: sosetstate/soclrstate

2018-01-08 Thread Alexander Bluhm
On Mon, Jan 08, 2018 at 03:50:14PM +0100, Martin Pieuchot wrote: > ok? OK bluhm@ with a few remarks. > @@ -1422,12 +1422,12 @@ somove(struct socket *so, int wait) > > /* Receive buffer did shrink by len bytes, adjust oob. */ > state = so->so_state; > - so->so_state &=