summaryrefslogtreecommitdiffstats
path: root/contrib/telnet/telnetd/telnetd.c
Commit message (Collapse)AuthorAgeFilesLines
* o Make telnet[d] -S (IP TOS) flag really work. We do not havemaxim2005-01-091-1/+10
| | | | | | | | | /etc/iptos implementation so only numeric values supported. o telnetd.8: steal the -S flag description from telnet.1, bump the date of the document. MFC after: 6 weeks
* o Add -4 and -6 flags to a man page and usage(). Bump the man pagemaxim2005-01-051-1/+2
| | | | date.
* Implement what has been documented for a long time: make -debug switchharti2003-08-131-0/+5
| | | | | | on socket debugging. Okay'ed by: markm
* Fix up external variables named "debug" that have a horrible habitmarkm2003-05-111-1/+1
| | | | | | | | of conflicting with other, similarly named functions in static libraries. This is done mostly by renaming the var if it is shared amongst modules, or making it static otherwise. OK'ed by: re(scottl)
* Use __FBSDID vs. rcsid[]. Also protect sccs[] and copyright[] from GCC 3.3.obrien2003-05-041-4/+4
|
* Damn. The previous mega-commit was incomplete WRT ANSIfication. Thismarkm2001-11-301-6/+6
| | | | fixes that.
* Very large style makeover.markm2001-11-301-218/+73
| | | | | | | | | | | | | 1) ANSIfy. 2) Clean up ifdefs so that a) ones that never/always apply are appropriately either fully removed, or just the #if junk is removed. b) change #if defined(FOO) for appropiate values of FOO. (currently AUTHENTICATION and ENCRYPTION) 3) WARNS=2 fixing 4) GC other unused stuff This code can now be unifdef(1)ed to make non-crypto telnet.
* Manually unifdef(1) CRAY, UNICOS, hpux and sun uselsess code.markm2001-08-291-248/+0
|
* Code merge and diff reduce with "base" telnet. This is the "later"markm2001-08-201-4/+5
| | | | | telnet, so it was treated as the reference code, except where later commits were made to "base" telnet.
* output_data(), output_datalen() and netflush() didn't actually guaranteekris2001-07-231-1/+0
| | | | | | | | | | | | | to do what they are supposed to: under some circumstances output data would be truncated, or the buffer would not actually be flushed (possibly leading to overflows when the caller assumes the operation succeeded). Change the semantics so that these functions ensure they complete the operation before returning. Comment out diagnostic code enabled by '-D reports' which causes an infinite recursion and an eventual crash. Patch developed with assistance from ru and assar.
* Fixed the exploitable remote buffer overflow.ru2001-07-191-32/+17
| | | | | | Reported on: bugtraq Obtained from: Heimdal, NetBSD Reviewed by: obrien, imp
* Fix typo: wierd -> weird.asmodai2001-02-061-1/+1
| | | | There is no such thing as wierd in the english language.
* String paranoia fix. Synched from normal telnet.asmodai2000-11-301-2/+2
|
* Correct definition of MAXHOSTNAMELEN in ifdef'ed code.kris2000-11-261-1/+1
| | | | | Submitted by: Edwin Groothuis <mavetju@chello.nl> PR: bin/22787
* another tcp apps IPv6 updates.(should be make world safe)shin2000-01-271-35/+55
| | | | | | | ftp, telnet, ftpd, faithd also telnet related sync with crypto, secure, kerberosIV Obtained from: KAME project
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* MF libexec/telnetd: Determine the host name using an array size ofbrian1999-04-081-2/+3
| | | | | MAXHOSTNAMELEN and call trimdomain() before implementing the -u option.
* MF libexec/telnetd: MAXHOSTNAMELEN & -u fixes.brian1999-04-071-6/+15
|
* Use realhostname().brian1999-04-061-39/+9
|
* MF src/libexec/telnetd: Verify the reverse DNS lookupbrian1999-04-061-2/+18
| | | | | ala rlogind. Suggested by: markm
* Old stuff laying around: Don't use getstr which can conflict with somepeter1998-12-161-5/+5
| | | | curses/termcap/terminfo implementations and causes recursion.
* MFC: no \n in syslog strings. Change -P to -p in flags. EOF -> -1. Use err(3).charnier1997-12-081-47/+38
|
* PR: bin/771 and bin/1037 are resolved by this changeuhclem1997-10-081-0/+16
| | | | | | | | | | | | | | | | This change changes the default handling of linemode so that older and/or stupider telnet clients can still get wakeup characters like <ESC> and <CTRL>D to work correctly multiple times on the same line, as in csh "set filec" operations. It also causes CR and LF characters to be read by apps in certain terminal modes consistently, as opposed to returning CR sometimes and LF sometimes, which broke existing apps. The change was shown to fix the problem demonstrated in the FreeBSD telnet client, along with the telnet client in Solaris, SCO, Windows '95 & NT, DEC OSF, NCSA, and others. A similar change was incorporated in the non-crypto version of telnetd. This resolves bin/771 and bin/1037.
* Bring the FreeBSD changes to the virgin sources.markm1997-09-071-36/+39
|
* Initial import of BSD telnet. This will be used to build the kerberisedmarkm1997-09-041-0/+1608
telnet, and after userland diffs have been merged in, will be used to build the non-kerberised sources as well. (See unifdef(1) for details)
OpenPOWER on IntegriCloud