Commit Graph

4295 Commits

Author SHA1 Message Date
Brian Somers
3afe5ccb75 Add ``enable proxyall'' support. This adds proxy ARP entries
for every machine on every class C or smaller subnet that we
route to.
Add ``set {send,recv}pipe'' for controlling our socket buffer
sizes.
Mention the IP number with the problem in a few error messages.
All submitted by:     Craig Leres <leres@ee.lbl.gov>
Modified slightly by: me
1998-10-26 19:07:39 +00:00
Brian Somers
17871c5f6c Fix the interface alias code. Previously, I was expecting something
like

tun0: flags=blah
	10.0.0.1 -> 10.0.0.100
	10.0.0.2 -> 10.0.0.100
	10.0.0.3 -> 10.0.0.100

to DTRT, despite the SIOCAIFADDR for each new alias returning
-1 & EEXIST while adding the alias anyway.  In real life, once
we have the second alias with the same destination, nothing will
route any more !  Also, because I was ignoring EEXIST, the
dynamic IP assignment code was assigning duplicate addresses
('cos it was being lied to by iface_inAdd()).

Now we have

tun0: flags=blah
	10.0.0.1 -> 255.255.255.255
	10.0.0.2 -> 10.0.0.100
	10.0.0.3 -> 255.255.255.255

This works - stuff bound to 10.1 & 10.3 will be considered alive
by the kernel, and when they route back to the tun device, the
packets get aliased to 10.2 and go out to 10.100 (as with the
original plan).

We still see the EEXIST in SIOCAIFADDR, but ignore it when our
destination is 255.255.255.255, assuming that the alias *was*
actually added.

Additionally, ``iface add'' may now optionally be given only
the interface address.  The mask & destination default to
255.255.255.255.
1998-10-26 19:07:36 +00:00
Brian Somers
f6f122b486 Don't send a DELAY value when sending CBCP_NONUM
(as per the spec).
Spotted by: Andrzej Tobola <san@koziolek.lublin.top.pl>
1998-10-25 23:35:15 +00:00
Brian Somers
9b5f8ffdc6 Loosen our restrictions on setting enddisc, mrru,
shortseq, authname and authkey.

o Auth{name,key} may additionally be set in PHASE_ESTABLISH.
o The others may be set in PHASE_ESTABLISH as long as no links
  have yet reached DATALINK_LCP.
1998-10-24 01:08:45 +00:00
Bruce Evans
4af4007dbb Ignore `vector xxxintr' specifications except for checking their syntax.
Interrupt handlers are now configured in drivers.

Didn't update config/SMM.doc.  It doesn't have any i386 examples (not
even `isa').

Bumped CONFIGVERS.  This is not necessary for -current yet, but using
the new config with old system sources gives null pointers for all
vectors.
1998-10-23 17:05:06 +00:00
Jordan K. Hubbard
622bb93248 fix spelling error.
Submitted by:	Pomegranate <daver@flag.blackened.net>
1998-10-23 10:27:50 +00:00
Bruce Evans
17d1bf4260 Removed all `vector xxxintr' specifications. Interrupt handlers are now
configured in drivers.
1998-10-22 15:53:06 +00:00
Brian Somers
8fa6ebe47d Solve the ``first connection'' problem that occurs on
demand-dial links with dynamic IP numbers where the program
that causes the dial bind()s to an interface address that is
subsequently changed after ppp negotiation.

The problem is defeated by adding negotiated addresses to the
tun interface as additional alias addresses and providing a set
of ``iface'' commands for managing the interface.  Libalias is
also required (and what a name clash!) - it happily IP-aliases
the address so that the source is that of the primary (negotiated)
interface and un-IP-aliases it on the way back.

An ``enable iface-alias'' is done implicitly by the -alias command
line switch.  If -alias isn't given, iface-aliasing is disabled by
default and can't be enabled 'till an ``alias enable yes'' is done.
``alias enable no'' silently disables iface-alias.

So, for dynamic-IP-type-connections, running ``ppp -alias -auto blah''
will work for the first connection, although existing bindings will
not survive a disconnect/connect as the TCP peer will be trying to
send to the old IP address - the packets won't route.

It's now a lot easier to add IPXCP to ppp with minor updates to
the new iface.[ch] (if anyone ever gets 'round to it).

It's also now possible to manually add interface aliases with
something like ``iface add 1.2.3.4/24 5.6.7.8''.  This allows
multi-homed ppp links :-)
1998-10-22 02:32:50 +00:00
Dag-Erling Smørgrav
4da8edd59e Since vfork() was changed to fork(), we have to pass errno back from the
child to the parent somehow.

PR:		8353
Submitted by:	Andrew J. Korty <ajk@purdue.edu>
1998-10-20 11:34:11 +00:00
Brian Somers
74274b67f4 Specify BINOWN explicitly - we don't want to depend on bsd.own.mk
setting it to ``root''.
1998-10-20 00:19:38 +00:00
Dima Ruban
6fc32ef8ee Use sysctl() rather than kvm_read() when getting information
about clock stuff from kernel.
This fixes xntpd on alpha.
1998-10-19 20:48:08 +00:00
Jordan K. Hubbard
fbe55bf292 Add entries for DiskOnChip2000 Flash device.
Submitted by:	phk
1998-10-19 14:58:38 +00:00
Bill Paul
589e38a609 Add driver support for PCI fast ethernet adapters based on the
RealTek 8129/8139 chipset like I've been threatening. Update kernel
configs, userconfig.c, relnotes and sysinstall. No man page yet;
comming soon.

I consider this driver stable enough that I want to give it some
exposure in -current.
1998-10-18 16:24:34 +00:00
Bruce Evans
71e15550a3 Fixed missing libraries in DPADD. 1998-10-17 13:55:22 +00:00
Brian Somers
359b523392 Warn about (but process anyway) CBCP messages with an incorrect id. 1998-10-17 12:28:11 +00:00
Brian Somers
0e0c8ee5fc Adjust our CBCP RESP id so that it's the same as the REQ.
Submitted by: Tom <root@majestix.cmr.no>
1998-10-17 12:28:09 +00:00
Brian Somers
f21c8aecd1 If the client asks for CBCP, then replies with CBCP_NONUM
to our REQ, allow no dialback - but only if we've
``set cbcp *''..
Suggested by: Andrzej Tobola <san@koziolek.lublin.top.pl>
1998-10-17 12:28:08 +00:00
Brian Somers
cf784a89b7 Explain what the ``*'' means for a CBCP phone number
in ``show link''.
1998-10-17 12:28:06 +00:00
Brian Somers
571b60bf70 Move help displays left one column to avoid problems with
broken terminals that can't handle 80 columns followed by
a linefeed.
Pointed out by: bde@FreeBSD.org
1998-10-17 12:28:05 +00:00
Brian Somers
8c8d43deb7 Warn if we encounter an unindented line that isn't
terminated with a ``:''.
1998-10-17 12:28:03 +00:00
Brian Somers
e377bbf860 Warn that the specific chap protocol isn't supported when
rejecting CHAP because of byte 5.
Suggested by: Daniel O'Callaghan <danny@hilink.com.au>
1998-10-17 12:28:02 +00:00
Bruce Evans
97ed3f88a4 Removed unused/unusable "ha" keyword. Device classes should never have
been visible here.

Fixed disordering of keyword table by "cam".
1998-10-16 15:08:30 +00:00
Bruce Evans
28ed4514a2 Don't generate unused file ioconf.h.
Didn't bump CONFIGVERS, since ioconf.h was already unused when
CONFIGVERS was last bumped (although essentially the same (CAM)
commit batch that bumped CONFIGVERS also added bogus includes of
ioconf.h).
1998-10-16 15:00:18 +00:00
Jordan K. Hubbard
66049ce431 Add references to ATM cards (Mike Spengler <mks@networkcs.com>) and
remove all tabs.
1998-10-15 21:20:33 +00:00
Stephen McKay
099d4ed135 Spelling. 1998-10-15 13:37:35 +00:00
Jordan K. Hubbard
dbca9b5e34 Search for correct property name; the older attrs code bogusly folded case,
so I never noticed this bug. :)
1998-10-15 10:03:48 +00:00
Jordan K. Hubbard
e05672bb19 snuff warning message if package is not found in INDEX but is found
to be already installed anyway.
1998-10-15 06:50:43 +00:00
Jordan K. Hubbard
27f612d03f Revert 1.33; lstat() is indeed the wrong thing to do here. I'll
revisit this after release.
1998-10-14 18:52:04 +00:00
Jordan K. Hubbard
c2245054e1 Use properties code. 1998-10-14 11:23:48 +00:00
Jordan K. Hubbard
f73e2ce42e Don't generate a spam-friendly /etc/hosts by default.
Suggested by:	jmb
1998-10-14 01:04:44 +00:00
Dag-Erling Smørgrav
55c8f48a78 The adjtime man page is in section 2, not 8.
PR:		docs/8310
Submitted by:	Amakawa Shuhei <amakawa@nebula.sf.t.u-tokyo.ac.jp>
1998-10-13 22:55:29 +00:00
Dag-Erling Smørgrav
1fd98d7d88 Calls one or more of malloc(), warn(), err(), syslog(), execlp() or
execvp() in the child branch of a vfork(). Changed to use fork()
instead.

Some of these (mv, find, apply, xargs) might benefit greatly from
being rewritten to use vfork() properly.

PR:		Loosely related to bin/8252
Approved by:	jkh and bde
1998-10-13 14:52:33 +00:00
Jordan K. Hubbard
88f416c601 fix brainos in earlier commit. 1998-10-13 10:07:43 +00:00
Jordan K. Hubbard
09e17daec5 properly conditionalize for alpha. 1998-10-13 09:49:16 +00:00
Jordan K. Hubbard
a8c504d1d4 correct typo. 1998-10-13 09:46:40 +00:00
Jordan K. Hubbard
762709567b switch to proper boot0 1998-10-13 09:45:59 +00:00
Joseph Koshy
f5164ed617 Remove irrelevant section.
PR:		8286
Submitted-by:	yohta@bres.tsukuba.ac.jp
1998-10-13 08:14:31 +00:00
Jordan K. Hubbard
ee4fd995f8 Update to latest ports categories. 1998-10-13 07:31:37 +00:00
Jordan K. Hubbard
1772317fba Adjust docs to reflect reality. 1998-10-12 23:53:57 +00:00
Jordan K. Hubbard
037c4571ef Whoops; fix my X11R6 fixup. Now the package should be marked
as installed correctly.
1998-10-12 23:47:50 +00:00
Jordan K. Hubbard
d5aaa80c1c Make floppy media code more generic so that fixit floppy can use it. 1998-10-12 23:45:07 +00:00
Jordan K. Hubbard
ac5c5f1320 Correct a misleading comment. 1998-10-12 20:01:48 +00:00
Kazutaka YOKOTA
94c91d5f9d Add description on the "quiet" modifier for bell types. 1998-10-12 09:53:17 +00:00
Kazutaka YOKOTA
f41621f9fc Fix PnP mouse detection routine so that:
- it has longer timeout as per the PnP COM Device Specificaiton 1.0,
- and it tries to obtain the PnP ID string by strictly following the
  specification and if it fails, by deploying slightly simplified
  steps. (moused has used the simplified method because early PnP mice
  do not exactly follow the specification.  But now, recent mice
  do not supply the ID string unless the strict procedure is used...)

Jointly developed by luigi and yokota.
1998-10-12 09:36:27 +00:00
John Polstra
9836a38f7b Fix the MS-CHAP support. The code was passing a bit count to
MD4Update(), but our version in libmd expects a byte count.

This code is not currently compiled or linked into pppd, so I'm
reasonably sure I didn't break anything. :-)  I added the necessary
statements to the Makefile, but left them commented out because we
are in feature freeze.  When the code is enabled, we must be careful
to build it only if the DES library is available.
1998-10-11 19:40:38 +00:00
Jordan K. Hubbard
d26687c44f Add missing newline to debugging output. 1998-10-10 09:43:44 +00:00
Jordan K. Hubbard
d0a638ae52 Use lstat() rather than stat in determining whether a file exists,
otherwise we'll miss the "symlink exists but points nowhere" case.
Submitted by:	asami and/or possibly <ru@ucb.crimea.ua>
1998-10-09 00:01:16 +00:00
Dag-Erling Smørgrav
b354705227 Remove all references to tickadj(8) from rc, rc.conf and rc.conf.5.
Disable building tickadj(8) by removing util from SUBDIR in the xntpd
Makefile. Note that the sources are still there and tickadj can still
be built and installed by doing:

# cd /usr/src/usr.sbin/xntpd/util
# make all install

There are enough references to tickadj in e.g. the xntpd documentation
(not to mention the sysctl variables it uses etc.) that I don't feel
up to implementing the final solution right now.

Kinda-approved-by:	phk
1998-10-08 18:47:30 +00:00
Jordan K. Hubbard
3246202c72 Don't use boot2 on alpha. 1998-10-07 03:15:08 +00:00
Jordan K. Hubbard
5cc653756c Add back keymap.h. Guess this is the easiest way to get it built. 1998-10-05 22:17:41 +00:00
Jordan K. Hubbard
6c5f51d0b0 Correct braino: msdos -> dos. Now DOS installations should work again
(cough).
1998-10-05 03:32:03 +00:00
Bill Fenner
90cb74aae8 Fix CFLAGS: s/ETHER_NTOA/ETHER_NTOHOST/
PR:		bin/8130
Submitted by:	Dan Nelson <dnelson@emsphone.com>
1998-10-02 21:56:30 +00:00
Jordan K. Hubbard
a068293786 Add crunch back to general targets. 1998-10-02 11:31:36 +00:00
Jordan K. Hubbard
8d0d8a30ec Temporary use different stubs for the ECOFF case; I'm trying to get this
to build on the alpha, first off.
1998-10-02 11:30:07 +00:00
Mike Smith
4879f4d58a Pass the '-n' flag to route(8) when setting up/tearing down the default
route.  If your nameserver config is wrong, this will otherwise hang for
the default resolver timeout (75 seconds), leading people to think that
the system has hung.
1998-10-01 19:26:02 +00:00
Kazutaka YOKOTA
ad7b2eec31 - Express various sizes in bytes, rather than Kbytes, in the video
mode and adapter information structures.
1998-10-01 11:40:22 +00:00
Jordan K. Hubbard
767df892d7 One last alpha seat belt - never ask for an MBR boot manager. 1998-09-30 21:58:36 +00:00
Jordan K. Hubbard
b6d288b2c2 Add another check to prevent user from hanging themselves on alpha. 1998-09-30 21:55:33 +00:00
Jordan K. Hubbard
56d0e88cb4 remove keymap.h reference from incorrect location. 1998-09-30 21:51:15 +00:00
Jordan K. Hubbard
b5f2852c51 Always use dedicated disk case on alpha. 1998-09-30 21:48:11 +00:00
Jordan K. Hubbard
2fab62599d Small cleanup. 1998-09-30 21:39:02 +00:00
Jordan K. Hubbard
b8ecd49e5a Finally conditionalize the SCSI frobbing code properly. This
should return kernel config saving (under the current a.out system)
to its former functionality.
1998-09-30 20:54:34 +00:00
Jordan K. Hubbard
ec8c21cf11 More save_userconfig to a more appropriate spot. 1998-09-30 20:33:56 +00:00
Jordan K. Hubbard
ef7b28dd0a Simplify gunzip usage even more (doh!). 1998-09-30 13:36:53 +00:00
Jordan K. Hubbard
fb386e7c77 Fix english in prompt. 1998-09-30 12:33:28 +00:00
Jordan K. Hubbard
9bb1c20147 various bits of overdue cleanup. 1998-09-30 11:49:37 +00:00
Jordan K. Hubbard
35e9eb2f68 Call gunzip correctly. 1998-09-30 11:44:29 +00:00
Daniel O'Callaghan
3eba1a33e8 Fix typo in message. 1998-09-30 01:46:27 +00:00
Dmitrij Tejblum
5081946172 Rename a static variable, so it will not shadowed by a local variable.
Now comments will be ignored, rather than put junk in the password database.

Broken in:	rev. 1.21
1998-09-29 20:01:21 +00:00
David E. O'Brien
74b4790de7 mkdosfs(1) is dead, refere to newfs_msdos(8) 1998-09-29 17:31:28 +00:00
Jordan K. Hubbard
50660db1a6 Add in a kludge for registering the "package" version of XFree86 so
various ports don't complain about it.  It also requires that the pkg
registration bits be stick into the Xbin tarball so that they'll be
present in /usr/X11R6/lib/X11/pkgreg.tar.gz.  The registration tarball
is removed upon first use to prevent it later spamming a genuine build
from ports if inadvertently extracted again.
1998-09-29 14:23:13 +00:00
Jordan K. Hubbard
5d20b9915f Update to match newest XFree86 naming conventions. 1998-09-29 07:27:33 +00:00
Jordan K. Hubbard
919b0d127e Always do fixups, even if some minor dist failed to install.
Noticed by:	luigi
1998-09-29 05:12:39 +00:00
Joseph Koshy
1c4d62951a `kern.maxproc' is not changeable using sysctl(1). Change examples
that show `kern.maxproc' being written.

PR:		docs/7978
Submitted by:	jlemon@americantv.com
1998-09-29 02:01:06 +00:00
Joseph Koshy
1504bb5cd9 Correct use of nonexistent `.SS' macro.
PR: 		docs/8039
Submitted by:	Issei Hirayama <iss@mail.wbs.ne.jp>
1998-09-29 01:42:07 +00:00
Jordan K. Hubbard
eb0ffee8a1 Remove support for floppy tape installs. I'm sorry, we're outta
space, and it's either this or the DOS installs.  I think that the
DOS installs are somehow more important. :)
1998-09-26 17:05:08 +00:00
Gary Palmer
028a80e4a8 Don't assume that we have extended modes on all platforms. 1998-09-24 01:36:36 +00:00
Jordan K. Hubbard
bf05096f52 MF22: Important fixes for loading XFree86 distributions I forgot to
merge after 2.2.7 (I was wondering why that bug looked so familiar!).
Also update some docs accordingly.
1998-09-23 12:13:51 +00:00
Kazutaka YOKOTA
cb1d2924c4 VESA BIOS support update in syscons.
- Accept generic video mode names: 80x25, 80x30, etc. Specific video
  mode names, VGA_80x25, VESA_132x25, are still accpeted too.
