Commit graph

51076 commits

Author SHA1 Message Date
Peter Wemm 37b087a645 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.
2000-08-11 09:05:12 +00:00
Sheldon Hearn c47f9a08fc 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.
2000-08-11 08:40:10 +00:00
Paul Saab 646cf5017b 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.
2000-08-11 08:36:17 +00:00
Sheldon Hearn 00f4e1767c (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.
2000-08-11 08:24:39 +00:00
Sheldon Hearn c0e2b70a76 Add $FreeBSD$. 2000-08-11 08:23:26 +00:00
Sheldon Hearn 669a846df8 Fix hard sentence break and inappropriate use of the Pa macro in
the previous delta.
2000-08-11 08:12:44 +00:00
Paul Saab f6940c1842 Pass along the interesting variables we were given from DHCP so we
can utilize them in the kernel and with kenv.
2000-08-11 05:31:59 +00:00
John Polstra 297bb90667 Describe ldconfig_insecure. 2000-08-11 04:20:30 +00:00
John Polstra e9edb38551 Add an rc.conf knob "ldconfig_insecure" to disable ldconfig's
security checks.  Set the default to NO, i.e., secure.

Submitted by:	Maxime Henrion <mhenrion@cybercable.fr>
2000-08-11 03:26:30 +00:00
Warner Losh 71c38472de 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.
2000-08-10 23:16:32 +00:00
Archie Cobbs a604c8808e Oops, previous commit fixed a bug that was already fixed before.
Back it out.
2000-08-10 23:04:46 +00:00
Warner Losh 47945ade89 Don't build suidperl by default. Make users specifically enable its
building.
2000-08-10 22:59:53 +00:00
Warner Losh dd8cf673d9 Change NOSUIDPERL to BUILD_SUIDPERL. One must now explicitly enable
building suidperl.
2000-08-10 22:55:58 +00:00
Warner Losh b1dbe5c2bc 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
2000-08-10 22:53:49 +00:00
Archie Cobbs 0521578550 Add new control message to atomically get and clear statistics. 2000-08-10 22:52:40 +00:00
Archie Cobbs a8f6d55e95 Increase the maximum allowable datagram length. 2000-08-10 22:51:57 +00:00
Archie Cobbs cac2a7de76 "u_int32_t" should have been "int32_t". 2000-08-10 22:51:26 +00:00
Archie Cobbs 7133ac27ef Use a bigger buffer for NGM_BINARY2ASCII conversion, to handle really
long ASCII control messages.
2000-08-10 22:50:38 +00:00
Archie Cobbs 656485a2c6 - Add new control message NGM_VJC_GET_CONFIG
- Implement control message ASCII'fication for all control messages
2000-08-10 22:48:03 +00:00
Archie Cobbs 57b57be3ec Take advantage of the new unsigned and hex integer types. 2000-08-10 22:45:54 +00:00
Archie Cobbs 8fccb7e954 - Make statistics unsigned.
- Add new control message to atomically get and clear statistics.
2000-08-10 22:44:41 +00:00
Archie Cobbs 7b3bf3f9aa - Add new unsigned and hex integer parse types
- Fix bug in commented example code
2000-08-10 22:43:38 +00:00
Archie Cobbs 8db3c6cd29 - 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.
2000-08-10 22:42:25 +00:00
Hajimu UMEMOTO 0f6b9b3fe2 Make ip6fw zero work.
PR:		bin/20522
2000-08-10 20:41:33 +00:00
Archie Cobbs 7b38c4e4d9 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).
2000-08-10 20:05:12 +00:00
Bill Fumerola 70d25dfbce make sshd follow the pattern of enable, program, flags like every
other entry does.
2000-08-10 19:52:06 +00:00
Bill Fumerola dbc777e3f2 1000bassT -> 1000baseT 2000-08-10 19:47:32 +00:00
Garrett Wollman face22b842 Merge from vendor branch. Also move FreeBSD Ids away from vendor Id
to make future merges easier.
2000-08-10 19:36:46 +00:00
Garrett Wollman 2fdc7738ad This commit was generated by cvs2svn to compensate for changes in r64496,
which included commits to RCS files with non-trunk default branches.
2000-08-10 19:20:14 +00:00
Garrett Wollman 952f5f542e Latest timezone updates from Arthur Olson. This update reflects changes
in Israel, Lithuania, Mexico, and Argentina.

