Commit Graph

4783 Commits

Author SHA1 Message Date
Jordan K. Hubbard be06522a93 Do more impressive things for windowmaker. 1999-05-14 15:04:24 +00:00
Jordan K. Hubbard 9c422527ea DTRT for "Latest" search keywords. 1999-05-14 14:57:59 +00:00
Jordan K. Hubbard 9e1ec576ed Be properly verbose. 1999-05-14 14:29:50 +00:00
Jordan K. Hubbard 1398785241 Correct return status logic a bit. 1999-05-14 12:15:34 +00:00
Brian Somers 6471628d59 Handle LCP echo reqs properly again (broken with the
layering changes).
1999-05-14 09:36:06 +00:00
Brian Somers 76d9853864 Ensure that we're not going to overflow our ``struct tun''
when we mbuf_Read() into it.
Add the link name to a few diagnostics.
1999-05-14 09:35:51 +00:00
Jordan K. Hubbard 992109823e Yikes! I almost left out the 3D Labs server. :) 1999-05-14 07:15:05 +00:00
Brian Somers 27be3ac662 Initialise the struct device part of struct ttydevice. 1999-05-13 19:29:40 +00:00
Brian Somers 8dbb1e2bfd Fix a bum pointer dereference and make some variable
names more consistent.
Stack trace supplied by: Joe Clarke <jclarke@cisco.com>
1999-05-13 16:35:13 +00:00
Brian Somers ac37ab22eb Ignore repeated signals sent to the parent in background
mode.
1999-05-13 16:34:57 +00:00
Jordan K. Hubbard 61bdb7bc9b Correct a bug which could cause a segfault if there is no uc_devlist
data.

Noticed by:	Bill Swingle <bill@cdrom.com>
1999-05-12 23:08:02 +00:00
Jordan K. Hubbard 25c4e179f5 Update norwegian time server.
Noted by:	dag
1999-05-12 22:06:00 +00:00
Brian Somers d543a9c02a Adjust our first timer delta according to the return
from getitimer() so that times are correct for
``show timer''.
1999-05-12 19:10:22 +00:00
Brian Somers ef868a34ad Oops - hook the sync push diagnostics correctly. 1999-05-12 09:54:33 +00:00
Brian Somers 6815097bf7 Allow ``host:port/udp'' devices and support ``host:port/tcp'' as
being the same as the previous (still supported) ``host:port''
syntax for tcp socket devices.

A udp device uses synchronous ppp rather than async, and avoids
the double-retransmit overhead that comes with ppp over tcp (it's
usually a bad idea to transport IP over a reliable transport that
itself is using an unreliable transport).  PPP over UDP provides
througput of ** 1.5Mb per second ** with all compression disabled,
maxing out a PPro/200 when running ppp twice, back-to-back.

This proves that PPPoE is plausable in userland....

This change adds a few more handler functions to struct device and
allows derivations of struct device (which may contain their own
data etc) to pass themselves through the unix domain socket for MP.
** At last **, struct physical has lost all the tty crud !

iov2physical() is now smart enough to restore the correct stack of
layers so that MP servers will work again.

