Commit Graph

4883 Commits

Author SHA1 Message Date
sheldonh
6a6011a9a8 Add -d option to vipw(8) to allow selection of an alternative directory
for the password files.

PR:	2703
Submitted by:	jmg
1999-06-26 07:16:42 +00:00
brian
91ad6a1860 Correct usage message 1999-06-26 03:11:39 +00:00
brian
f285ede018 Don't bother read()ing if we ``expect'' nothing in our chat script. 1999-06-26 02:54:36 +00:00
brian
2b58d25492 If we run out of chat script immediately after a successfully executed
expect-send-expect sequence, finish gracefully, don't core dump.
This bug has been there for over a year - I could never reproduce it !

Straw provided by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
1999-06-26 02:54:24 +00:00
n_hibma
34e5c4267f Fix typo (missing double quote) 1999-06-24 17:20:54 +00:00
imp
7d9014f75b Per Ken's request, back out my last change to this file. iostat's man
page documents '?' as a valid option, as does the usage message.  None
of the other programs' man pages documented '?' as a valid option.
1999-06-24 07:39:25 +00:00
imp
9472a2e779 Two getopts related nits:
o getopt returns -1 rather than EOF on errors
	o getopt returns '?' for characters it doesn't know about, so
	  don't include them in the getopt options string.
1999-06-24 06:43:21 +00:00
imp
24c7dc9781 '?' shouldn't be in the usage string. Unknown characters are already
converted to '?'.
1999-06-24 06:33:24 +00:00
mpp
0fc7bcdcdf Some man page cleanup. Make the NAME and SYNOPSIS sections agree so
that whatis(1) will produce the expected results.

Pointed-out-by: Jesus Monroy <jesus.monroy@usa.net> in freebsd-doc
1999-06-24 06:22:24 +00:00
billf
6031a99586 If we are going to have a case for '?' then we should define it in Options.
Submitted by:	Ben Olson <bseth@chc-chimes.com>
1999-06-23 16:54:38 +00:00
brian
cff11489a9 Support `igmp' filters.
Mostly submitted by: Timo Geusch <freebsd@sleepycat.ukpeople.net>
1999-06-23 16:48:24 +00:00
brian
bc5ef0ee65 The ports tree is now 83MB. Change `about 50MB'' to `about 90MB''.
Suggested by: Mark Knight <markk@shrewd.demon.co.uk
1999-06-23 08:40:56 +00:00
jkh
e312188b31 Eliminate dead ntp servers.
Submitted by:		mharo
1999-06-23 03:52:10 +00:00
mharo
23a684c508 Make UTC or local time message a little more clear. 1999-06-23 03:31:36 +00:00
rnordier
c320d7a68c Check that we really have a boot0 mbr before treating it as one.
Suggested by: peter

Also add a few comments.
1999-06-22 18:57:49 +00:00
yokota
1c48ed075d Reflect recent changes in syscons. 1999-06-22 14:15:46 +00:00
brian
03f37b2162 Disable TUNSLMODE when we first open the tun device.
Submitted by: Ian West <ian@niw.com.au>
1999-06-22 11:31:42 +00:00
rnordier
fcaa828a11 Ensure that an update takes place when the -m option is used. 1999-06-21 14:40:59 +00:00
sheldonh
1d333db7b6 Use Dq mdoc tag for double-quoted words. 1999-06-21 11:43:13 +00:00
sheldonh
2a7cfb8984 Fix handling of maximum children and connections per minute.
Submitted by:	David Malone <dwmalone@maths.tcd.ie>
1999-06-21 11:17:34 +00:00
rnordier
393bfe5b75 Implement -m option to enable/disable slices. 1999-06-19 21:44:43 +00:00
brian
e2797ccaca Don't use the ``next'' redial timer if we have no phone number at all. 1999-06-18 13:49:01 +00:00
ken
0f6688579d Add a MAINTAINER line to modules that I maintain.
Suggested by:	brian, markm
1999-06-18 00:41:47 +00:00
brian
0f545d82f1 Reset our start time when the link comes up, correcting
the reported connection time.

PR:		11943
Submitted by:	Peter Mutsaers <plm@xs4all.nl>
1999-06-17 22:12:51 +00:00
markm
2089153f16 More uncontroversial PAO updates. Make the IRQ wildcarding work a lot better,
and improve the daemonizing code.

Submitted by: Tatsumi HOSOKAWA
1999-06-17 21:07:59 +00:00
markm
0783e41813 Add bits of PAO that are non-controversial.
Submitted by: Tatsumi HOSOKAWA
1999-06-17 19:04:56 +00:00
sheldonh
45ab0550ea Various fixes for inetd's TCP Wrappers support:
1) Handle forking and non-forking internal services correctly.
	   Turn on wrapping for internal services because it works now.
	2) Preserve server names for each service on HUP.
	3) Honour hosts_options(5) severity option.
	4) Add IMPLEMENTATION NOTES section to clarify TCP Wrappers
	   usage and limitations.

This change may cause previously allowed builtin services (e.g. daytime)
to be denied in existing configurations.

PR:	12097
Reviewed by:	markm
1)
Reported by:	Pierre Beyssac <pb@fasterix.freenix.org>
2)
Submitted by:	Masachika ISHIZUKA <ishizuka@ish.org>
3)
Submitted by:	David Malone <dwmalone@maths.tcd.ie>
1999-06-17 09:16:08 +00:00
brian
37f6a9df5e Add the -p switch - tells rwhod to ignore POINTOPOINT interfaces.
Mostly submitted by: Stefan Zehl <sec@42.org>
PR:	12216
1999-06-16 21:05:21 +00:00
ru
6aff4c9502 This really belongs to section 8. 1999-06-15 14:04:19 +00:00
obrien
7d78380bb3 Support Alpha and -CURRENT in the "-r" option case. 1999-06-14 21:58:59 +00:00
brian
0f1321c494 Come up with something useful when someone searches for
``dynamic IP''.
1999-06-14 10:12:41 +00:00
brian
42f2a0b71d Show the correct error if we fail to open a device. 1999-06-11 13:28:29 +00:00
brian
45e0115c27 Describe why a ``magic'' enddisc is not always a good idea. 1999-06-11 11:27:18 +00:00
jkoshy
fece792408 Larger, space separated fields in the output of repquota.
PR:		8730
Submitted by:	Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
1999-06-11 10:31:24 +00:00
brian
9a0bce272e Allow reserved substitution strings to be escaped by preceeding them
with a backslash.
1999-06-10 09:34:57 +00:00
brian
2aa45a21d0 Never bring a link back up after receiving a terminating signal,
don't rely on already being in PHASE_DEAD.
1999-06-10 09:06:30 +00:00
brian
e38303d43c Allow a remote IP and port range specification in the
``alias port'' command.
1999-06-10 00:17:27 +00:00
brian
a71c6ca380 Initialise `mp'. 1999-06-09 20:27:26 +00:00
brian
472a277d26 Allow our endpoint discriminator to be enabled, disabled, accepted
and denied.  This is necessary for some MP implementations that
get confused if you accept their endpoint discriminator but reject
their MRRU.
1999-06-09 16:54:04 +00:00
jkh
5148a61ddb where_arge is allocated on stack and return address is overwritten
by buffer overflow.

