summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Fix a segmentation violation that happened if "auth" was in thejdp1997-12-131-2/+3
| | | | options file but there was no suitable secret in the secrets file.
* Change the ioctls for procfs around a bit; in particular, whever possible,sef1997-12-131-5/+3
| | | | | | | | | | | | | | change from ioctl(fd, PIOC<foo>, &i); to ioctl(fd, PIOC<foo>, i); This is going from the _IOW to _IO ioctl macro. The kernel, procctl, and truss must be in synch for it all to work (not doing so will get errors about inappropriate ioctl's, fortunately). Hopefully I didn't forget anything :).
* Allow random IP number allocation to peer.brian1997-12-1318-143/+504
| | | | | | | | | | | | | | | | | | | | Validate the peers suggested IP by attempting to make a routing table entry. Give up IPCP negotiation if the peer NAKs us with an unusable IP. Always SIOCDIFADDR then SIOCAIFADDR when configuring the tun device. Using SIOCSIFDSTADDR allows duplicate dst addresses (which we don't want)!!! Allow up to 200 interface names (was 50) (now that ppp can play server properly). Up the version number (1.5 -> 1.6). Cosmetic: Log unexpected CCP packets in the CCP log rather than the ERROR log. Log unexpected Config Reqs in the appropriate LCP/IPCP/CCP log rather than the ERROR log. Log failed route additions and deletions with WARN, not TCPIP. Log the option id and length for unrecognised IPCP options. Change some .Sq to .Ar in the man page.
* Fixed printing of and comparison with d_typename[]. It is not alwaysbde1997-12-121-5/+8
| | | | null terminated.
* MF22 (oops, I committed it to the wrong tree yesterday).bde1997-12-121-23/+23
| | | | | | Changed lots of %ld's in format strings back to %d. %ld was right when daddr_t was long, but Lite2 changed daddr_t to int32_t which is implemented as `int' on i386's.
* Fixed the usual multiplication overflow bug in an lseek() offset calculation.bde1997-12-111-2/+3
| | | | The scan for bad sectors was broken for offsets >= 4G on 32-bit systems.
* Merged from Lite2 (fix misformattings in copyright).bde1997-12-111-4/+4
|
* Fix some style bugs.guido1997-12-102-9/+10
| | | | Submitted by: bruce
* natd 1_10 => 1_11brian1997-12-102-61/+70
| | | | | | Cosmetic style changes Use u_short for port values. Submitted by: Ari Suutari <ari@suutari.iki.fi>
* Log all failed mount attempts.guido1997-12-092-9/+59
| | | | | Also add a flag (-l) so mountd will also log all succeeded requests to mountd.
* Deal with inflate() returning avail_in == avail_out == 0brian1997-12-081-2/+18
| | | | | | | We must call inflate again in case there's any pending output despite our input buffer being empty. If the output buffer is in fact already flushed, inflate() returns Z_BUF_ERROR. There isn't really an error !
* Correct usage of `add' and `delete'.brian1997-12-081-2/+2
|
* Explicitly state that the -t option is required only when theyokota1997-12-081-3/+10
| | | | | | | moused command is not able to detect the appropriate protocol for the give mouse automatically. Suggested by: sos
* Use Pa for files and Ar for arguments.charnier1997-12-081-24/+32
|
* - Changed strcmp to strncmp for checking the CIS manufacturer strings,nate1997-12-081-3/+3
| | | | | | | | since we only store CIS_MAXSTR data, and the users may stick the 'entire' CIS string returned from the card in /etc/pccard.conf and cause the comparison to (bogusly) fail. Submitted by: Brad Karp <karp@eecs.harvard.edu>
* Fix PAP, CHAP & LQR req (I broke the byte ordering whenbrian1997-12-073-16/+70
| | | | | | | | I did the deflate re-org). Make PAP & CHAP negotiation prettier in the log file. If both PAP & CHAP are `enabled' and the peer NAKs CHAP suggesting PAP, be friendly and REQ PAP the next time. This is in line with the rfc.
* update hub.mc with the latest set of anti-spam rulesjmb1997-12-071-16/+10
| | | | Submitted by: jmb
* The `moused' daemon is made to support various serial mouseyokota1997-12-072-322/+2074
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | protocols to recognized extra buttons and wheel/roller. It now has PnP COM device support code, thus, some recent mouse products are automatically detected and an appropriate protocol is selected. The `-i' option will print the result of auto-detection. - Added support for the following SERIAL mice: ALPS GlidePoint, MS IntelliMouse, Kensington Thinking Mouse (Genius NetMouse, NetMouse Pro, ASCII MieMouse, Logitech MouseMan+, FirstMouse+ are compatible with MS IntelliMouse, when connected to a serial port, thus requires no explicit support) - Added PnP serial mouse identification capability as defined by Microsoft and Hayes in "Plug and Play External COM Device Specification, rev 1.00". This support will enable us to identify the correct protocol to use, or choose a compatible protocol for the given mouse. - Utilize new ioctls defined in `mouse.h' to get hardware and protocol information on PS/2 and bus mouse devices. Try to guess the correct protocol and port combination based on the obtained info. - Use MOUSE_SETLEVEL ioctl. - Use constants defined in `mouse.h' rather than using own definitions. - A New command line option. The -i option prints the information collected though the PnP code and psm/mse ioctls mentioned above, and just quits. This is to test `moused's ability, or inability, to detect the correct protocol for the given mouse automatically. - A new command line option. The -m option maps a physical button to a logical button. - A new command line option. The -z option maps the Z axis movement to another axis or a pair of buttons. - Add other options: -3, -C -F -P. - Added a handler for SIGHUP. This has been suggested by somebody in the past (I don't remember who). He wanted this because he wants to attach or detach a mouse while his laptop is suspended. Now `moused' will reopens and reinitialize the specified port whenever a SIGHUP is received. I don't know how useful this can be...
* Only allow one arg to `delete' - the mask & gateway aren't necessary.brian1997-12-074-126/+170
| | | | | | | | | | | | | | Delete AF_LINK routes as well as AF_INET. Allow the word `default' as the arg to `delete' or in place of the first two args (dest & netmask) to `add'. Accept INTERFACE as the third arg to `add'. You can now say `add default interface' to create a default route through the tun interface. It's reported that subsequent bind()s will bind to a broadcast address and not to the address currently assigned to the tun device - this is the first step towards supporting that first connection that was around from before the dynamic IP negotiation....
* explicitly set MAN8 since only MAN1 is defaulted.peter1997-12-071-1/+2
|
* Add $Id$peter1997-12-071-0/+1
|
* delete -static, add $Id$peter1997-12-071-2/+2
|
* add procctlpeter1997-12-071-2/+2
|
* Correct cftypes128 index.brian1997-12-061-2/+2
|
* Fix incorrect format string in call to errx().jdp1997-12-061-2/+2
|
* Reverse my previous change and use htons() on an intbrian1997-12-061-1/+1
| | | | | | | | | | | | | instead of htonl() ! This results in the int a,b,c,d changing to b,a,c,d, but as it's subsequently coerced to a u_short, the ultimate answer is correct. If this isn't fixed properly soon (by the author) I'll have a look at it again. Noted by: eivind & ari@suutari.iki.fi
* Add missing argument to warn() call.jdp1997-12-061-2/+2
|
* First checkin of the procctl program.sef1997-12-063-0/+89
|
* Understand ``sockaddr_dl''s where sdl_nlen != 0brian1997-12-041-24/+25
|
* Remove duplicate REJECTED macro.brian1997-12-041-24/+18
| | | | Remove extraneous pointers.
* Initialize ccpstate when CCP comes down.brian1997-12-041-32/+19
| | | | Remove extraneous pointers.
* Parenthesise the REJECTED macro.brian1997-12-041-2/+2
|
* Identify rejected protocol types according to rfc1700.brian1997-12-041-4/+130
|
* Fix the CCP Type field value for DEFLATE.brian1997-12-038-48/+203
| | | | | | | | | | | | | | (I *really* meant to do this *before* committing the deflate changes in the first place - oops). Pppd is horribly broken in this respect - refer to the ppp man page for details. Ppp *WON'T* negotiate deflate with pppd by default - you must ``enable'' and ``accept'' ``pppd-deflate'' in your config. While I'm in there, update the cftypes in ccp.c so that we recognise some more protocols (we don't actually do anything with them - just send a REJ).
* Abstract the CCP layer a level.brian1997-12-0324-286/+1209
| | | | Add DEFLATE support.
* Document the new long names for printcap capabilities.wollman1997-12-021-1/+44
|
* Mega lpd/lpd upgrade, part I:wollman1997-12-0243-1921/+2896
| | | | | | | | | | | | | | | - Get rid of a lot of the static variables which were shared by many routines and programs in the suite. - Create an abstract interface to the printcap database, so that other retrieval and iteration mechanisms could be developed (e.g., YP, Hesiod, or automatic retrieval from a trusted server). - Give each capability a human-readable name in addition to the historic two-character one. - Otherwise generally clean up a lot of dark corners. Many still remain. - When submitting jobs, use the official login name record (from getlogin()) if there is one, rather than reverse-mapping the uid. More to come...
* improve anti-spam rulesets: check_relay, check_mail, check_rcpt.jmb1997-11-301-29/+103
| | | | | | | | | | | | break each ruleset into identified sections. (called groups). note which groups can be reordered. each group accepts and returns the same strings, as much as possible. reactivate Paul Vixie's RBL (in check_mail) add rules to limit mail relaying to a list of hosts and domains in the R class (check_rcpt, not active on hub.freebsd.org) Submitted by: jmb
* Sleep 10secs after kill -HUP instead of 3secs, some daemons like Apacheache1997-11-301-2/+2
| | | | may have log time to re-configure
* Remove an extraneous ".kbd" that crept in for the Swiss Germanjoerg1997-11-262-4/+4
| | | | | | keyboard map. Submitted by: georg.wagner@ubs.com
* Display connect time as 0 if we've never beenbrian1997-11-261-3/+3
| | | | | connected. Pointed out by: Jeff Kletsky <Jeff@wagsky.com>
* - Don't worry about the previous state of the card (insert/removed), andnate1997-11-251-2/+4
| | | | | | | instead Do The Right Thing when the kernel states a card was inserted/removed. This isn't a complete fix, but better than nothing. Reviewed by: Guido van Rooij <guido@gvr.org>
* Fix the help command (broken when I re-prototypedbrian1997-11-231-20/+33
| | | | all the commands).
* Up the version number to 1.5.brian1997-11-221-3/+3
|
* Understand how to derive the names of interfacesbrian1997-11-221-34/+28
| | | | | when they aren't ordered. This is probably vital for laptop support ;-I
* Fix prototypes.brian1997-11-2262-752/+823
| | | | | | | | | | | | | | Remove extraneous decls. Add ``const'' to several places. Allow ``make NOALIAS=1'' to remove IP aliasing. Merge with OpenBSD - only the Makefiles vary. We can now survive a compile with -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -Wchar-subscripts (although the Makefile just contains -Wall).
* - Renamed log_1s() to logmsg().nate1997-11-194-26/+26
|
* - Include <pccard/cardinfo.h> instead of <pccard/card.h> which was recentlynate1997-11-1810-20/+20
| | | | renamed.
* Allow zero args to "cvs log".brian1997-11-181-2/+2
|
* Fix interactive mode so that it doesn't require a passwd (again!).brian1997-11-181-1/+4
|
OpenPOWER on IntegriCloud