Obtained from:	ftp://elsie.nci.nih.gov/pub/tzdata2000f.tar.gz
2000-08-10 19:20:14 +00:00
Warner Losh 2563e6f5b8 Add some infrastructure support for dealing with large attribute
memory space needed by the raylink driver (in progress, nearing
completion).

This is a minorly cleaned up diff from Duncan to help him reduce the
diffs from stock FreeBSD.

Submitted by: Duncan Barclay <dmlb@ragnet.demon.co.uk>
2000-08-10 17:35:11 +00:00
Tor Egge 4428d39d63 Don't skip IOAPIC id conflict detection when only one pci bus is present.
PR:		20312
Reviewed by:	Steve Roome <steve@sse0691.bri.hp.com>
2000-08-10 17:33:24 +00:00
Hajimu UMEMOTO 2368b03bf4 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.

PR:		bin/20515
2000-08-10 17:10:57 +00:00
Nick Sayer aef2860eef Document support for the Solo 1.
Requested by: sheldonh
2000-08-10 15:01:01 +00:00
MIHIRA Sanpei Yoshiro 1c19d8a700 add Nokia Card Phone 2.0 (gsm900/dcs1800 HSCSD terminal)
PR:		conf/20037
2000-08-10 13:43:17 +00:00
Brian Somers d0cd375a1d Mention that pppoe requires netgraph(4) and without it, an external
pppoe program must be used (such as pppoe(8) on OpenBSD).
2000-08-10 13:26:01 +00:00
MIHIRA Sanpei Yoshiro bee9bd2a7a I tested Toshiba Modem/LAN card IPC5001B (as Modem) and enable it.
This card has `Network/LAN adapter' function ID(06 00),
not Serial port/modem.
2000-08-10 13:24:12 +00:00
Brian Somers 3a5cb44818 Correct dodgy wild card expansion
PR:	20514
2000-08-10 10:58:44 +00:00
Sheldon Hearn 4ffc1d3dad Remove hard sentence breaks introduced in the previous commit. 2000-08-10 09:01:10 +00:00
Sheldon Hearn 6017865885 Resolve conflicts. 2000-08-10 07:54:33 +00:00
Sheldon Hearn 8b336df137 Import routed-2.22. 2000-08-10 07:48:06 +00:00
Søren Schmidt 4466a3504d Fix the ICH2 ATA100 support, and proberly downgrade the chip setup when
going to slower DMA modes on all Intel chips.
2000-08-10 07:34:49 +00:00
Warner Losh ba01eb206c o Move to recommending the {build,install}kernel targets for updating from
older versions of FreeBSD.
o Continue to document the old way of doing it with a warning stating if that
  doesn't work, to do the {build,install}kernel thing.
o minor wordsmithing on what a make world really is.
2000-08-10 05:14:31 +00:00
Warner Losh 134d2e86de Add a reminder note to people to disable third party modules at the
right place in the upgrade proceedure so that they don't get burned by
a crash on reboot.
2000-08-10 05:03:49 +00:00
Kelly Yancey 354a0adabf Fix an order-of-operations bug and properly shift page_control values for
comparison with SMS_PAGE_CTRL_* macros.
2000-08-10 01:20:43 +00:00
Brian Somers 2fb35bc311 Correct a typo
Spotted by: Jimmy Olgeni <olgeni@uli.it>
2000-08-10 00:26:50 +00:00
Brian Somers e2323071e6 Allow a ppp_user specification to run ppp at startup
PR:		20258
2000-08-10 00:13:02 +00:00
Archie Cobbs 1baeddb81b In a struct sockaddr, sa->sa_len can be zero if uninitialized.
Make sure that this doesn't cause a problem when parsing.
2000-08-09 23:57:44 +00:00
Jun-ichiro itojun Hagino 1bf6f71909 mention getipnodeby* and get{addr,name}info are not thread-safe. (sync with kame)
s/.Os KAME/.Os/
comment From: Greg Thompson
2000-08-09 23:16:23 +00:00
Kelly Yancey d996f0a884 Include new modepage list (-l) option in the verbose usage. 2000-08-09 21:29:22 +00:00