Submitted by:	Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
1999-06-09 09:29:53 +00:00
jkh
e645797c80 Remove apple.com from time server list.
Submitted by:	Mike Haro
1999-06-09 09:18:33 +00:00
brian
ecf825269a Use the correct pid when substituting PROCESSID.
Problem reported by: Amedeo Beck Peccoz <gea@gressoney.it>
1999-06-09 08:47:36 +00:00
brian
ed2d80f59c Don't use static variables if we don't have to. 1999-06-08 20:12:06 +00:00
brian
a557d51984 Don't drop the last character from lines in ppp.secret unless it's '\n'. 1999-06-08 20:11:53 +00:00
brian
30bfd76142 Don't IPCP TLD if we're already doing it. This prevents
recursion by doing something like ``down'' or ``quit all''
in ppp.linkdown.
1999-06-08 11:58:27 +00:00
brian
a7f994e40c Make the `load'', dial'' and `open'' commands a big clearer.
Requested by: Michael Heitmeier <MICHAEL_HEITMEIER@HP-Germany-om12.om.hp.com>
1999-06-08 11:57:59 +00:00
brian
5425bb01c0 Correct the way ppp transfers links on the server side in MP
mode by padding out the ``struct device'' to the maximum
device size.
Bump the ppp version number to indicate the transfer format
change.

This should make MP over tty and udp devices functional again.
1999-06-05 21:36:00 +00:00
archie
84960a50be When incrementing through a SIOCGIFCONF list, enforce a lower limit of
sizeof(ifr->ifr_addr) for the variable length field ifr->ifr_addr.sa_len.
Otherwise the increment will be wrong in certain cases.

Obtained from:  Whistle source tree
For the record: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> suggests
                SIOCGIFCONF should be dropped in favor of a sysctl mechanism.
1999-06-05 05:55:07 +00:00
archie
d12466fe7c When incrementing through a SIOCGIFCONF list, enforce a lower limit of
sizeof(ifr->ifr_addr) for the variable length field ifr->ifr_addr.sa_len.
Otherwise the increment will be wrong in certain cases.

Obtained from:	Whistle source tree
For the record:	Garrett Wollman <wollman@khavrinen.lcs.mit.edu> suggests
		SIOCGIFCONF should be dropped in favor of a sysctl mechanism.
1999-06-05 05:52:52 +00:00
ru
587d12fde0 Switch to proper mbr.
OK'ed by:	jkh,rnordier
1999-06-04 10:01:53 +00:00
peter
447cf23fc3 Check and warn about unknown devices in the config file along the same
lines as the pseudo-device checking.  Previously 'device xyz0' would have
been silently accepted without comment.
1999-06-03 20:37:19 +00:00
brian
efbb71c511 Fix some MP sequence number comparison bogons that are tickled by
having different speed links in a bundle.  This would manifest itself
by having the link occasionally hang, but revive when a new connection
is made....
Make ``show mp'' a bit prettier.
1999-06-03 13:29:32 +00:00
yokota
019a0ffb3f Mention that 8x8 font is required for 43, 50 and 60 line text modes,
and that font files can be specified in /etc/rc.conf[.local].
1999-06-03 12:44:16 +00:00
yokota
7524539ed3 Make it clear that PS/2 type mice will work only with "auto" and
"ps/2" protocol types, and that serial mouse protocols shouldn't be
specified for these mice.
1999-06-03 12:43:16 +00:00
yokota
17fc514707 Fix PS/2 MouseMan+ protocol. We have been looking at a wrong place
for the sign bit for roller movement!
1999-06-03 12:42:10 +00:00
brian
a3ba58f533 Oops, quieten a compiler warning. 1999-06-02 23:06:21 +00:00
brian
42fe7474a9 Mention physical and sync logging in the ``set log''
usage message.
1999-06-02 21:28:02 +00:00
brian
bbbd0aef90 o Alter the mbuf type as it's processed by different layers.
o Show more information about missing MP fragments in ``show mp''.
o Do away with mbuf_Log().  It was showing mbuf stats twice on
  receipt of LCP/CCP/IPCP packets.... ???!!?
