Modifications to Jnos 1.11d to yield version 1.11e:

global.h			Add explicit <endian.h> reference for linux.

{kernel,ksubr,unix}.c,proc.h	Fix UNIX chkstk and simplify UNIX constants.

smtpserv.c			Fix buffer overflow bug.  Increase stack size.

mailbox.c			Add LINEMODE_PROMPT_ALWAYS test.  Fix h cmd
				for aliases under Unix.

fingerd.c			Add FINGER_DIVULGE_IFCONFIG test.  Increase
				stack allocation.

ax25.c				Added NO_TOS_AX25_MAPPING test.

iface.c				Delete associated routes for 'detach encap'.

mboxgate.c,mailbox.h		Add AMPRNET tests to control T(elnet) cmd dest.
==============================================================================
Slackware Linux didn't indirectly include <endian.h> so I added an explicit
reference to solve compilation problems, in global.h.

I found that chkstk() in ksubr.c was failing under UNIX, so I fixed it, and
also created a MAINSTKBASE #define to simplify the UNIX code in kernel.c and
unix.c.

Robin G8ECJ demonstrated a Linux crash after smtp processed a message having
long lines (> 256 bytes).  Then Brandon KF8NH suggested how the buffer overflow
could happen.  I fixed it by reassigning the buffer begin address before each
read, in getmsgtxt() in smtpserv.c.

Demetre SV1UY asked for a way to always get a linemode more? prompt.  So I
added a test for the #define LINEMODE_PROMPT_ALWAYS to charmode_ok() in
mailbox.c.  I think most users, however, would prefer to use XP to toggle
between linemode and charmode prompting, when the default is inappropriate
(such as when connecting via telnet to the mailbox from a system to which you
connected via ax.25).

Philippe F4CEP asked that ifconfig be added as a finger pseudo-user.  I
did so, provided that FINGER_DIVULGE_IFCONFIG is #define'd.  fingerd.c was
modified.

Philippe F4CEP sent along a modification by Patrick F1GYG to have Jnos ignore
the TOS (type-of-service) bits in IP headers, when deciding to use datagram
(UI) or VC ax.25 packet transport methods.  This is useful when the interface
defaults must be obeyed, and can avoid sending a long datagram which exceeds
the interface paclen.  This is particularly noticeable when Jnos serves as
a router for Linux, which has some applications that can set TOS bits.  The
TOS bits are ignored when NO_TOS_AX25_MAPPING is #define'd at compile time.
I changed ax25.c.  I also couldn't resist optimizing the src a bit, where the
interface mode is obtained and tested.

Larry, WD9ESU reported a problem finding a help file for a mbox alias in the
Linux Jnos.  It turns out that the expectation is to use lower-case filenames
for all the .hlp files, but Jnos was looking for upper case alias filenames.
I changed dombhelp() in mailbox.c to be consistent and look only for lower
case .hlp filenames.  In DOS, case didn't matter!

Russ WL7LP reported problems with the Linux finger server under RedHat 6.0, and
I found that the stack allocated for the finger server was almost completely
used under RH5.2, so I increased its size in fingerd.c.  This fixes the RH6.0
problem.

Stuart G7JYF reported a stack overflow problem in smtpserv() under Linux.
I found the stack was sometimes short about 60 words.  I decided to increase
the stack by 150 words when HOLD_LOCAL_MSGS is #define'd.  This ought to
help; the effect of the ukmods on stack usage seems innocuous at this point.

I modified if_detach() to just delete any associated routes, when the interface
is the Encap interface.  This should aid updating a running Jnos system when
a batch of new encap routes are obtained, by allowing all such routes to be
deleted by a 'detach encap' command.  In any case, no actual detach is done.

I added the ability to limit a mailbox user to telnetting to only, or never to,
amprnet destinations.  This feature is enabled in mboxgate.c when AMPRNET is
#define'd to a numeric value, presumably 44, but in any case equal to the first
octet of the Telnet destination IP address to be limited.  Two new permissions
flags were defined (in mailbox.h):
  #define T_NO_AMPRNET   4194304L  /* 0x400000 Disallow Telnet to 44/8 */
  #define T_AMPRNET_ONLY 8388608L  /* 0x800000 Allow Telnet to only 44/8 */
I expect most users wanting to use this feature will add:
  #define AMPRNET 44    /* Test mbox Telnet cmd destinations */
to their config.h file.  Otherwise, leave it undefined to minimize code space.
