summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Handle return values of 0 from NgRecvMsg() properly.brian2001-08-241-2/+2
|
* Bring in some iostat fixes that bde reminded me about. These fixes wereken2001-08-232-95/+125
| | | | | | | | | | | | | | | | originally written in January, 2000, but have been substantially updated. - No longer use hz/stathz and the CPU times in computing the TTY stats, but rather use etime, like the disk stats. - Clean up malloc/realloc failure tests. - Use a new integrated routine to fetch devstat information via sysctl or KVM. - Get rid of the X() macro for calculating CPU stats - Use rint() on the CPU state display to avoid truncation errors. (this requires libm) - Clean up flag usage somewhat. Reviewed by: bde
* Properly initialize the random number generator in pw_getpass().joerg2001-08-211-0/+1
| | | | | | | Right now, the automatically generated passwords have been rather predictable. :-( MFC after: 1 day
* o Enable IFF_MULTICAST when first opening the tun device (and keep the flagbrian2001-08-213-11/+11
| | | | | | when we ioctl(TUNSIFINFO) under OpenBSD) o Don't bring the interface up immediately o Don't complain about unrecognised interface flags in ``show iface''.
* Fix a typo in a variable name that made pw(8) coredump when usingjoerg2001-08-211-1/+1
| | | | | | USE_MD5RAND. MFC after: 2 days
* Handle snprintf() returning < 0 (not just -1)brian2001-08-207-12/+16
| | | | MFC after: 2 weeks
* Handle ftp_copycommand() and ftp_copyresult() potentially returning < -1.brian2001-08-201-12/+4
|
* Handle snprintf() returning -1.brian2001-08-209-54/+62
| | | | MFC after: 2 weeks
* Properly change old interface addresses so that their destination isbrian2001-08-201-1/+2
| | | | 255.255.255.255 if our new destination address conflicts.
* Add some comments to explain what's going on herebrian2001-08-201-9/+21
|
* mdoc(7) police: simplify literal display block.ru2001-08-201-2/+4
|
* The timed protocol is not implemented in a compatible way by all vendors;kris2001-08-202-7/+23
| | | | | | | | | | | | | | the size of the tsp_name field is OS-dependent. 4.3BSD used a 32-byte field, FreeBSD uses MAXHOSTNAMELEN and RedHat apparently uses a 64-byte field. As a result, sanity checking code added a few months ago to detect short packets will fail when interoperating with one of these other vendors. Change the short packet detection code to expect a minimum packet size corresponding to the 4.3BSD implementation, which should be a safe minimum size. Submitted by: Stephen Whiteley <stevew@best.com> (based on) PR: misc/29867
* Pass the username we just made to pwd_mkdb so that the latter doesn'tdd2001-08-201-3/+4
| | | | | | | have to regenerate the entire database. PR: 25798 Submitted by: Domas Mituzas <domas.mituzas@delfi.lt>
* When attempting to change the default route, don't write the gatewaybrian2001-08-201-7/+26
| | | | | | | | | | and mask to the routing socket, otherwise the update fails. Warning provided by: markm The code here was broken for FreeBSD when IPv6 support was added, but was fixed for OpenBSD. OpenBSD expects the gateway and mask to be supplied and fails the update otherwise.
* Capitalize the first word in sentences, and put periods at the end ofdd2001-08-201-3/+3
| | | | sentences.
* Add some casts.brian2001-08-192-3/+3
| | | | | Not spotted by: FreeBSD's gcc version 2.95.3 20010315 (release) Spotted by: OpenBSD's gcc version 2.95.3 20010125 (prerelease)
* Add a missing % in a format string.brian2001-08-191-1/+1
| | | | | Not spotted by: FreeBSD's gcc version 2.95.3 20010315 (release) Spotted by: OpenBSD's gcc version 2.95.3 20010125 (prerelease)
* Avoid a compiler warningbrian2001-08-191-0/+2
| | | | | Not spotted by: FreeBSD's gcc version 2.95.3 20010315 (release) Spotted by: OpenBSD's gcc version 2.95.3 20010125 (prerelease)
* Fix ISA machines. Also, make it possible for the new pccardd to runimp2001-08-191-40/+61
| | | | | | | | on older kernels correctly. Terminate the loop when we find a suitable irq. Also, only try to select from the pool. Cleaned up the two cases (IRQ picked by the user and ?) into one. MFC upon re approval.
* Silence non-constant format string warnings by marking functionskris2001-08-191-1/+1
| | | | | | | as __printflike()/__printf0like(), adding const, or adding missing "%s" format strings, as appropriate. MFC after: 2 weeks
* Better handling of the return from snprintfbrian2001-08-181-3/+8
|
* Better handling for the return of snprintf().brian2001-08-182-5/+12
|
* If AF_INET6 isn't available in the kernel, revert to creating AF_INETbrian2001-08-181-15/+19
| | | | listening sockets in ``set server''.
* Back out the previous fix to deal with kernels that don't support IPv6,brian2001-08-186-69/+44
| | | | | | | | | | | | | | | and implement a far more subtle and correct fix. The reason behind the infinite loop was that ppp was trying to make up initial IPv6 numbers and wasn't giving up when it failed unexpectedly to assign the addresses it just fabricated to it's interface (thinking that the reason was because another interface was using the same address). It now attempts this up to 100 times before just failing and trying to muddle along (in reality, this should never happen more than a couple of times unless our random number generator doesn't work). Also, when IPv6 is not available, don't even try to assign the IPv6 interface address in the first place...
* Run correctly on a machine built without AF_INET6 supportbrian2001-08-186-33/+65
|
* Build properly with -DNOINET6brian2001-08-181-2/+2
|
* Build properly with -DNOIPV6brian2001-08-181-0/+2
|
* Correct path (../crypto, not ../../crypto)peter2001-08-181-5/+2
|
* Removed the (possible) ambiguity in /etc/rc.conf comment.ru2001-08-172-4/+4
| | | | PR: bin/29736
* The ports that convert screendumps into text or png called scr2*, notsobomax2001-08-171-2/+4
| | | | | | | shot2*. PR: Submitted by: Olexander Kunytsa
* Make source crunches work as well as object crunches; broken in thejoe2001-08-171-1/+1
| | | | | | last commit that fixed object crunches. Repeat after me, "no excuses for not testing".
* Add two missing includesbrian2001-08-161-0/+2
|
* Remove an unused variablebrian2001-08-161-1/+0
|
* Fix the @monthly and @weekly shortcuts so that they actually runmikeh2001-08-161-0/+3
| | | | | | | | monthly and weekly, respectively. Also fix the @yearly shortcut so that it doesn't execute daily during January. OpenBSD and NetBSD also appear to have this bug. PR: bin/21152
* mdoc(7) police: markup nit, removed whitespace at EOL.ru2001-08-161-4/+6
|
* Specify the gateway address when updating the MTU and send/recv pipebrian2001-08-166-31/+69
| | | | | | | | | | sizes on a route. IMHO this shouldn't be necessary (the destination & mask/prefixlen should be enough), but without it, the default route update under OpenBSD will fail. Thanks to: Russell T Hunt <alaric@MIT.EDU>
* Fix a couple of forgotten commentsbrian2001-08-161-3/+3
|
* o Improve terminology consistency for security profile functionality:rwatson2001-08-152-2/+2
| | | | | | | | | the name for the moderate security profile is "moderate", not "medium", so update this one reference to it as "medium". This is a 4.4-RELEASE MFC candidate. MFC after: 2 days
* Sysinstall inserts a comment between changes to /etc/rc.conf.joe2001-08-152-2/+8
| | | | | | | | Add a timestamp to the comment so that it's possible to see when changes were made. e.g.: # -- sysinstall generated deltas -- # Wed Aug 15 18:10:20 2001
* Make crunchgen crunch pre-built object files again, i.e.:joe2001-08-151-10/+10
| | | | | | | | | | progs prog1 special prog1 objdir ../../prog1/obj special prog1 objs prog1.o This fixes a bug that I introduced around the time of 4.2-release. Reported by: Larry Baird <lab@gta.com>
* Remove duplicate umask(2) call.sobomax2001-08-151-1/+0
| | | | | | PR: dusty/7998 Submitted by: Stefan Eggers <seggers@semyam.dinoco.de> MFC after: 2 weeks
* Probe for the availability of AF_INET6 at startup. If it's notbrian2001-08-155-10/+47
| | | | | available, default ipv6cp to disabled and refuse to let the user enable it.
* Don't show a prefixlen when a destination address is presentbrian2001-08-151-1/+2
| | | | in ``show iface''.
* Add a missing newlinebrian2001-08-151-1/+1
|
* Don't forget to attache the sticky route change to the ncp structure.brian2001-08-151-0/+1
| | | | PR: 29726
* Avoid calling bits2mask4() when bits is -1.brian2001-08-151-6/+5
|
* mdoc(7) police: utilize the new .Ex macro.ru2001-08-1513-37/+19
|
* List the correct paths to the X server distributions.eric2001-08-142-58/+70
| | | | | PR: 26924 Submitted by: olgeni
* Ask the kernel about IRQ 0 first. If the kernel responds with an IRQ,imp2001-08-142-20/+22
| | | | | | use it. If not, then loop asking for each one, with normal -I processing. This will effectively disable -I for when the pcic is in PCI function interrupt routing mode.
* o Add ipv6 support, abstracting most NCP addresses into opaquebrian2001-08-1450-1922/+4416
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | structures (well, they're treated as opaque). It's now possible to manage IPv6 interface addresses and routing table entries and to filter IPV6 traffic whether encapsulated or not. IPV6CP support is crude for now, and hasn't been tested against any other implementations. RADIUS and IPv6 are independent of eachother for now. ppp.linkup/ppp.linkdown aren't currently used by IPV6CP o Understand all protocols(5) in filter rules rather than only a select few. o Allow a mask specification for the ``delete'' command. It's now possible to specifically delete one of two conflicting routes. o When creating and deleting proxy arp entries, do it for all IPv4 interface addresses rather than doing it just for the ``current'' peer address. o When iface-alias isn't in effect, don't blow away manually (via ``iface add'') added interface addresses. o When listening on a tcp server (diagnostic) socket, bind so that a tcp46 socket is created -- allowing both IPv4 and IPv6 connections. o When displaying ICMP traffic, don't display the icmp type twice. When display traffic, display at least some information about unrecognised traffic. o Bump version Inspired after filtering work by: Makoto MATSUSHITA <matusita@jp.FreeBSD.org>
OpenPOWER on IntegriCloud