Re: Linux-1.3.67 - codename "Greased Weasel got Alzheimers"

Colten Edwards (edwards@panasync.canuck.ca)
Wed, 21 Feb 1996 23:18:26 -0600 (CST)


On Tue, 20 Feb 1996, Linus Torvalds wrote:

> Uhhuh..
>
>
> The new Linux anthem will be "He's an idiot, but he's ok", as performed by
> Monthy Python. You'd better start practicing.
>
> Linus

@@ -1873,9 +1873,9 @@
* This will destroy it. The timers will take care of actually
* free'ing up the memory.
*/
- sk->dead = 1;
tcp_cache_zap(); /* Kill the cache again. */
release_sock(sk);
+ sk->dead = 1;

wonder what would happen if you forgot to put the last line of the patch
in place on a running kernel :)

I still have trouble connecting to a localhost irc server though. In fact
I cannot connect at all. Does anyone see anything wrong with the
following code?? I found this in the irc client source and as the xntp
patch I seen was patching this same type of code thought maybe something
might be wrong with this in the irc client.

extern void
set_socket_options(s)
int s;
{
#ifdef ESIX
mark_socket(Client->read);
#else
#ifndef NO_STRUCT_LINGER
struct linger lin;
#endif
int i;
int opt = 1;
int optlen = sizeof(opt);

i = setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char *) &opt, optlen);
opt = 1;
i = setsockopt(s, SOL_SOCKET, SO_KEEPALIVE, (char *) &opt, optlen);
#ifndef NO_STRUCT_LINGER
lin.l_onoff = lin.l_linger = 0;
i = setsockopt(s, SOL_SOCKET, SO_LINGER, (char *) &lin, optlen);
#endif /* NO_STRUCT_LINGER */
#endif /* ESIX */
}

Colten Edwards