o Pre-allocate a bit extra when creating LQR packets to avoid having
  to allocate another mbuf in mbuf_Prepend().
1999-06-02 15:59:09 +00:00
brian
2401bce80b Introduce the ``keep-session'' option. Refer to the man
page for details.  This allows MP over non-tty devices where
the original ppp process must not exit (such as sshd-spawned
ppp sessions).
1999-06-02 00:46:55 +00:00
brian
89b86dc6ea Increase the length of an individual device name to LINE_LEN.
Adjust the base physical device name correctly after a link
transfer (allowing correct multilink callbacks).
1999-06-01 19:08:59 +00:00
brian
ed0d10bcdc Make async/sync/physical/hdlc dumps prettier by showing printable
characters at the end of the line in hexdump style.
1999-06-01 16:01:48 +00:00
brian
25a2440c6f Mention that using MYADDR and HISADDR with ``set filter''
will result in the rules being updated any time MYADDR
or HISADDR change.
1999-06-01 08:46:53 +00:00
brian
be201b7693 Remember if MYADDR or HISADDR is used in a filter add tweak all
filters any time either value changes.
1999-05-31 23:57:40 +00:00
kris
7eecd67861 Xref mountd in text.
Submitted by:	Philippe Charnier
1999-05-29 08:14:00 +00:00
brian
44647b0f4d Don't forget to free the mbufs that get processed by
mp_Assemble().
Leak spotted by: louqi
1999-05-28 08:03:24 +00:00
ghelmer
0206338d27 Add missing -s option.
PR:		docs/10378
1999-05-28 02:09:46 +00:00
brian
9ef4827356 Handle unterminated quoted strings without dup'ing the last character
with an out-by-one-memcpy.
1999-05-27 16:51:47 +00:00
jkh
c60ae3a8de Do a clean-up pass on error/warning messages. 1999-05-27 10:32:50 +00:00
brian
029592c490 Add some comments, optimise out a few strlen()s and
remove a few extraneous assignments.
1999-05-27 09:50:10 +00:00
brian
8fc2c43f16 Call tty_Offline() from tty_Cooked() and tty_Free(), just in
case ppp is abending and hasn't called physical_Offline()
already.
1999-05-27 08:42:49 +00:00
brian
dd813bf3cc Move the code for tweaking interface flags into one function. 1999-05-27 08:42:17 +00:00
brian
8d73072137 Correct the ``ignoring sync/async'' warnings so that they show
up with the correct device type.
Reassign the correct tcpdevice or execdevice after transfering
a link in MP server mode.
1999-05-24 16:39:17 +00:00
brian
6e3dffd5ac Don't warn about ``!'' lines being unindented commands in ppp.conf. 1999-05-24 09:04:35 +00:00
imp
72333c78b3 getopt(3) returns -1 not EOF. 1999-05-23 23:24:26 +00:00
jmz
2fd23819b0 Initialize exit code so that the program exits with code 0 on success.
PR:		bin/10904
Submitted by:	Ben Smithurst <ben@scientia.demon.co.uk>
1999-05-22 22:56:26 +00:00
dfr
1fd255890e Port pnpinfo to alpha. 1999-05-22 17:35:48 +00:00
wpaul
a05c2f300a - Fix up some comments in if_wi.c (no code changes)
- Mention that the 6Mbps turbo adapters are supported in HARDWARE.TXT
  and RELNOTES.TXT and the wi.4 man page
- Mention turbo adapters in the wicontrol.8 man page and provide a
  complete table of available transmit speed settings
1999-05-22 16:12:54 +00:00
jdp
e774b28d83 Fix hostname lookup problems on 64-bit machines. 1999-05-21 20:52:42 +00:00
jdp
2a47c2fe02 Fix a sign-extension bug in xntpdc's "kerninfo" output for on 64-bit
machines.  Negative pll offset values were printed as large positive
numbers.
1999-05-21 16:10:44 +00:00
jkh
88e2d5c92f Don't do anything on alpha machines. 1999-05-21 11:00:56 +00:00
roberto
cdbdfda974 ftp3.fr.freebsd.org (UVSQ, Versailles, France) has been available for a long
time.

Submitted by:	Rémy Card <Remy.Card@csi.uvsq.fr>
1999-05-21 07:10:35 +00:00
wpaul
c38c22251d This commit adds driver support for PCI fast ethernet cards based on the
ADMtek AL981 "Comet" chipset. The AL981 is yet another DEC tulip clone,
except with simpler receive filter options. The AL981 has a built-in
transceiver, power management support, wake on LAN and flow control.
This chip performs extremely well; it's on par with the ASIX chipset
in terms of speed, which is pretty good (it can do 11.5MB/sec with TCP
easily).

