Commit Graph

4248 Commits

Author SHA1 Message Date
Brian Somers a237dcba17 Add ``PROCESSID'' as a constant expanded when running
commands.
1998-10-27 22:53:19 +00:00
Brian Somers 0460185ddf Stress that ``none'' must be specified on the `set callback'
line if callback is to be optional.
Requested by: Andrzej Tobola <san@koziolek.lublin.top.pl>
1998-10-27 22:53:18 +00:00
Brian Somers 3535dfb0be Shuffle the iface-alias option so that's in alphabetical
order like the rest of the options.
1998-10-26 19:07:42 +00:00
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