summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* If the CBCP callee offsers no callback, send our configuredbrian1998-10-311-5/+7
| | | | | | response anyway. This is what Win95 does, despite it not being documented in the cbcp spec.... Reported by: Bill <petheram@acm.org>
* Allow multiple systems (config labels) on the commandbrian1998-10-316-101/+116
| | | | | | line and in the ``load'' & ``dial'' commands. The last label loaded becomes the current label name. Only require a label for -auto mode.
* Don't call PacketAliasIn() when we turn around packets destinedbrian1998-10-291-7/+1
| | | | | | for our interface address. We're about to call ip_Input() anyway, and ip_Input() does the PacketAliasIn(). Stack trace provided by: Cameron Grant <gandalf@vilnya.demon.co.uk>
* Increase the granularity of the debugging messages.obrien1998-10-291-12/+17
|
* Add some debugging statments (only if DEBUG opt is set), to try pin downobrien1998-10-291-1/+5
| | | | the hangs many of us are experiencing.
* Remove some redundant (#if 0'd) code.brian1998-10-291-8/+1
|
* Unlink old contents of package when extracting new.jkh1998-10-281-2/+2
| | | | Submitted by: pst
* Handle ELF symbols better. This fixes "vmstat -i" for the casejdp1998-10-281-21/+50
| | | | | | | | | where "/var/db/kvm_kernel.db" exists. Note, kvm_mkdb tries to be clever, and skips rebuilding the database if it thinks it's already up to date. To see the effects of this fix, you may need to manually delete "/var/db/kvm_kernel.db" and then run "kvm_mkdb".
* Check for C:\FREEBSD also, for backwards compatibilityjkh1998-10-281-2/+2
|
* Untimeout the chat expect timer as soon as we get abrian1998-10-271-1/+2
| | | | | | match - otherwise, with a delayed (\\d) ``send'', the timeout may happen during the send and cause a failure. Problem reported by: David L. Vondrasek <dallas.tx@airmail.net>
* Add ``set proctitle'' for changing argv[0]. All substitutionsbrian1998-10-275-6/+85
| | | | | | | are done in the same way as command execution. For example, ``set proctitle USER INTERFACE PROCESSID'' would be useful in a -direct profile for identifying who's connected.
* Add ``PROCESSID'' as a constant expanded when runningbrian1998-10-273-4/+11
| | | | commands.
* Stress that ``none'' must be specified on the `set callback'brian1998-10-272-10/+26
| | | | | line if callback is to be optional. Requested by: Andrzej Tobola <san@koziolek.lublin.top.pl>
* Shuffle the iface-alias option so that's in alphabeticalbrian1998-10-262-14/+14
| | | | order like the rest of the options.
* Add ``enable proxyall'' support. This adds proxy ARP entriesbrian1998-10-268-61/+169
| | | | | | | | | | 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
* Fix the interface alias code. Previously, I was expecting somethingbrian1998-10-264-29/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Don't send a DELAY value when sending CBCP_NONUMbrian1998-10-251-4/+8
| | | | | (as per the spec). Spotted by: Andrzej Tobola <san@koziolek.lublin.top.pl>
* Loosen our restrictions on setting enddisc, mrru,brian1998-10-244-30/+85
| | | | | | | | 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.
* Ignore `vector xxxintr' specifications except for checking their syntax.bde1998-10-232-28/+9
| | | | | | | | | | | 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.
* fix spelling error.jkh1998-10-232-4/+4
| | | | Submitted by: Pomegranate <daver@flag.blackened.net>
* Removed all `vector xxxintr' specifications. Interrupt handlers are nowbde1998-10-222-7/+7
| | | | configured in drivers.
* Solve the ``first connection'' problem that occurs onbrian1998-10-2214-417/+1082
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 :-)
* Since vfork() was changed to fork(), we have to pass errno back from thedes1998-10-201-3/+6
| | | | | | | child to the parent somehow. PR: 8353 Submitted by: Andrew J. Korty <ajk@purdue.edu>
* Specify BINOWN explicitly - we don't want to depend on bsd.own.mkbrian1998-10-201-0/+1
| | | | setting it to ``root''.
* Use sysctl() rather than kvm_read() when getting informationdima1998-10-192-0/+29
| | | | | about clock stuff from kernel. This fixes xntpd on alpha.
* Add entries for DiskOnChip2000 Flash device.jkh1998-10-192-2/+6
| | | | Submitted by: phk
* Add driver support for PCI fast ethernet adapters based on thewpaul1998-10-182-2/+4
| | | | | | | | | 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.
* Fixed missing libraries in DPADD.bde1998-10-173-9/+9
|
* Warn about (but process anyway) CBCP messages with an incorrect id.brian1998-10-171-1/+11
|
* Adjust our CBCP RESP id so that it's the same as the REQ.brian1998-10-171-1/+2
| | | | Submitted by: Tom <root@majestix.cmr.no>
* If the client asks for CBCP, then replies with CBCP_NONUMbrian1998-10-171-1/+8
| | | | | | to our REQ, allow no dialback - but only if we've ``set cbcp *''.. Suggested by: Andrzej Tobola <san@koziolek.lublin.top.pl>
* Explain what the ``*'' means for a CBCP phone numberbrian1998-10-171-3/+9
| | | | in ``show link''.
* Move help displays left one column to avoid problems withbrian1998-10-171-3/+5
| | | | | | broken terminals that can't handle 80 columns followed by a linefeed. Pointed out by: bde@FreeBSD.org
* Warn if we encounter an unindented line that isn'tbrian1998-10-171-2/+7
| | | | terminated with a ``:''.
* Warn that the specific chap protocol isn't supported whenbrian1998-10-171-8/+19
| | | | | rejecting CHAP because of byte 5. Suggested by: Daniel O'Callaghan <danny@hilink.com.au>
* Removed unused/unusable "ha" keyword. Device classes should never havebde1998-10-161-2/+4
| | | | | | been visible here. Fixed disordering of keyword table by "cam".
* Don't generate unused file ioconf.h.bde1998-10-161-39/+6
| | | | | | | 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).
* Add references to ATM cards (Mike Spengler <mks@networkcs.com>) andjkh1998-10-152-24/+6
| | | | remove all tabs.
* Spelling.mckay1998-10-151-2/+2
|
* Search for correct property name; the older attrs code bogusly folded case,jkh1998-10-151-2/+2
| | | | so I never noticed this bug. :)
* snuff warning message if package is not found in INDEX but is foundjkh1998-10-151-2/+2
| | | | to be already installed anyway.
* Revert 1.33; lstat() is indeed the wrong thing to do here. I'lljkh1998-10-141-2/+2
| | | | revisit this after release.
* Use properties code.jkh1998-10-146-52/+36
|
* Don't generate a spam-friendly /etc/hosts by default.jkh1998-10-142-4/+10
| | | | Suggested by: jmb
* The adjtime man page is in section 2, not 8.des1998-10-131-2/+2
| | | | | PR: docs/8310 Submitted by: Amakawa Shuhei <amakawa@nebula.sf.t.u-tokyo.ac.jp>
* Calls one or more of malloc(), warn(), err(), syslog(), execlp() ordes1998-10-131-3/+3
| | | | | | | | | | | 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
* fix brainos in earlier commit.jkh1998-10-132-8/+8
|
* properly conditionalize for alpha.jkh1998-10-134-4/+8
|
* correct typo.jkh1998-10-132-2/+2
|
* switch to proper boot0jkh1998-10-136-60/+10
|
OpenPOWER on IntegriCloud