I would have committed this driver sooner, except I ran into one problem
with the AL981 that required a workaround. When the chip is transmitting
at full speed, it will sometimes wedge if you queue a series of packets
that wrap from the end of the transmit descriptor list back to the
beginning. I can't explain why this happens, and none of the other tulip
clones behave this way. The workaround this is to just watch for the end
of the transmit ring and make sure that al_start() breaks out of its
packet queuing loop and waiting until the current batch of transmissions
completes before wrapping back to the start of the ring. Fortunately, this
does not significantly impact transmit performance.

This is one of those things that takes weeks of analysis just to come
up with two or three lines of code changes.
1999-05-21 04:37:48 +00:00
hm
87c7b1e12a upgrade isdn4bsd from version 0.71 to the just released version 0.81 1999-05-20 10:14:57 +00:00
jkh
d316cfbbfc Add CHAP/PAP question to the ppp setup dialog, simplifying things considerably
for some.

Submitted by:	Jack O'Neill <jack@germanium.xtalwind.net>
1999-05-19 10:49:46 +00:00
jkh
2720086414 Add ftp5.uk.freebsd.org
Submitted by:	Roger Hardiman <roger@cs.strath.ac.uk>
1999-05-19 08:56:56 +00:00
brian
9f8ec2fa75 Move the tty locking stuff back out to physical.c so
that we lock the device *before* we open it.
We still open the device only once - and then ask all
our handlers if they know how to handle it.
1999-05-18 01:37:46 +00:00
jkh
09e40d8945 deal with a.out ldconfig paths also. 1999-05-18 00:44:28 +00:00
brian
30f16f258a Mention ``show layers'' 1999-05-16 13:39:03 +00:00
brian
cb334a1a2c Initialise ttydevice::Timer 1999-05-16 11:58:48 +00:00
phk
0141aed9cf Turn an error into a warning. If running a 4.x binary on a 3.x system
we may still have vn in the kernel but not be able to see it.

This enables building -current SNAPS in a chroot on a -stable system
1999-05-16 08:09:23 +00:00
phk
acf54a8234 Be more non-crypto friendly at make release time. 1999-05-15 19:21:15 +00:00
jkh
1cd13458cb Small typo in windowmaker startup line. 1999-05-15 15:05:08 +00:00
jkh
1dfc6def42 o Prevent alpha installs from grabbing x86 bits and vice-versa, at least
on CDs and FTP sites.

o Collapse some redundant code.

o Fix typo'd menu.

o Restrict searches properly to packages rather than categories.

o Small tweaks to signal handling.

