markm [Mon, 20 Aug 2001 12:28:40 +0000 (12:28 +0000)]
Code merge and diff reduce with "base" telnet. This is the "later"
telnet, so it was treated as the reference code, except where later
commits were made to "base" telnet.
markm [Mon, 20 Aug 2001 12:12:27 +0000 (12:12 +0000)]
Feature merging and diff reduction between this code and crypto telnet.
Also remove conditional (AUTHENTICATION) code as we have never compiled
it here, and it is doubtful that it even works in this scenario.
kris [Mon, 20 Aug 2001 06:16:04 +0000 (06:16 +0000)]
The timed protocol is not implemented in a compatible way by all vendors;
the size of the tsp_name field is OS-dependent. 4.3BSD used a 32-byte
field, FreeBSD uses MAXHOSTNAMELEN and RedHat apparently uses a 64-byte
field. As a result, sanity checking code added a few months ago to detect
short packets will fail when interoperating with one of these other vendors.
Change the short packet detection code to expect a minimum packet size
corresponding to the 4.3BSD implementation, which should be a safe minimum
size.
Submitted by: Stephen Whiteley <stevew@best.com> (based on)
PR: misc/29867
brian [Mon, 20 Aug 2001 00:46:33 +0000 (00:46 +0000)]
When attempting to change the default route, don't write the gateway
and mask to the routing socket, otherwise the update fails.
Warning provided by: markm
The code here was broken for FreeBSD when IPv6 support was added, but
was fixed for OpenBSD. OpenBSD expects the gateway and mask to be
supplied and fails the update otherwise.
dillon [Mon, 20 Aug 2001 00:41:12 +0000 (00:41 +0000)]
Limit the amount of KVM reserved for the buffer cache and for swap-meta
information. The default limits only effect machines with > 1GB of ram
and can be overriden with two new kernel conf variables VM_SWZONE_SIZE_MAX
and VM_BCACHE_SIZE_MAX, or with loader variables kern.maxswzone and
kern.maxbcache. This has the effect of leaving more KVM available for
sizing NMBCLUSTERS and 'maxusers' and should avoid tripups where a sysad
adds memory to a machine and then sees the kernel panic on boot due to
running out of KVM.
Also change the default swap-meta auto-sizing calculation to allocate half
of what it was previously allocating. The prior defaults were way too high.
Note that we cannot afford to run out of swap-meta structures so we still
stay somewhat conservative here.
dd [Sun, 19 Aug 2001 23:36:49 +0000 (23:36 +0000)]
Expand a little on the note about apm_battery. Note that apmd can
execute commands when the battery level changes, and point users at
the examples in /etc/apmd.conf since this stuff isn't (yet?)
documented in the manual page. Also note its MFC.
imp [Sun, 19 Aug 2001 19:16:26 +0000 (19:16 +0000)]
Fix ISA machines. Also, make it possible for the new pccardd to run
on older kernels correctly. Terminate the loop when we find a
suitable irq. Also, only try to select from the pool. Cleaned up the
two cases (IRQ picked by the user and ?) into one.
kris [Sun, 19 Aug 2001 08:19:37 +0000 (08:19 +0000)]
Silence non-constant format string warnings by marking functions
as __printflike()/__printf0like(), adding const, or adding missing "%s"
format strings, as appropriate.
imp [Sun, 19 Aug 2001 05:01:18 +0000 (05:01 +0000)]
Improve interlocking for card removal. We now can remove the card in
the ISR. We keep track of the card state and don't call the IRS when
the card isn't inserted. This helps quite a bit with card ejection
problems that Ian was seeing.
brian [Sat, 18 Aug 2001 19:07:13 +0000 (19:07 +0000)]
Back out the previous fix to deal with kernels that don't support IPv6,
and implement a far more subtle and correct fix.
The reason behind the infinite loop was that ppp was trying to make up
initial IPv6 numbers and wasn't giving up when it failed unexpectedly to
assign the addresses it just fabricated to it's interface (thinking that
the reason was because another interface was using the same address).
It now attempts this up to 100 times before just failing and trying to
muddle along (in reality, this should never happen more than a couple
of times unless our random number generator doesn't work).
Also, when IPv6 is not available, don't even try to assign the IPv6
interface address in the first place...
jake [Sat, 18 Aug 2001 18:11:13 +0000 (18:11 +0000)]
Increase the size of the phys_avail memory map. Implement pmap_dispose_proc.
Turn some more potentially import functions into nops so we can do stuff
until they matter.
jake [Sat, 18 Aug 2001 18:07:37 +0000 (18:07 +0000)]
Spell ta 1 correctly as ta %xcc, 1. Use %pil for critical enter/exit
instead of pstate.ie. Note that popc is not implemented in hardware
on certain ultras, so we can't use it for inline ffs (suck).
jhb [Sat, 18 Aug 2001 01:12:43 +0000 (01:12 +0000)]
Turn off SMP on Alpha for the time being. There are some memory ordering
issues that can result in panics and probably data corruption on SMP
systems right now. When they are fixed this can be turned back on.
obrien [Fri, 17 Aug 2001 22:54:26 +0000 (22:54 +0000)]
Re-initialize gp after a jsr.
When rtld runs the .fini section in a shared lib (C++), the code in
question from .../contrib/gdb/config/alpha/crtbegin.asm first calls
__do_globals_dtors_aux and then __do_frame_takedown. Unfortunately, the
value of gp after a jsr is undefined and in this case had changed from before
the call, probably as a result of calling code in some other shared library.
The normal calling convention for alpha is to re-initialize gp using
'ldgp gp,0(ra)' after a jsr instruction but in this case no such
re-initialization is done. This leads to a bogus value being read for the
address of __do_frame_takedown and a quick segfault.
dd [Fri, 17 Aug 2001 22:09:15 +0000 (22:09 +0000)]
Implement getpeereid(3), a front-end to the LOCAL_PEERCRED
socket option for the Unix domain. It's weaker than the
socket option (this only returns the uid and gid, while the
socket opt. can return the entire group list), and is
implemented mostly for compatibility with OpenBSD.
dd [Fri, 17 Aug 2001 22:01:18 +0000 (22:01 +0000)]
Implement a LOCAL_PEERCRED socket option which returns a
`struct xucred` with the credentials of the connected peer.
Obviously this only works (and makes sense) on SOCK_STREAM
sockets. This works for both the connect(2) and listen(2)
callers.
There is precise documentation of the semantics in unix(4).
dd [Fri, 17 Aug 2001 21:42:15 +0000 (21:42 +0000)]
When discussing optimization levels, don't put the compiler options in
.Op. None of the other manual pages do it when discussing options in
the main text, so this one shouldn't, either. Also, use .Pq instead
of another odd constructhyphenation isn't an issue here, since it's
desireable to have the contents of that digression appear together,
and it's already in another macro, anyway).
bmah [Fri, 17 Aug 2001 19:59:25 +0000 (19:59 +0000)]
Troll for MFCs that haven't been marked as such: KERNCONF, an(4)
support for Aironet 350, ed(4) support for Linksys cards, aac(4),
ssh(1) not SUID, passwd(1)/pw(8) support for passwd_format,
rc(8) deletes non-directories in /var/run and /var/spool/lock,
fmtcheck(3), sshd(8) X11Forwarding, sshd_config MaxStartups
deprecates ConnectionsPerPeriod.
Some of these MFCs are new, others were reflected in 4-STABLE's
release notes already, and still others were MFC-ed before prior
releases.
Relocate dgm->digi release note item to live next to digi.
Relocate an(4)/AIR350 note to be next to another an(4) entry.
Remove a duplicate entry documenting xargs(1) -J.
Port markup fixes: sysutils/cs9660_unicode, net/pim6dd, net/pim6sd.
ache [Fri, 17 Aug 2001 09:57:11 +0000 (09:57 +0000)]
fseek.c:
Resulting fseek() offset must fit in long, required by POSIX (pointed by bde),
so add LONG_MAX and final tests for it.
rewind.c:
1) add missing __sinit() as in fseek() it pretends to be.
2) use clearerr_unlocked() since we already lock stream before _fseeko()
3) don't zero errno at the end, it explicitely required by POSIX as the
only one method to test rewind() error condition.
4) don't clearerr() if error happens in _fseeko()