The version number has bumped as our MP link transfer contents have
changed (they now may contain a `struct device').

Don't extract the protocol twice in MP mode (resulting in protocol
rejects for every MP packet).  This was broken with my original
layering changes.

Add ``Physical'' and ``Sync'' log levels for logging the relevent
raw packets and add protocol-tracking LogDEBUG stuff in various
LayerPush & LayerPull functions.

Assign our physical device name for incoming tcp connections by
calling getpeername().

Assign our physical device name for incoming udp connections from
the address retrieved by the first recvfrom().
1999-05-12 09:49:12 +00:00
Jordan K. Hubbard e71d157614 Add some extra checks to make *sure* we got what we were told we got. 1999-05-12 09:22:47 +00:00
Jordan K. Hubbard b9ad2ee3d4 Completely change the way package_add() does its work. Now we
handle dependencies at a lower level and use package add for this.
Also made index searches stricter.
1999-05-12 09:02:37 +00:00
Jordan K. Hubbard 26e6116190 Erm, delete the package base hint again. Gotta lay off the crack!
I simply forgot that I'd already proven this to be a "really good idea that
unfortunately didn't work at all" the *last* time I tried it.  Now
I remember.  Hmmm.  I WILL defeat this evil problem.
1999-05-12 07:12:01 +00:00
Jordan K. Hubbard 4d350c33db We don't bundle the XFree86 release notes on the floppies anymore; take it
out of the appropriate menus.
1999-05-12 06:58:18 +00:00
Jordan K. Hubbard 41fe7a1406 Set PKG_ADD_BASE hint in a certain case. 1999-05-12 06:11:32 +00:00
Jordan K. Hubbard 722678f1c8 Revive the PKG_ADD_BASE stuff a bit. 1999-05-12 06:06:49 +00:00
Jordan K. Hubbard 703e69c29c Fix a couple of bogons in the X server/desktop setup menus. 1999-05-12 04:52:41 +00:00
Peter Wemm bf0e1ee370 Tidy up references to <sys/rlist.h> and support for the old swap management
that went away in January.
1999-05-11 14:32:18 +00:00
Dag-Erling Smørgrav b180b6de88 Don't stop listening to the signal pipe just because you don't have
anything else to do.

PR:		10468, 11594
1999-05-11 12:50:14 +00:00
Jordan K. Hubbard f574e34636 Make KDE the "default" desktop. 1999-05-11 08:33:45 +00:00
Hellmuth Michaelis 0556050037 fix name clash for variables named "minor" and "major"
Submitted by:	Steve Kargl
1999-05-11 08:22:15 +00:00
Jordan K. Hubbard e73c4fe5eb Preserve /root's dotfiles across upgrades too.
PR:		6559
1999-05-11 08:00:06 +00:00
Jun Kuriyama e948f24a53 Fix typo.
Submitted by:	Hiroki Sato <hrs@geocities.co.jp>
1999-05-10 22:01:38 +00:00
David E. O'Brien ce68c9929a Move sysctl/ to src/sbin/ where it now belongs.
Repository copied by:	Peter
1999-05-10 10:17:22 +00:00
Peter Wemm ef354ff70d Understand 'config kernelname' and pretend it was a
'makeoptions KERNEL=kernelname'.  Warn about any trailing stuff as it's
not handled here.  This is a simple bandaid, hopefully to head off some
complaints from certain people.
1999-05-10 02:42:58 +00:00
Brian Somers 229c76251b Revert to the previous behaviour of only doing a utmp
login if we're -direct on a tty device.
1999-05-09 20:13:52 +00:00
Brian Somers 3377c28cd9 Deal with the fact that as we now mbuf_Read the fsm
header in fsm_Input() we often end up with a NULL mbuf.

Deal with a possible NULL mbuf being passed into
mbuf_Prepend().

Adjust some spacing to make things more consistent.
1999-05-09 20:02:29 +00:00
Peter Wemm 3e624da0af Put on my viking helmet from the closet, and get out the war axe and
"retire" some more stuff.
1999-05-09 18:54:25 +00:00
Peter Wemm 8fb476c521 We don't have composite devices here either. 1999-05-09 17:48:23 +00:00
Poul-Henning Kamp bb4d56144e config(8) lobotomy, please see commit msg in sys.
(I have no idea why cvs didn't take these changes before.)
1999-05-09 17:23:38 +00:00
Kazutaka YOKOTA f64191e962 Added backward compatibility to set key repeat rate.
Requested by: bde
1999-05-09 04:57:51 +00:00
Brian Somers 5d9e610366 o Redesign the layering mechanism and make the aliasing code part of
the layering.

  We now ``stack'' layers as soon as we open the device (when we figure
  out what we're dealing with).  A static set of `dispatch' routines are
  also declared for dealing with incoming packets after they've been
  `pulled' up through the stacked layers.

  Physical devices are now assigned handlers based on the device type
  when they're opened.  For the moment there are three device types;
  ttys, execs and tcps.

o Increment version number to 2.2
o Make an entry in [uw]tmp for non-tty -direct invocations (after
  pap/chap authentication).
o Make throughput counters quad_t's
o Account for the absolute number of mbuf malloc()s and free()s in
  ``show mem''.
o ``show modem'' becomes ``show physical''.
1999-05-08 11:07:56 +00:00
Bill Paul f66190fa14 Fix a couple of small buglets. 1999-05-07 23:35:55 +00:00
Jordan K. Hubbard 5abc195371 Don't install compat22 by default.
Add some more safety belts to package foo.
1999-05-07 20:31:36 +00:00
Jordan K. Hubbard 8a8beee081 Erm, correct mighty braino in previous "don't annoy me" change. 1999-05-07 11:45:26 +00:00
Jordan K. Hubbard ad4d616fa3 Make saving kernel configuration info disable-able (may be useful in certain
situations).
1999-05-07 11:02:58 +00:00
Mark Murray 4e69f92838 There seems to be a problem (most likely when there is no hosts.allow)
with wrapping the internal services, so do not wrap them for now.
1999-05-07 06:48:01 +00:00
Jordan K. Hubbard cbe5232fe7 Use a more correct filesystem type name if given a "UFS" mountpoint that's
not really UFS.

PR:	10711
1999-05-07 05:39:50 +00:00
Jordan K. Hubbard 973a1b96b5 Commit a more general version of the last patch; don't do any back-filling
of values more than once.  User might want to override them.
1999-05-07 05:15:17 +00:00
Jordan K. Hubbard db510551e9 1. Silence warning.
2. Deal with potential whitespace evil early (PR#7455).
1999-05-07 04:36:21 +00:00
Bill Paul 049e649a10 Add support to wicontrol(8) and wi(4) for enabling and configuring
power management. This will only work on newer firmware revisions; older
firmware will silently ignore the attempts to turn power management on.

Patches supplied by: Brad Karp <karp@eecs.harvard.edu>
1999-05-07 03:28:54 +00:00
Bill Paul e566363ef1 Modify wicontrol(8) and wi(4) to allow setting the frequency of the
WaveLAN's radio modem. The default is whatever the NIC uses since NICs
sold in different countries may default to different frequencies. (The
Lose95/LoseNT software doesn't let you select the channel so it's probably
not really meant to be changed.)
1999-05-06 16:32:45 +00:00
Dmitrij Tejblum 70c03db51c readklog(): rename variable 'l' to 'len', to avoid possible confusion with 'i'
and '1'.

Requested by:	mckay
1999-05-06 13:57:57 +00:00
Jordan K. Hubbard eb6b299247 revert premature DHCP commit 1999-05-06 11:15:33 +00:00
Jordan K. Hubbard 44070deaa0 Argh, those last two commits snuck in with the other one by mistake.
Disable the non-working dhcp client code I just committed by mistake.
1999-05-06 11:05:19 +00:00
Jordan K. Hubbard 734ec189d0 Fix includes; I had a slightly different Makefile than everyone else
which is why I didn't see this. :)

Noted by:	Maxim Sobolev <sobomax@altavista.net>
1999-05-06 11:03:21 +00:00
Bill Paul c49713fde1 Fix some byte ordering problems; I was storing string lengths wrong,
which was causing wicontrol to crash when reading string parameters
from the WaveLAN.

Patches submitted by: Brad Karp <karp@eecs.harvard.edu>
1999-05-06 03:34:02 +00:00
Poul-Henning Kamp c020621f03 Various cosmetics.
Submitted by:	Rudolf Cejka <cejkar@dcse.fee.vutbr.cz>
Reviewed by:	phk
1999-05-05 19:23:45 +00:00
Jordan K. Hubbard 2d49c1f84a Another round of updates for -current and 3.2 1999-05-05 11:34:03 +00:00
Jordan K. Hubbard 66e576f88d Fix a few bogons and make this safer for humanity. 1999-05-05 10:14:06 +00:00
Bill Paul 31a08ab08e Add device driver support for the Lucent WaveLAN/IEEE 802.11 PCMCIA
adapter (and some workalikes). Also add man pages and a wicontrol
utility to manipulate some of the card parameters.

This driver was written using information gleaned from the Lucent HCF Light
library, though it does not use any of the HCF Light code itself, mainly
because it's contaminated by the GPL (but also because it's pretty gross).
The HCF Light lacks certain featurs from the full (but proprietary) HCF
library, including 802.11 frame encapsulation support, however it has
just enough register information about the Hermes chip to allow someone
with enough spare time and energy to implement a proper driver. (I would
have prefered getting my hands on the Hermes manual, but that's proprietary
too. For those who are wondering, the Linux driver uses the proprietary
HCF library, but it's provided in object code form only.)

Note that I do not have access to a WavePOINT access point, so I have
only been able to test ad-hoc mode. The wicontrol utility can turn on
BSS mode, but I don't know for certain that the NIC will associate with
an access point correctly. Testers are encouraged to send their results
to me so that I can find out if I screwed up or not.
1999-05-05 07:37:11 +00:00
Guy Helmer 479c5c7692 Use Cd macro instead of Em for SYNOPSIS, as do other section 4 pages.
Added $Id$.

PR:		docs/10494
1999-05-04 20:42:26 +00:00
Poul-Henning Kamp ce5c1cd1ff Fix various bogons.
Submitted by:	Rudolf Cejka <cejkar@dcse.fee.vutbr.cz>
Reviewed by:	phk
1999-05-04 18:20:53 +00:00
Dag-Erling Smørgrav 4e880257b8 Is there a limit to how stupid I can get? 1999-05-04 18:03:59 +00:00
Jun Kuriyama 86779ad4dd Activate pccardc.8. 1999-05-03 11:20:15 +00:00
Dmitrij Tejblum 1b44fb0337 Little fix in previous: watch NUL-termination. 1999-05-02 17:44:16 +00:00
Jun Kuriyama 8c4110d213 New translation of pccardc.8.
Obtained from:	PAO (written in Japanese)
Reviewed by:	bsd-nomads@clave.gr.jp
		freebsd-mobile@freebsd.org
		Randy Bush <randy@psg.com>
		Bill Trost <trost@grey.cloud.rain.com>
		Bruce Campbell <bc@apnic.net>
1999-05-02 16:33:13 +00:00
Brian Somers 315164071c Handle receiving more than one acceptable CCP REQ
during one negotiation session without REJecting
everything from the second REQuest.
1999-05-02 14:33:39 +00:00
Dmitrij Tejblum 823da6884b Fight with false newlines in kernel message logs. Output a line into log only
after we read a newline, or we have nothing to read from /dev/klog. Read
/dev/klog in non-blocking mode.
1999-05-02 12:47:09 +00:00
Brian Somers 3de29bbf70 Mention ``show mp''.
Describe ACFComp correctly.
1999-05-02 08:52:50 +00:00
David E. O'Brien fad9a47729 MFS: sort reference list and embelish history. 1999-05-01 22:03:00 +00:00
Brian Somers 22d1222bab Make ports 80 & 81 ``interactive''. 1999-05-01 11:31:29 +00:00
Jordan K. Hubbard afdcb1bc13 Shuffle source selection menu items to make it a little easier to use. 1999-05-01 11:27:37 +00:00
Bill Paul c167b71a1b Close PR #10971: flush the database cache after forking in ypproc_all_2_svc()
so that parent and child don't share DB handles.
1999-04-30 16:59:48 +00:00
Bill Paul dc273a2f07 Close PR #10970: exit at the end of ypproc_all_2_svc() instead of returning.
This really fixes the condition where a child creates children of its own.
I'm leaving the previous sanity tests in though, since they shouldn't hurt,
and will give an indication if this ever happens again.
1999-04-30 16:44:17 +00:00
Dag-Erling Smørgrav d35f30aa80 Implement fascist mode (do not open a datagram socket at all). 1999-04-30 12:51:20 +00:00
Bill Paul 2dfb116a5a Add some extra checks to make sure that a child ypserv process doesn't
try to fork() a child of its own, which could result in several children
ypservs running at once. I'm still not sure exactly what leads to this
condition, but these fixes should stop it from causing trouble. A new
function, yp_fork() checks to see if the current process is already a
child of the parent ypserv, and returns failure (and logs an error message)
rather than spawning another child.
1999-04-29 20:24:00 +00:00
John Polstra d74efe9105 pppd/Makefile:
Enable MS-CHAP support.

release/Makefile:
  Build a separate NOCRYPT version of pppd, to keep This Great
  Nation's top-secret cryptographic tools out of the filthy hands
  of those evil furriners.
1999-04-29 17:56:28 +00:00
Poul-Henning Kamp 75c1354190 This Implements the mumbled about "Jail" feature.
This is a seriously beefed up chroot kind of thing.  The process
is jailed along the same lines as a chroot does it, but with
additional tough restrictions imposed on what the superuser can do.

For all I know, it is safe to hand over the root bit inside a
prison to the customer living in that prison, this is what
it was developed for in fact:  "real virtual servers".

Each prison has an ip number associated with it, which all IP
communications will be coerced to use and each prison has its own
hostname.

Needless to say, you need more RAM this way, but the advantage is
that each customer can run their own particular version of apache
and not stomp on the toes of their neighbors.

It generally does what one would expect, but setting up a jail
still takes a little knowledge.

A few notes:

   I have no scripts for setting up a jail, don't ask me for them.

   The IP number should be an alias on one of the interfaces.

   mount a /proc in each jail, it will make ps more useable.

   /proc/<pid>/status tells the hostname of the prison for
   jailed processes.

   Quotas are only sensible if you have a mountpoint per prison.

   There are no privisions for stopping resource-hogging.

   Some "#ifdef INET" and similar may be missing (send patches!)

If somebody wants to take it from here and develop it into
more of a "virtual machine" they should be most welcome!

Tools, comments, patches & documentation most welcome.

Have fun...

Sponsored by:   http://www.rndassociates.com/
Run for almost a year by:       http://www.servetheweb.com/
1999-04-28 11:38:52 +00:00
Jordan K. Hubbard 78e2e8ea35 Deal with new loader syntax in determining how/when to load a userconfig
script.

Submitted by:		"Daniel C. Sobral" <dcs@newsguy.com>
Avoided by:		jkh
Demanded by:		The Users
1999-04-28 10:51:01 +00:00
David E. O'Brien 0acc1823a4 \begin{bdemode}
sort tcpd* entries
\end{bdemode}
1999-04-28 08:00:50 +00:00
Jordan K. Hubbard da95ac4842 Write config files to /usr/share/skel as well as root's profile. 1999-04-28 07:20:11 +00:00
Jordan K. Hubbard a5a953fc61 Do the right thing for windowmaker installation if it's picked. Add some
seat belts for failed desktop installations.
1999-04-28 06:39:25 +00:00
Jordan K. Hubbard 4d24621b10 o Make package matching for specific package loading use the Latest/
feature of packages now so that no version info is embedded.

o Add a default X desktop menu offering afterstep, enlightenment, KDE, GNOME
  and Windowmaker desktops instead of the boring twm(1) based one if the
  user so chooses.  This will require a little testing.
1999-04-27 14:33:29 +00:00
Jordan K. Hubbard d5483ddfba lpd tries to be clever and checks if RM == my_hostname.
However, it doesn't check if the remote printer name it
is sending it to is the same as the local printer name,
and so chokes 'cos "laser" is not a real printer.

PR:		7081
Submitted by:	David Malone <dwmalone@maths.tcd.ie>
1999-04-27 07:09:18 +00:00
Jordan K. Hubbard c89686d6b7 If pkg_info is run with no args, default to "-aI". 1999-04-27 02:30:27 +00:00
Luoqi Chen e07fcb3e2e Make options like NO_F00F_HACK work (with context sensitive lexical rules). 1999-04-27 01:37:01 +00:00
Brian Somers a8d7acdc03 Change ``set device'' so that it parses its arguments as one
device per argument rather than the old way of concatenating
everything then splitting the result at commas and whitespace.

Old syntax of ``set device /dev/cuaa0, /dev/cuaa1''
may no longer contain the comma, but syntax such as
``set device "!ssh host ppp -direct label"'' is now
possible.
1999-04-27 00:23:57 +00:00
Brian Somers 7884358fdd Add support for NetBSD 1999-04-26 08:54:34 +00:00
Brian Somers 119386a38b #include <errno.h>, not <sys/errno.h> 1999-04-26 08:54:25 +00:00
Brian Somers b941043fa2 Add support for NetBSD (history() from libedit is different). 1999-04-26 08:53:52 +00:00
Peter Wemm 061eb3abb3 Bump configvers; when the updates to generic/lint get committed, the old
config has severe indigestion.
1999-04-24 21:38:50 +00:00
Peter Wemm 96217b0fbc More cleanups, tweaks and features.
- make this work:   options FOO123=456   *without quotes*
- grumble (but accept) vector xxxintr, and tty/net/bio/cam flags.
- complain if a device is specified twice (eg: 2 x psm0)
- don't require quotes around:  port IO_COM2
- recognize negative numbers.  (ie: options CAM_DEBUG_UNIT=-1)
- GC some more unused stuff (we don't have composite disks from config(8)).
- various other nits (snprintf paranoia etc)
1999-04-24 18:59:19 +00:00
John Hay 3333e32aa0 Add an option to disable responses to SAP_GETNEAREST_SERVER requests.
Submitted by:	Boris Popov <bp@butya.kz>
1999-04-24 09:18:49 +00:00
Jordan K. Hubbard c8f07a79f8 Remove the registration stuff; we're redoing this and the emailed
registrations have a high failure rate for various reasons.
1999-04-24 01:53:55 +00:00
Guy Helmer f8c6d853b0 local_cron -> local_periodic
PR:		docs/11253
1999-04-23 18:26:55 +00:00
Brian Somers 7c6b3a5704 Spelling police 1999-04-23 13:45:50 +00:00
Alexander Langer 6436fcb9f0 Typo fix in diagnostic: -alldir --> -alldirs
PR:		11049
Submitted by:	Gerhard Gonter <gonter@whisky.wu-wien.ac.at>
1999-04-21 22:42:36 +00:00
Brian Somers 28e610e378 int -> size_t 1999-04-21 08:13:25 +00:00
Brian Somers a38cc90182 Split the recorded chap challenge into two - one for the
receiver and one for the sender.  This allows two simultaneous
chap conversations - something that I *thought* I was already
doing on a daily basis myself until the existence of the
problem was
Beaten into me by: sos
1999-04-21 08:03:51 +00:00
Brian Somers 1599fce5c6 If ioctl TIOCMGET fails, continue. The device may be
a pseudo device created by an interactive version of
rlogin/telnet/ssh & friends
1999-04-21 08:03:35 +00:00
David E. O'Brien 6df198f879 Add Id. 1999-04-21 07:42:02 +00:00
David E. O'Brien a0154df93c Add compat3x to the mix.
Reviewed by:	jkh
1999-04-21 07:22:37 +00:00
Peter Wemm 14dd465c07 The Alpha probably wouldn't appreciate getting the pc98 isa port
definitions.  Change it from  machine != I386 to machine == PC98.
1999-04-19 14:40:55 +00:00
Peter Wemm 4498c1f307 Slightly reorder the all: to make sure it's before any alternate kernel
names for debugging etc.  all: should now always be the first target.
1999-04-19 13:53:07 +00:00