All RELENG_3 candidates.
1999-05-15 14:34:22 +00:00
bde
5c7545a82f Test the correct database file (not necessarily the one corresponding to
the running kernel if the nlist file is specified explicitly).
1999-05-15 11:54:36 +00:00
brian
69c6034fcb Add ``show layers'' to see the protocol layering for a link. 1999-05-15 02:24:18 +00:00
wpaul
81b86b6bb7 Fix usage in wicontrol.c to agree with man page.
Update documentation for -f frequency selection option to include complete
list of channel numbers and frequencies.
1999-05-14 18:31:31 +00:00
jkh
78e23516fa Do more impressive things for windowmaker. 1999-05-14 15:04:24 +00:00
jkh
6cf37ac421 DTRT for "Latest" search keywords. 1999-05-14 14:57:59 +00:00
jkh
11f1ada01e Be properly verbose. 1999-05-14 14:29:50 +00:00
jkh
86b945fa5d Correct return status logic a bit. 1999-05-14 12:15:34 +00:00
brian
e2081f9e58 Handle LCP echo reqs properly again (broken with the
layering changes).
1999-05-14 09:36:06 +00:00
brian
44bc59df8d 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
jkh
84b0e29284 Yikes! I almost left out the 3D Labs server. :) 1999-05-14 07:15:05 +00:00
brian
7c0d6ce0d0 Initialise the struct device part of struct ttydevice. 1999-05-13 19:29:40 +00:00
brian
f10f2a4b07 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
c234a5fbac Ignore repeated signals sent to the parent in background
mode.
1999-05-13 16:34:57 +00:00
jkh
79679be180 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
jkh
84bed489c4 Update norwegian time server.
Noted by:	dag
1999-05-12 22:06:00 +00:00
brian
fe4ab71d52 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
bfe6e1140f Oops - hook the sync push diagnostics correctly. 1999-05-12 09:54:33 +00:00
brian
61c20ab896 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
jkh
92a76e707b Add some extra checks to make *sure* we got what we were told we got. 1999-05-12 09:22:47 +00:00
jkh
95973a7b6f 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
jkh
7cf02cbd49 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
jkh
30e2f09c42 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
jkh
3bdeb9f451 Set PKG_ADD_BASE hint in a certain case. 1999-05-12 06:11:32 +00:00
jkh
fdb3f52157 Revive the PKG_ADD_BASE stuff a bit. 1999-05-12 06:06:49 +00:00
jkh
5053512542 Fix a couple of bogons in the X server/desktop setup menus. 1999-05-12 04:52:41 +00:00
peter
a470222f84 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
des
bbe91cfca5 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
jkh
c4138c061a Make KDE the "default" desktop. 1999-05-11 08:33:45 +00:00
hm
4274b61c3c fix name clash for variables named "minor" and "major"
Submitted by:	Steve Kargl
1999-05-11 08:22:15 +00:00
jkh
e22f445d98 Preserve /root's dotfiles across upgrades too.
PR:		6559
1999-05-11 08:00:06 +00:00
kuriyama
e2909a3bc9 Fix typo.
Submitted by:	Hiroki Sato <hrs@geocities.co.jp>
1999-05-10 22:01:38 +00:00
obrien
8ae887a850 Move sysctl/ to src/sbin/ where it now belongs.
Repository copied by:	Peter
1999-05-10 10:17:22 +00:00
peter
961ce62c45 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
775e441973 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
0e738865e5 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
0e20c07c86 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
2c229efea1 We don't have composite devices here either. 1999-05-09 17:48:23 +00:00
phk
93f2b3c91b 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
yokota
f4cd299602 Added backward compatibility to set key repeat rate.
Requested by: bde
1999-05-09 04:57:51 +00:00
brian
5e107593b8 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
wpaul
771dfddbe3 Fix a couple of small buglets. 1999-05-07 23:35:55 +00:00
jkh
a2324440b9 Don't install compat22 by default.
Add some more safety belts to package foo.
1999-05-07 20:31:36 +00:00
jkh
ed509915a7 Erm, correct mighty braino in previous "don't annoy me" change. 1999-05-07 11:45:26 +00:00
jkh
9d41e993f1 Make saving kernel configuration info disable-able (may be useful in certain
situations).
1999-05-07 11:02:58 +00:00
markm
263e7157c2 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
jkh
dddcbf06c9 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
jkh
31faa7fc3f 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
jkh
72a17e8946 1. Silence warning.
2. Deal with potential whitespace evil early (PR#7455).
1999-05-07 04:36:21 +00:00
wpaul
af94996e5d 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
wpaul
897f703fbc 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
dt
a40140cb32 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
jkh
082771ab54 revert premature DHCP commit 1999-05-06 11:15:33 +00:00
jkh
cf089716ab 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
jkh
d7c86ee279 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
wpaul
967861facf 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
phk
94149c3236 Various cosmetics.
Submitted by:	Rudolf Cejka <cejkar@dcse.fee.vutbr.cz>
Reviewed by:	phk
1999-05-05 19:23:45 +00:00
jkh
a3bc4e512d Another round of updates for -current and 3.2 1999-05-05 11:34:03 +00:00
jkh
c1a2e0ba33 Fix a few bogons and make this safer for humanity. 1999-05-05 10:14:06 +00:00
wpaul
44142abac1 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
ghelmer
dbc3530e3f 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
phk
15374ab7dd Fix various bogons.
Submitted by:	Rudolf Cejka <cejkar@dcse.fee.vutbr.cz>
Reviewed by:	phk
1999-05-04 18:20:53 +00:00
des
eabb651409 Is there a limit to how stupid I can get? 1999-05-04 18:03:59 +00:00
kuriyama
47ce47ffa0 Activate pccardc.8. 1999-05-03 11:20:15 +00:00
dt
571d49c931 Little fix in previous: watch NUL-termination. 1999-05-02 17:44:16 +00:00
kuriyama
d9162f6a23 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
282fe0fdfa 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
dt
ae0d86d7b2 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
903a0ea675 Mention ``show mp''.
Describe ACFComp correctly.
1999-05-02 08:52:50 +00:00
obrien
9c33bafb39 MFS: sort reference list and embelish history. 1999-05-01 22:03:00 +00:00
brian
bce3b34a2b Make ports 80 & 81 ``interactive''. 1999-05-01 11:31:29 +00:00
jkh
3b1bbd2751 Shuffle source selection menu items to make it a little easier to use. 1999-05-01 11:27:37 +00:00
wpaul
c1290b10b3 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
wpaul
e2b9dd9a88 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
des
26befb30f3 Implement fascist mode (do not open a datagram socket at all). 1999-04-30 12:51:20 +00:00
wpaul
a6a7379ef1 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
jdp
1a65e51299 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
phk
79134080a0 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
jkh
1c3da0388c 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
obrien
4b80a67c4e \begin{bdemode}
sort tcpd* entries
\end{bdemode}
1999-04-28 08:00:50 +00:00
jkh
a52a6ff5f7 Write config files to /usr/share/skel as well as root's profile. 1999-04-28 07:20:11 +00:00
jkh
ae990f4522 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
jkh
a16d10d610 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
jkh
a56c36333e 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
jkh
8914746e4b If pkg_info is run with no args, default to "-aI". 1999-04-27 02:30:27 +00:00
luoqi
51e6fbbebb Make options like NO_F00F_HACK work (with context sensitive lexical rules). 1999-04-27 01:37:01 +00:00
brian
7f54ce017a 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
c052ed7e84 Add support for NetBSD 1999-04-26 08:54:34 +00:00
brian
a5a4bcb82c #include <errno.h>, not <sys/errno.h> 1999-04-26 08:54:25 +00:00
brian
438b4f2522 Add support for NetBSD (history() from libedit is different). 1999-04-26 08:53:52 +00:00
peter
6a4b0fc1b7 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
afa35aec99 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
jhay
8080d74e51 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
jkh
2d3f68eb3d 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
ghelmer
65236ba1ab local_cron -> local_periodic
PR:		docs/11253
1999-04-23 18:26:55 +00:00
brian
e02f30d0d8 Spelling police 1999-04-23 13:45:50 +00:00
alex
f1613e9463 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
5941b98f5d int -> size_t 1999-04-21 08:13:25 +00:00
brian
85e63ecedc 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
a2a0a5e96b 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
obrien
3c9ea1572e Add Id. 1999-04-21 07:42:02 +00:00
obrien
449239f9ad Add compat3x to the mix.
Reviewed by:	jkh
1999-04-21 07:22:37 +00:00
peter
d64ed7d0a6 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
67e01084a2 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
jkoshy
49110ec890 Correct typo.
PR:		docs/11185
Submitted by:	Kazuo Horikawa <horikawa@jp.freebsd.org>
1999-04-19 07:17:58 +00:00
kato
49afa8604d Use pc98/pc98/pc98.h instead of isa/isareg.h in PC98 kernel.
Submitted by:	Takahashi Yoshihiro <nyan@wyvern.cc.kogakuin.ac.jp>
1999-04-18 14:27:33 +00:00
peter
5f40509435 Further cleanups. i386_ioconf.c and alpha_ioconf.c were essentially the
same and were merged into a single newbus_ioconf.c.  CG'd some more unused
code.
1999-04-18 13:36:29 +00:00
peter
4165f7fb07 Get out the blow torch and hack away all the unused stuff. Note that
I zapped the MACHINE_MIPS stuff, it isn't likely to be useful apart from
recognition of the machine name.  It would be reasonable to expect new
ports would look something like the alpha/i386 from a config perspective.
1999-04-17 14:41:41 +00:00
peter
0e84b5e5f1 Corresponding minimal changes for kernel configuration after new-bus
commit.
1999-04-16 21:28:10 +00:00
bde
87ada1e66c Made booting with -a work for all configurations. Previously it
only worked for configurations with "swap on generic".

usr.sbin/config/config.y:
- ignore all "swap [on] device ...' specifications except for
  warning about them.  They haven't done anything related to swap
  for almost 4 years, and were previously silently ignored,
  except for "swap on generic" which stopped swap${KERNEL}.c
  from being generated.  Code to support swapping is now deader
  than before.

usr.sbin/config/mkswapconf.c:
- don't generate a dummy setconf() function in swap${KERNEL}.c.

sys/i386/conf/files.i386:
- swapgeneric.c is now standard.  It should be merged into autoconf.c
  so that it doesn't conflict with swap${KERNEL}.c for kernels named
  "generic".

sys/i386/i386/autoconf.c:
- don't call setroot() for mfs roots.  Since setroot() doesn't do anything
  harmful, this was just a waste of time, except possibly for booting with
  -a it may have helped prevent an undesireable call to setconf() by
  finding a bogus rootdev.
- honor -a for ffs roots.  -a now overrides all other ways of specifying
  the root device.  Previously, -r had precedence over -a, and the -a
  handling was usually a no-op.
- don't honor -a for non-ffs roots, since it would currently just get in
  the way of a clean panic.

sys/i386/i386/swapgeneric.c:
- don't declare things that are now always declared in swap${KERNEL}.c.
  Don't decide things that are now decided in autoconf.c.  Code to
  support the "generic" case is now dead instead of useless.
1999-04-15 14:52:24 +00:00
wpaul
a40ada585d Close PR #11122: check key length before calling strncmp()
in yp_next_record().
1999-04-14 04:05:59 +00:00
peter
5baa8ca891 Clean up the -g/DEBUG handling. This logic can go in the Makefile
so that config -g can work the same as:  makeoptions DEBUG="-g"
1999-04-13 18:22:57 +00:00
simokawa
d432559650 Use u_int32_t for sin_addr.s_addr rather than u_long to avoid
unaligned access on alpha.
1999-04-13 16:26:21 +00:00
n_hibma
dda8dc31f1 Syncing with NetBSD version 1998/12/14 1999-04-11 21:03:28 +00:00
markm
3c40fc8afc Fix the "internal" wrapping as well as a nasty bug involving
the daemon name vs the path. Also fix some warnings and improve
the wrapper section of the man page.

Nice debugging work by:	Sheldon Hearn
1999-04-11 09:22:17 +00:00
brian
23e10e5f4d Revert the ACCMAP changes where we OR the peers accmap
with our own if there are differing bits (last two revisions
of lcp.c).  This change broke at least one negotiation
session.
Instead, we just use an OR of the two accmap values when
we're doing the ASYNC framing.
1999-04-11 08:51:04 +00:00
grog
c0fc41aae7 Back out default debug kernel. The flags revert to historical behaviour.
Requested-by:	ache
		bde
		dg

Modify targets for debug kernels:  when -g was specified, make will
now build a debug kernel called kernel.debug, and create a stripped
version called kernel at the same time.  The two targets install and
install.debug are otherwise unchanged.

Requested-by:	dillon

Update man page accordingly.
1999-04-11 03:40:11 +00:00
chuckr
4520216d9a Fix description of size, it's in kilobytes, not bytes. 1999-04-10 15:09:07 +00:00
ache
e5e7e6390a add -s to usage
PR: 11056
Submitted by: Nickolay N. Dudorov <nnd@mail.nsk.ru>
1999-04-10 14:03:38 +00:00
ache
5e24bc0948 add -s to synopsis 1999-04-10 01:56:20 +00:00
ghelmer
0cfa30881e Change LKM/modload to KLD/kldload.
Submitted by:	Nathan Ahlstrom <nrahlstr@winternet.com>
1999-04-08 14:02:56 +00:00
ghelmer
d1a385683f Change LKM to KLD.
Submitted by:	Nathan Ahlstrom <nrahlstr@winternet.com>
1999-04-08 13:51:54 +00:00
grog
2bd2be6976 1. Modify config to issue different code for debugging.
2.  Config complains if you use -g:

    Debugging is enabled by default, there is no ned to specify the -g option

3.  Config warns you if you don't use -s:

    Building kernel with full debugging symbols.  Do
    "config -s BSD" for historic partial symbolic support.
    To install the debugging kernel, do make install.debug

    (BSD was the name of the config file I used; I print out the same
    name).

4.  Modify Makefile.i386, Makefile.alpha, Makefile.pc98 and config to
    work if a kernel name other than 'kernel' is specified.  This is
    not absolutely necessary, but useful, and it was relatively easy.
    I now have a kernel called /crapshit :-)

