Nick Hibma [Sun, 13 Aug 2000 18:39:24 +0000 (18:39 +0000)]
From NetBSD:
Make it possible to move a device to its unconfigured state by
using config #0.
Add some comments.
Change error reporting in port reset function.
usbd_devinfo_vp(): search the know devs array also if the device doesn't
return product description (e.g. Kye's Genius NetScroll mouse returns
vendor, but not product); the strings returned by device are still
preferred to those in the array, though
Complete migration of aliases file to /etc/mail/aliases.
The maintainers of share/examples/diskless/README.TEMPLATING and mergemaster
have been contacted so those may be updated as well.
Josef Karthauser [Sun, 13 Aug 2000 12:36:40 +0000 (12:36 +0000)]
Define SUPHOST. If this is set a '-h ${SUPHOST}' is added to the
SUPFLAGS when a 'make update' is run. This means that the supfile
doesn't need to be edited because the -h will override the
CHANGE_THIS.FreeBSD.org host.
Josef Karthauser [Sun, 13 Aug 2000 12:17:03 +0000 (12:17 +0000)]
Un-deprecate the -G flag at obrien's request. Colour sequences are still
dependent upon the output being directed to a terminal however.
(Use the CLICOLOR_FORCE variable to force output).
Add alaises as another file to install into /etc/mail/.
Rename the variable from NOSPAM to ETCMAIL as the list of files actually
only contains one antispam related file.
Warner Losh [Sun, 13 Aug 2000 01:40:06 +0000 (01:40 +0000)]
Always build and install suidperl. Only install suidperl setuid when
ENABLE_SUIDPERL is set to true. When perl is updated to remove the
fork mail code, additional warnings will enable the users to know what
is gonig on and how to correct it. Markm will make those commits as
part of his perl patch integration. suidperl is installed with
execute permissions so that markm's added error messages wil be seen
by the user.
Josef Karthauser [Sat, 12 Aug 2000 22:40:14 +0000 (22:40 +0000)]
A change to the way that colours are switched on in ls. The -G
flag has been depricated, although it still works with a warning
message, and replaced with an environment variable CLICOLOR (command
line interface colour). This could be used by other tools that
want to be able to control colour output.
In addition if the environment variable CLICOLOR_FORCE is defined
colour sequences are output irrespective of whether the output is
directed to a terminal (as long as TERM references a colour capable
terminal of course ;)
The rest of the changes needed to support the new version of sendmail (8.11.0).
Beyond changes to the build system, this includes fixing up the sample
freebsd.mc configuration for changes in defaults and syntax, removing
outdated documentation, and updating the release notes.
Bruce Evans [Sat, 12 Aug 2000 20:54:47 +0000 (20:54 +0000)]
Fixed world breakage for the NOSHARED=yes case. Libraries were added to
LDFLAGS instead of to LDADD, so they ended up too early in the command
line.
Don't link to libcrypt. It is unused for static linkage and unnecessary
and only apparently used for dynamic linkage (the dynamic libskey is
linked to libcrypt to support the crypt parts of libskey which aren't
used here).
Peter Wemm [Fri, 11 Aug 2000 23:23:20 +0000 (23:23 +0000)]
Add -mpreferred-stack-boundary=2 to CFLAGS for i386. This and libstand
reduces /boot/loader from 163840 bytes to 155648 and pxeboot from 165888
bytes to 157696 bytes.
Peter Wemm [Fri, 11 Aug 2000 18:54:47 +0000 (18:54 +0000)]
Oops, forgot this file. Log message for completeness:
Clean up some low level bootstrap code:
- stop using the evil 'struct trapframe' argument for mi_startup()
(formerly main()). There are much better ways of doing it.
- do not use prepare_usermode() - setregs() in execve() will do it
all for us as long as the p_md.md_regs pointer is set. (which is
now done in machdep.c rather than init_main.c. The Alpha port did it
this way all along and is much cleaner).
- collect all the magic %cr0 etc register settings into one place and
have the AP's call that instead of using magic numbers (!!) that keep
changing over and over again.
- Make it safe to call kthread_create() earlier, including during the
device probe sequence. It doesn't need the callback mechanism that
NetBSD's version uses.
- kthreads created this way are root-less as they exist before the root
filesystem is mounted. init(1) is set up so that it aquires the root
pointers prior to running. If other kthreads want filesystem acccess
we can make this code more generic.
- set all threads start times once we have decided what time it is.
- init uses a trampoline rather than the evil prepare_usermode() hack.
- kern_descrip.c has a couple of tweaks to deal with forking when there
is no rootdir or cwd etc.
- adjust the early SYSINIT() sequence so that a few prereqisites are in
place. eg: make sure the run queue is initialized before doing forks.
With this, the USB code can easily create a kthread to do the device
tree discovery. (I have tested it, it works nicely).
There are still some open issues before this is truely useful.
- tsleep() does not like working before the clock is running. It
sort-of tries to spin wait, but it can do more useful things now.
- stopping a kthread in kld code at unload time is "interesting" but
we have a solution for that.
The Alpha code needs no changes for this. It already uses pretty much the
same strategies, but a little cleaner.
Bill Paul [Fri, 11 Aug 2000 17:47:55 +0000 (17:47 +0000)]
Fix a bug brought to light by the people working on SMPng. I don't quite
understand exactly what it is about SMPng that tickles this bug. What I
do know is that the foo_init() routine in most drivers is often called
twice when an interface is brought up. One time is due to the ifconfig(8)
command calling the SIOCSIFFLAGS ioctl to set the IFF_UP flag, and another
is probably due to the kernel calling ifp->if_init at some point. In any
case, the SMPng changes seem to affect the timing of these two events in
such a way that there is a significant delay before any packets are sent
onto the wire after the interface is first brought up. This manifested
itself locally as an SMPng test machine which failed to obtain an address
via DHCP when booting up.
It looks like the second call to fxp_init() is happening faster now than
it did before, and I think it catches the chip while it's in the process
of dealing with the configuration command from the first call. Whatever
the case, a FXP_CSR_SCB_CNA interrupt event is now generated shortly after
the second fxp_init() call. (This interrupt is apparently never generated
by a non-SMPng kernel, so nobody noticed.)
There are two problems with this: first, fxp_intr() does not handle the
FXP_CSR_SCB_CNA interrupt event (it never tests for it or does anything
to deal with it), and second, the meaning of FXP_CSR_SCB_CNA is not
documented in the driver. (Apparently it means "command unit not active.")
Bad coder. No biscuit.
The fix is to have the FXP_CSR_SCB_CNA interrupt handled just like the
FXP_SCB_STATACK_CXTNO interrupt. This prevents the state machine for
the configuration/RX filter programming stuff from getting wedged for
several seconds and preventing packet transmission.
Peter Wemm [Fri, 11 Aug 2000 09:05:12 +0000 (09:05 +0000)]
Clean up some low level bootstrap code:
- stop using the evil 'struct trapframe' argument for mi_startup()
(formerly main()). There are much better ways of doing it.
- do not use prepare_usermode() - setregs() in execve() will do it
all for us as long as the p_md.md_regs pointer is set. (which is
now done in machdep.c rather than init_main.c. The Alpha port did it
this way all along and is much cleaner).
- collect all the magic %cr0 etc register settings into one place and
have the AP's call that instead of using magic numbers (!!) that keep
changing over and over again.
- Make it safe to call kthread_create() earlier, including during the
device probe sequence. It doesn't need the callback mechanism that
NetBSD's version uses.
- kthreads created this way are root-less as they exist before the root
filesystem is mounted. init(1) is set up so that it aquires the root
pointers prior to running. If other kthreads want filesystem acccess
we can make this code more generic.
- set all threads start times once we have decided what time it is.
- init uses a trampoline rather than the evil prepare_usermode() hack.
- kern_descrip.c has a couple of tweaks to deal with forking when there
is no rootdir or cwd etc.
- adjust the early SYSINIT() sequence so that a few prereqisites are in
place. eg: make sure the run queue is initialized before doing forks.
With this, the USB code can easily create a kthread to do the device
tree discovery. (I have tested it, it works nicely).
There are still some open issues before this is truely useful.
- tsleep() does not like working before the clock is running. It
sort-of tries to spin wait, but it can do more useful things now.
- stopping a kthread in kld code at unload time is "interesting" but
we have a solution for that.
The Alpha code needs no changes for this. It already uses pretty much the
same strategies, but a little cleaner.
Sheldon Hearn [Fri, 11 Aug 2000 08:40:10 +0000 (08:40 +0000)]
While we're in here:
Remove extraneous arguments to the Nm macro.
Mark up cross-references properly.
Use proper block displays (Bd).
Use proper mark-up for author names (An).
Remove the bogus ARGUMENTS section.
Raname EXAMPLE -> EXAMPLES.
Spell ``S/Key'' consistently.
Paul Saab [Fri, 11 Aug 2000 08:36:17 +0000 (08:36 +0000)]
Add support to send the string 'PXEClient' as the Vendor class
identifier to the DHCP server. Now you can check for this string
in your dhcp configuration to decide whether you will hand out a
lease to the client or not.
Sheldon Hearn [Fri, 11 Aug 2000 08:24:39 +0000 (08:24 +0000)]
(null commit)
Reflect that the update to routed-2.22 addresses a problem discussed
in PR bin/16941. The updated release also incorporates our local
buffer overflow fix (implemented differently) and puts us in a
position where we are completely synchronized with the master
distribution, apart from the stupid spammage of the #ident
definitions, which are supposed to indicate the release version,
not individual source file revisions.
This distribution was not moved into contrib because of objections
from wollman. He feels that the software is original Berkeley
code that shouldn't be imported into contrib just because it
has an external maintainer.
Warner Losh [Thu, 10 Aug 2000 23:16:32 +0000 (23:16 +0000)]
Add stuff:
o BUILD_SUIDPERL replaces NOSUIDPERL
o New /etc/rc.conf settings for secure networking may require changes
to those upgrading.
o nullfs in loader.conf.
Warner Losh [Thu, 10 Aug 2000 22:53:49 +0000 (22:53 +0000)]
Eliminate the only setuid perl script in the tree.
Original 'C' progam submitted by Juriy Goloveshkin.
A different 'C' program also submitted by dima.
I merged and rewrote them to include error handling, use getlogin for
user name and only the BSD boilerplate license remained from the
original code. We also only allow root to get other user's keys.
Review, bikeshed and bdelint(1): myself, kris, dima, markm
Archie Cobbs [Thu, 10 Aug 2000 22:42:25 +0000 (22:42 +0000)]
- Add new unsigned and hex integer parse types; this allows simplifying
the bytearray parse type.
- Allocate (larger) temporary work buffer dynamically instead of on the
stack when comparing to the default value.
Archie Cobbs [Thu, 10 Aug 2000 20:05:12 +0000 (20:05 +0000)]
RFC 1661 requires that all LCP packets are sent with no address and
control field compression. The ng_ppp(4) node correctly follows this
rule. However, PPPoE is an exception: when doing PPPoE *all* frames
are sent with address and control field compression.
Alter this node's behavior so that when an outgoing frame is received,
any leading address and control field bytes are removed. This makes
this node compatible with ng_ppp(4).
Hajimu UMEMOTO [Thu, 10 Aug 2000 17:10:57 +0000 (17:10 +0000)]
Don't retry connecting via the same medium.
I changed to close to original code before merging IPv6 support.
It seems having delay before another try is useless. However, I'm
not sure that delay means. So, I leave it as-is.