summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Redo the way that fatal-error messages are done in the chkhost() routine,gad2002-06-241-64/+88
| | | | | | | | mainly so the compiler can correctly do printf-style parameter checking. Some minor improvements to a few of the error messages, but the main goal here is to get rid of a few more compile-time warning messages. MFC after: 5 days
* C replacement for the Perl5 code.markm2002-06-249-680/+570
| | | | Submitted by: reg
* Print a long with %ld not %d. (We possibly should be using %j here, butdwmalone2002-06-241-1/+1
| | | | | | | | that can be fixed when the many other warnings here are being fixed.) PR: 39741 Submitted by: Dan Lukes <dan@obluda.cz> MFC after: 1 week
* include if_ieee80211.h and if_wireg.h, don't know why that didn't work beforeimp2002-06-241-0/+2
|
* Document -L and -l.imp2002-06-242-3/+92
| | | | | | | Change -l -> -L to match OpenBSD (since we haven't MFC'd it yet). -l will now list stations that are associated with a hostap (preliminary) MFC After: 2 weeks
* Add a hack to handle RADIUS responses from peers that forget thatbrian2002-06-231-4/+20
| | | | | | | there's an ``Ident'' field in the MS-CHAP2-Response and MS-CHAP-Error attributes. The RADIATOR server seems to be guilty of this.
* Stop adding ${CWARNFLAGS} to CFLAGS. The standard makefile processing willgad2002-06-238-9/+7
| | | | | | add them automatically, and there is no point in adding them twice. MFC after: 5 days
* Add function name in error message.n_hibma2002-06-231-1/+1
|
* Don't expect NUL terminated data in all netgraph messages received.brian2002-06-221-2/+8
| | | | Only display message hook values we understand.
* Replace the SWAP(var0,var1) macro with SWAP(type,var0,var1) and use it asjmallett2002-06-221-9/+9
| | | | | | | | | is appropriate to avoid using typeof/__typeof__. It is worth noting that SWAP() is only ever used to swap pointer values so 'void *' assumptions would have been acceptable, but I'd gladly pay you tuesday for a cheeseburger^W cleaner interface today. Poked into submission by: bde
* Unused macro.jmallett2002-06-221-1/+0
|
* Make it clear that this applies only to UFS1 file systems, as UFS2 willrwatson2002-06-221-3/+3
| | | | | | | | have native extended attributes rather than stacked extended attributes. While I'm at it, make sure UFS_EXTATTR is not spelt FFS_EXTATTR. Sponsored by: DARPA, NAI Labs Obtained from: TrustedBSD Project
* __FBSDID() strategic insertion.jmallett2002-06-212-5/+6
|
* Kill __P, yuck.jmallett2002-06-213-46/+46
|
* Mark unused variables __unused.jmallett2002-06-212-5/+5
| | | | Built standalone, inetd(8) is WARNS=5 clean, WARNS=6 if you ignore %m fits.
* Use __typeof__ instead of typeof.jmallett2002-06-211-1/+1
|
* Kill bad whitespace and do some style cleanups as a result of the protoize.jmallett2002-06-211-30/+20
|
* ANSI prototypes via protoize(1).jmallett2002-06-212-100/+64
|
* Clean up hex() and octal() to return and work with unsigned integers sincejmallett2002-06-211-8/+8
| | | | | they scan values of unsigned types, and since they do not need otherwise, have them take const char * arguments.
* This commit adds basic support for the UFS2 filesystem. The UFS2mckusick2002-06-211-53/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | filesystem expands the inode to 256 bytes to make space for 64-bit block pointers. It also adds a file-creation time field, an ability to use jumbo blocks per inode to allow extent like pointer density, and space for extended attributes (up to twice the filesystem block size worth of attributes, e.g., on a 16K filesystem, there is space for 32K of attributes). UFS2 fully supports and runs existing UFS1 filesystems. New filesystems built using newfs can be built in either UFS1 or UFS2 format using the -O option. In this commit UFS1 is the default format, so if you want to build UFS2 format filesystems, you must specify -O 2. This default will be changed to UFS2 when UFS2 proves itself to be stable. In this commit the boot code for reading UFS2 filesystems is not compiled (see /sys/boot/common/ufsread.c) as there is insufficient space in the boot block. Once the size of the boot block is increased, this code can be defined. Things to note: the definition of SBSIZE has changed to SBLOCKSIZE. The header file <ufs/ufs/dinode.h> must be included before <ufs/ffs/fs.h> so as to get the definitions of ufs2_daddr_t and ufs_lbn_t. Still TODO: Verify that the first level bootstraps work for all the architectures. Convert the utility ffsinfo to understand UFS2 and test growfs. Add support for the extended attribute storage. Update soft updates to ensure integrity of extended attribute storage. Switch the current extended attribute interfaces to use the extended attribute storage. Add the extent like functionality (framework is there, but is currently never used). Sponsored by: DARPA & NAI Labs. Reviewed by: Poul-Henning Kamp <phk@freebsd.org>
* Update for tcpdump 3.7.1fenner2002-06-212-47/+36
|
* Compensate for dodgy Win98/WinME MSCHAPv2 responses later in the codebrian2002-06-175-29/+34
| | | | | | | | | | | | | | | | path... after we've talked to any RADIUS servers involved, so that we haven't touched the data before it gets to the server. Make it clearer in the code that this compensation is done by setting a flag to a value of zero, a flag which rfc2759 says *MUST* be zero. While we're here, don't bother passing the peer challenge into radius_Authenticate(). It's already part of the key we're passing in (this becomes obvious now that I've structured that data...). This ``fix'' doesn't help to authenticate Win98/WinME users in my test environment as ports/net/freeradius seems to ignore the flag completely anyway, but it may help with other RADIUS servers.
* Just rename two generic-queue init routines from 'init_*' to '*_gi'gad2002-06-163-7/+7
| | | | | | ("gi" short for 'generic init'...). MFC after: 10 days
* Add a nearly complete rewrite of the lpc command 'down'. The only user-gad2002-06-164-3/+73
| | | | | | | | | | | | | | visible change should be that more than one queue can now be specified, if one uses the '-msg' parameter to separate the list of queues from the status message to set. The previous implementation of 'down' remains available as the command 'xdown', available for instant fallback if there seems to be anything wrong with the new one. If no one reports a problem after a few weeks, then a later update will remove 'xdown'. Reviewed by: freebsd-print@bostonradio.org MFC after: 10 days
* Make the description of the 'down' command a little more readable.gad2002-06-151-2/+4
| | | | MFC after: 10 days
* Reorganize the way that arguments are processed in lpc's generic-queuegad2002-06-151-20/+24
| | | | | | | commands, to make things a little cleaner (mainly for a later update). Reviewed by: freebsd-print@bostonradio.org MFC after: 10 days
* Add a new command to 'lpc' called 'setstatus', which would be used togad2002-06-156-28/+140
| | | | | | | | | change the status message of a print queue. This includes some minor changes to the upstat() routine, so that error messages are not printed while seteuid(priv-user). Reviewed by: freebsd-audit and freebsd-print@bostonradio.org MFC after: 10 days
* Do not issue deprecated ioctl.ume2002-06-151-0/+8
| | | | | Obtained from: KAME MFC after: 2 weeks
* Don't install obsolete gifconfig(8). Please use ifconfig(8) instead.ume2002-06-151-1/+0
|
* Don't install obsolete prefix(8). We now have `ifconfig eui64'.ume2002-06-151-1/+0
|
* A better prinflike fix...brian2002-06-151-2/+2
|
* Remove whitespace at the end of lines.brian2002-06-1531-89/+89
|
* Fix a printflike format errorbrian2002-06-151-1/+1
|
* Remove a forgotten diagnosticbrian2002-06-151-1/+0
|
* Changed the behavior when an interface-direct prefix being advertisedume2002-06-138-45/+166
| | | | | | | | | | | was removed from the kernel; Advertise the prefix with zero lifetimes rather than to remove the prefix from the prefix list to be advertised. This will help renumber a receiving host by deprecating the address derived from the old prefix. Obtained from: KAME MFC after: 2 weeks
* Bah humbug. Fix another typo on the same comment line. It also hadgad2002-06-131-1/+1
| | | | | | an option-space instead of a space... MFC after: 10 days
* Fix a typo in a comment from the previous commit. I had a bullet-charactergad2002-06-131-1/+1
| | | | | | | instead of an asterisk. Noticed by: keramida MFC after: 10 days
* Almost complete rewrite of the lpc commands 'abort', 'enable', 'disable',gad2002-06-135-14/+457
| | | | | | | | | | | | | | | | | 'restart', 'start', 'stop' and 'up'. These are commands which mainly just alter the access bits on the lock-file of a queue, and they all now use a central routine to do that. This reduces the amount of code that is run as the priv userid, and eliminates a number of cases where error messages were written while that priv uid was in effect. As far as users are concerned, there should be no noticable difference in the new versions. In case there *is*, the previous implementations are still there as 'xabort', 'xenable', etc, so they are available for instant fallback. If no one reports a problem after a few weeks, then a later update will remove those x-commands. Reviewed by: freebsd-audit and freebsd-print@bostonradio.org MFC after: 10 days
* If a RAD_FILTER_ID is supplied by the RADIUS server, treat it as anbrian2002-06-122-1/+20
| | | | | | additional label from ppp.linkup & ppp.linkdown to load. Suggested and mostly submitted by: andrew pavlov <and@kremenchug.net>
* Bump the version number to reflect the recent RADIUS commitsbrian2002-06-121-1/+1
|
* Don't forget to process the Ident field on the front ofbrian2002-06-122-16/+26
| | | | | | | | | | | RAD_MICROSOFT_MS_CHAP_ERROR and RAD_MICROSOFT_MS_CHAP2_SUCCESS messages, and remove the hack in chap.c to ignore that ident field on the client side. This anomoly was hacked around during development, and I forgot to go back and fix it properly. Spotted by: Sergey Korolew <ds@rt.balakovo.ru>
* Reorder libraries to fix static linking (libssl depends on libcrypto, sodes2002-06-124-8/+8
| | | | | | it must come before libcrypto in LDADD) Reviewed by: bde
* de __Pimp2002-06-121-39/+30
| | | | | ANSI functions minor knf
* KNF.imp2002-06-121-87/+89
| | | | Use ANSI functions rather than old K&R style.
* Kill __P.imp2002-06-121-2/+2
|
* Understand the following Microsoft Vendor Specific RADIUS attributes:brian2002-06-128-55/+329
| | | | | | | | | | | | | | | | | RAD_MICROSOFT_MS_MPPE_ENCRYPTION_POLICY RAD_MICROSOFT_MS_MPPE_ENCRYPTION_TYPES RAD_MICROSOFT_MS_MPPE_RECV_KEY RAD_MICROSOFT_MS_MPPE_SEND_KEY These attributes may be supplied by a RADIUS server when MSCHAPv2 is used to authenticate. It *should* now be possible to build ppp with -DNODES and still support CHAP/MSCHAP/MSCHAPv2/MPPE via a RADIUS server, but the code isn't yet smart enough to do that (building with -DNODES just looses these facilities). Sponsored by: Monzoon
* Go back to taking the user's umask into account. Thanks to Alfred fordougb2002-06-101-23/+31
| | | | | | | hatching the idea of using dc, and Giorgos (keramida) for incubating it. This also reverses most of the previous commit which took out or modified the text about umask stuff.
* Change our default XF86Config location from /etc/ to /etc/X11/,obrien2002-06-103-3/+5
| | | | | | following the lead of The XFree86 Project's default. Approved by: Murray
* Don't depend on <pwd.h> to bogusly include <sys/types.h>.mike2002-06-091-0/+1
|
* Fix a bug where request_part_size() was hard-coded to check the rootSizejhb2002-06-072-2/+2
| | | | | | variable rather than the one passed in as the first argument. Sponsored by: The Weather Channel
OpenPOWER on IntegriCloud