5.  Modify Makefile.i386, Makefile.alpha, Makefile.pc98 "clean" target
    to remove both the debug and normal kernel.

6.  Modify all to install the stripped kernel by default and the debug
    kernel if you enter "make install.debug".

7.  Update version number of Makefiles and config.
1999-04-07 09:42:29 +00:00
grog
049cd360e5 1. Modify config to issue different code for debugging.
2.  Config complains if you use -g:

    Debugging is enabled by default, there is no ned to specify the -g option

3.  Config warns you if you don't use -s:

    Building kernel with full debugging symbols.  Do
    "config -s BSD" for historic partial symbolic support.
    To install the debugging kernel, do make install.debug

    (BSD was the name of the config file I used; I print out the same
    name).

4.  Modify Makefile.i386, Makefile.alpha, Makefile.pc98 and config to
    work if a kernel name other than 'kernel' is specified.  This is
    not absolutely necessary, but useful, and it was relatively easy.
    I now have a kernel called /crapshit :-)

5.  Modify Makefile.i386, Makefile.alpha, Makefile.pc98 "clean" target
    to remove both the debug and normal kernel.

6.  Modify all to install the stripped kernel by default and the debug
    kernel if you enter "make install.debug".

7.  Update version number of Makefiles and config.
1999-04-07 09:28:03 +00:00
msmith
b2b66a0ab5 Build memcontrol too. 1999-04-07 04:12:02 +00:00
msmith
cbb5b56ac8 This commit was generated by cvs2svn to compensate for changes in r45410,
which included commits to RCS files with non-trunk default branches.
1999-04-07 04:11:14 +00:00
msmith
adf731f0ab Commandline tool for manipulating memory range attributes. 1999-04-07 04:11:14 +00:00
jkh
8ffac43084 Don't allow upgrade to touch /usr/src; only evil can result from
that kind of overlay smashing.
1999-04-07 03:06:44 +00:00
wpaul
0848cf3290 Add driver support for gigabit ethernet adapters based on the Alteon
Networks Tigon 1 and Tigon 2 chipsets. There are a _lot_ of OEM'ed
gigabit ethernet adapters out there which use the Alteon chipset so
this driver covers a fair amount of hardware. I know that it works with
the Alteon AceNIC, 3Com 3c985 and Netgear GA620, however it should also
work with the DEC/Compaq EtherWORKS 1000, Silicon Graphics Gigabit
ethernet board, NEC Gigabit Ethernet board and maybe even the IBM and
and Sun boards. The Netgear board is the cheapest (~$350US) but still
yields fairly good performance.