- Update the man page accordingly.
1998-09-23 10:00:15 +00:00
Kenneth D. Merry
bcc6a3da92 Change the devstat generation number from an int to a long. The int-sized
generation was causing unaligned access faults on the Alpha.

I have incremented the devstat version number, since this is an interface
change.  You'll need to recompile libdevstat, systat, iostat, vmstat and
rpc.rstatd along with your kernel.

Partially Submitted by:	Andrew Gallatin <gallatin@cs.duke.edu>
1998-09-20 00:11:23 +00:00
David E. O'Brien
2887f586f0 Remove useless `BINOWN=root' now that it is the default. 1998-09-19 22:42:14 +00:00
David E. O'Brien
be0cde6f10 Remove useless `BINOWN=root' now that it is the default. 1998-09-19 22:42:06 +00:00
Brian Somers
68b414d193 Revert SEE ALSO ordering to version 1.124
Patched correctly by: wosch
Blunder pointed out by: bde
1998-09-18 23:28:10 +00:00
Joseph Koshy
7ecd7a42c5 Fix inappropriate use of .Ql macro.
PR:		docs/7905
Submitted by:	kuma@jp.freebsd.org
1998-09-18 04:45:43 +00:00
Doug White
929cbbf2b6 Typo: hittab -> hitab 1998-09-17 09:51:15 +00:00
Poul-Henning Kamp
d80044954c Two patches from the HARP people:
Various Makefile related fixes.

