[1249] in linux-net channel archive
Re: 1.3.36 looping in af_inet.c ?
daemon@ATHENA.MIT.EDU (Alan Cox)
Thu Oct 26 14:36:42 1995
From: Alan Cox <alan@cymru.net>
To: cm@kukuruz.ping.at (christian mock)
Date: Wed, 25 Oct 1995 11:22:22 +0100 (BST)
Cc: alan@cymru.net, linux-net@vger.rutgers.edu
In-Reply-To: <Pine.LNX.3.91.951024232347.469B-100000@kukuruz.ping.at> from "christian mock" at Oct 24, 95 11:30:25 pm
> named tries to bind to 0.0.0.0 -- the binds for the configured interfaces
> return OK), I found the following in af_inet.c (approx. line 225):
>
> /*
> * add the socket to the sock_array[]..
> */
> skp = sk->prot->sock_array + num;
> cli();
> while ((tmp = *skp) != NULL) {
> if (!(tmp->rcv_saddr & mask))
> break;
> }
> sk->next = tmp;
> *skp = sk;
> sti();
Has Linus been overoptimising again 8). I'll have a look tonight as well
Alan