Support is provided for jumbo frames with all adapters (just set the
MTU to something larger than 1500 bytes), as well as hardware multicast
filtering and vlan tagging (in conjunction with the vlan support in
-current, which I should merge into -stable soon). There are some hooks
for checksum offload support, but they're turned off for now since
FreeBSD doesn't have an officially sanctioned way to support checksum
offloading (yet).

I have not added the 'device ti0' entry to GENERIC since the driver
with all the firmware compiled in is quite large, and it doesn't really
fit into the category of generic hardware.
1999-04-06 17:08:31 +00:00
brian
dcc4f6e14d When going from DATALINK_HANGUP directly to
DATALINK_OPENING, don't forget to change phase
to ESTABLISH if we're currently TERMINATE'ing.
Helped locate by: Chuck Robey <chuckr@mat.net>
1999-04-06 14:48:10 +00:00
ghelmer
06d61bf9a8 Replace LKM with KLD.
Submitted by:	Nathan Ahlstrom <nrahlstr@winternet.com>
1999-04-06 14:04:37 +00:00
jkh
961da2f703 Add an option for resetting and rescanning the probed device list, perhaps
to now detect that CD you just remembered to put in the drive or that
pccard NIC that you've inserted (anybody can put pccardd in an mfsroot image
now you know.. :)

Requested by:	Annelise Anderson <andrsn@andrsn.Stanford.EDU>
1999-04-06 08:25:53 +00:00
peter
0a69043282 This is a hack. Cron runs with stdin/out/err pointing to /dev/console,
which init thoughtfully revoke()'s when starting a getty on ttyv0.  This
Cron's popen() was passing these fd's through to cron children (ie:
sendmail, *not* normal cron jobs).  The side effects were usually
not noticed, but it tripped up postfix which did a sanity check to see
that stdin/out/err were open, and got EBADF even thought the fd's were
in use.  I seem to recall sendmail itself has hacks to work around
this problem, it had a checkfd012() function, possibly for this same
problem.  (Postfix has a workaround too now though..)