-Wformat fixes.

Submitted by:	Mike Spengler <mks@networkcs.com>
1998-09-17 09:35:02 +00:00
Doug Rabson
0b0efca2f4 Don't build ncrcontrol on alpha, its obsoleted by cam. 1998-09-17 08:55:02 +00:00
Justin T. Gibbs
c4ea283d54 Obsoleted by CAM. 1998-09-17 03:54:31 +00:00
Brian Somers
1595bacdf6 Sync with OpenBSD ifdefs 1998-09-17 00:45:27 +00:00
Brian Somers
0122d745f5 Alphabeticalize SEE ALSO section. 1998-09-17 00:45:12 +00:00
Kenneth D. Merry
e4d7fe0209 Fix style bugs introduced by Matt Dillon in his previous, unreviewed
commit.

Reviewed by:	gibbs
1998-09-16 23:14:47 +00:00
Matthew Dillon
2fa4aaa07a Fixed segfault when more then four devices are specified (improper free),
fixed variable so all manually-specified devices are shown rather then
    cutting the display off at 3, fixed formatting for msps when msps is
    larger then 100 (it was blowing the columner display output before),
    added -K option to make blk count (-oIK) force a 1K block size (to conform
    more closely to systat, vmstat definition of blocksize).
1998-09-16 18:03:44 +00:00
Andrzej Bialecki
8a8d9b082f Add new '-i' option to usage(). 1998-09-16 13:55:26 +00:00
Doug Rabson
870b8846f4 Snip out some dead code from the alpha part. 1998-09-16 09:34:07 +00:00
Doug Rabson
183b47f7bb Add some things to the alpha build. 1998-09-16 09:33:23 +00:00
John Hay
9fe6a96a87 Update the man page to match the rest of crunchide. 1998-09-16 09:26:14 +00:00
Jordan K. Hubbard
0d4651753d Make SCSI stuff truly optional.
Noticed by:	jhay
1998-09-16 09:25:20 +00:00
Bill Paul
4b692ba7f9 Apply patch from Stefan Esser to close PR #7941: add code to handle
dynamic loading of libdes on ELF systems. The patch looks correct to
me.
1998-09-16 01:50:04 +00:00
Justin T. Gibbs
2f8aad8b31 Bump config version. Also mention that even after rebuilding a new
config, you may need to resynchronize your config file with syntax
or name changes documented in GENERIC or LINT.
1998-09-15 21:07:54 +00:00
Bill Fenner
8afdc82db6 Update for tcpdump 3.4 1998-09-15 19:47:58 +00:00