From owner-freebsd-questions Tue Sep 26 2: 8:18 2000 Delivered-To: freebsd-questions@freebsd.org Received: from pericles.IPAustralia.gov.au (pericles.IPAustralia.gov.au [202.14.186.30]) by hub.freebsd.org (Postfix) with ESMTP id BE66F37B422 for ; Tue, 26 Sep 2000 02:07:46 -0700 (PDT) Received: (from smap@localhost) by pericles.IPAustralia.gov.au (8.9.3/8.9.3) id UAA96473; Tue, 26 Sep 2000 20:07:05 +1100 (EST) (envelope-from anwsmh@IPAustralia.Gov.AU) Received: from wf-144.aipo.gov.au(192.168.1.144) by pericles.IPAustralia.gov.au via smap (V2.0) id xma096469; Tue, 26 Sep 00 20:06:37 +1100 Received: from localhost (anwsmh@localhost) by stan (8.9.3/8.9.3) with ESMTP id UAA01740; Tue, 26 Sep 2000 20:06:35 +1100 (EST) (envelope-from anwsmh@IPAustralia.Gov.AU) X-Authentication-Warning: stan: anwsmh owned process doing -bs Date: Tue, 26 Sep 2000 20:06:34 +1100 (EST) From: Stanley Hopcroft X-Sender: anwsmh@stan To: Odhiambo Washington Cc: Stanley Hopcroft , FreeBSD Questions Subject: Re: telnetd: All network ports in use. After new 4.1-R kernel; Ok with GENERIC. In-Reply-To: <20000926102731.I11998@poeza.iconnect.co.ke> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dear Sir, I am writing to thank you for your letter about this matter, On Tue, 26 Sep 2000, Odhiambo Washington wrote: > * Stanley Hopcroft [20000926 02:39]: > =>Dear Ladies and Gentlmen, > => > =>I am writing to ask your help with this message > => > =>Connected to blah. > =>Escape character is '^]'. > =>telnetd: All network ports in use. > =>Connection closed by foreign host. > => > =>Why isn't there a number after pty ? > > I MUST have a number to specify the no. of ttys available!!!!! > put, say 16, after it and recompile. > > > => > =>It's possible, however, that I commmented it out mistakenly when trying > =>to do so for the tun or md pseudo-devices. > => > > I am not sure. > > =>My reasons for asking include > => > =>1 There is nothing in the FAQ about this > =>2 Frequent advice in "Questions" to rebuild the kernel with more > =>ptys. If I haven't touched ptys, and perhaps others are the same, then > =>this advice is useless. > =>3 This is the second time this has happened to me with a 4.x kernel > =>(never in 3.x or 2.1.x and 2.2.x). I don't think anything's wrong with > =>the 4.x kernel but this may be a common mistake that others can avoid. > => > > look at the explanations in /usr/src/sys/i386/conf/LINT and say, "If you're not very clever you should be conciliatory. -- Benjamin Disraeli" I'll try and follow this advice. I need to. stan> cd /usr/src/sys/i386/conf/ stan> uname -a FreeBSD stan.aipo.gov.au 4.1-RELEASE FreeBSD 4.1-RELEASE #0: Fri Sep 1 13:27:48 EST 2000 root@stan.aipo.gov.au:/usr/src/sys/compile/STAN2 i386 stan> grep -i -3 pty LINT ##################################################################### # MISCELLANEOUS DEVICES AND OPTIONS # The `pty' device usually turns out to be ``effectively mandatory'', # as it is required for `telnetd', `rlogind', `screen', `emacs', and # `xterm', among others. pseudo-device pty #Pseudo ttys pseudo-device speaker #Play IBM BASIC-style noises out your speaker pseudo-device gzip #Exec gzipped a.out's pseudo-device vn #Vnode driver (turns a file into a device) pseudo-device md #Memory/malloc disk pseudo-device snp 3 #Snoop device - to look at pty/vty/etc.. pseudo-device ccd 4 #Concatenated disk driver # Configuring Vinum into the kernel is not necessary, since the kld stan> My reading of this is that there is no explanation of the number of ptys in LINT. Where else should I look ? I can't understand the code in kern/tty_pty.c. stan> grep -i pty STAN2 pseudo-device pty # Pseudo-ttys (telnet etc) stan> Should there be a number after ptys ? (like bpf ). If so, why does this kernel accept telnet connections ? > > > =>Thank you, > > > -- > Odhiambo Washington Inter-Connect Ltd., > wash@iconnect.co.ke 5th Flr Furaha Plaza > Tel: 254 11 222604 Nkrumah Rd., > Fax: 254 11 222636 PO Box 83613 MOMBASA, KENYA. > > After all, it is only the mediocre who are always at their best. -Jean > Giraudoux > Thank you, Yours sincerely. S Hopcroft Network Specialist IP Australia +61 2 6283 3189 +61 2 6281 1353 FAX To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message