This is a hack, not a fix.  It's probably best to check and perhaps
close/reopen() /dev/console if needed each time around the event loop.
It would probably be useful to actually see any error messages from cron.
1999-04-06 04:31:23 +00:00
brian
388eff56aa When we get an LCP TLU, go into PHASE_AUTHENTICATE
from any other phase besides PHASE_NETWORK, otherwise
there's a chance that we end up sending auth packets
and dropping the replies.
1999-04-05 21:52:10 +00:00
brian
7d46d3406e Remove forgotten variable. 1999-04-03 12:01:38 +00:00
brian
ddbfaa1494 Handle the detection of frames even if we read them
with more than one read().  When we detect one, don't
forget to pass it to async_Input() and drop our
terminal back into command mode.

Don't output an extraneous \r if we're passed \r\n
to prompt_vprintf in raw mode.
1999-04-03 11:54:00 +00:00
brian
d3c259f30d Drop PAP & CHAP packets if we're not in NETWORK or AUTHENTICATE
phase.
1999-04-01 11:05:23 +00:00
ghelmer
c6be18ffe3 Update refs for KLD's and kldload.
Submitted by:	Nathan Ahlstrom <nrahlstr@winternet.com>
1999-04-01 01:42:28 +00:00
brian
30ff6b4d5e Avoid a few warnings on the alpha 1999-03-31 14:21:46 +00:00
brian
83fb217c7c Oops - remove register keyword 1999-03-31 13:44:07 +00:00
brian
a1bb7672e0 Another alignment bogon. 1999-03-31 13:33:43 +00:00
brian
b4052c4c73 Point at cs.slcs_u.csu_ip instead of the just-copied ``cp''
when recalculating the ip checksum.  cp is not guaranteed to
be aligned.  It now doesn't matter that cp isn't aligned as
the caller does another mbuf_Alloc() regardless.
1999-03-30 07:57:22 +00:00
jkh
f814848424 Bump default root fs sizes, for both i386 and alpha architectures. 1999-03-30 04:09:21 +00:00
brian
f414cf52f6 Maintain a `necessary' marker to indicate that we *probably*
need to process a signal (usually a SIGALRM).  Check to see
if we need to process a signal both before *and* after calling
select() as older (pre-2.0) versions of ppp used to.

This handles the possibility that ppp may block at some
point (maybe due to an open() of a misconfigured device).
Previously, we'd potentially lock up in select().

The `necessary' marker reduces the increased signal checking
overhead so that at full speed with no compression transferring
an 83Mb file via a ``!ppp -direct'' device, we get a 1%
throughput gain.
1999-03-30 00:44:57 +00:00
brian
ded96ee1e1 If we adjust our required ACCMAP due to a more restrictive
ACCMAP being REQuested by the peer, also increment our FSM
id so that we don't end up sending out a new REQ with the
same ID and different data (the changed ACCMAP).
1999-03-29 08:21:40 +00:00
brian
3b5efef0cd Ensure that the thing we're casting to struct ip
is aligned for non-i386 architectures.
1999-03-29 08:21:28 +00:00
bde
b817ab8868 Fixed world breakage in previous commit. -lwrap was in LDFLAGS where
it has no effect.

Fixed the usual style bugs for DPADD and LDADD.
1999-03-29 03:17:43 +00:00
markm
89de21d7dc Enable tcp_wrapper support by default. 1999-03-28 10:55:03 +00:00
markm
ef732c88b5 Now inetd(8) has direct support for tcp_wrappers! Not working at the
moment is support for the internal serfvices, so these are not
enabled. Volunteers welcome!
1999-03-28 10:50:30 +00:00
jkh
84c118e40b 1. Update TAPE to point to new CAM-style device name.
2. Don't prompt for removal twice on fixit floppy.

Submitted by:		jack <jack@germanium.xtalwind.net>
1999-03-27 01:48:44 +00:00
brian
1195accd6f Allow port ranges in ``alias port''. 1999-03-25 23:36:25 +00:00
brian
9396bc70eb Undo possible damage done by the new TUNSIFMODE ioctl
in FreeBSD-current.
1999-03-25 11:37:51 +00:00
phk
bbedaca268 Now bb structures are linked together. 1999-03-21 12:32:17 +00:00
billf
297363c7d7 Use the proper mdoc macro
PR:		docs/9892
Submitted by:	Kazuo Horikawa <horikawa@jp.freebsd.org>
1999-03-20 04:26:57 +00:00
jkh
d06bd3ef73 Offer an X Kern Developer collection, by user request (it's also more
orthogonal to the other entries).

Clean up X selection code a bit.

Choose proper architecture subdirectories on mirror sites now that we've
gone fully to the new multi-arch directory scheme.
1999-03-19 10:54:38 +00:00
brian
ba6f770acc Do away with some literal text that is never switched
off - I *think* these were groff bugs.
1999-03-19 09:00:08 +00:00
jkh
4b69622a7b Add /etc/rc.firewall to list of "save after upgrade" targets. 1999-03-19 08:22:31 +00:00
brian
da0f251f17 Replace hardcoded quoting with Sq or Dq. 1999-03-19 01:42:45 +00:00