Commit Graph

12635 Commits

Author SHA1 Message Date
Ulrich Spörlein
d8e58d07b3 Remove unused traceroute(8) contrib code from head
It still lives on under vendor/traceroute.
2010-11-27 09:26:46 +00:00
Weongyo Jeong
6d926c73ae As a refection of r215802 it should use BPF interfaces because the
duplication code of USB pf is removed.
2010-11-24 19:15:26 +00:00
Yaroslav Tykhiy
43b98c2b52 Clarify a few details about iostat(8) behavior:
- The default repeat count for iostat(8) is 1 unless there
  was a -w on the command line.

- A -x display doesn't include TTY or CPU stats by default
  but they can be turned on with a -T or -C, respectively.

Submitted by:	arundel (initial version)
Reviewed by:	arundel
MFC after:	1 week
2010-11-24 00:05:19 +00:00
Ulrich Spörlein
54e1a99c14 Remove kernbb(8) from the source tree.
It's been broken for several years and with all the binutils/toolchain
changes in flight, it might make more sense to put efforts into dtrace and
hwpmc instead.

Discussed with:	phk
PR:		bin/83558
2010-11-22 21:39:35 +00:00
John Baldwin
7a3923c00e Similar to mfiutil, drop local definition of powerof2() and use version
from <sys/param.h> instead.
2010-11-22 14:36:04 +00:00
Rebecca Cran
e267ef95d5 Don't generate input() since it's not used. 2010-11-22 14:16:22 +00:00
Weongyo Jeong
e64ac239f6 Adds usbdump(8) tool that currently it only supports the very basic
feature set.  It's not connected to the build yet.

Reviewed by:	hps
2010-11-22 01:28:29 +00:00
Rebecca Cran
f22de230a1 dispatch_add_command:
Modify the logic so there's only one exit point instead of two.
Only insert valid (non-NULL) values into the queue.

dispatch_free_command:
Ensure that item is not NULL before removing it from the queue and
dereferencing the pointer.
NULL out free'd pointers to catch any use-after-free bugs.

PR:	bin/146855
Submitted by:	gcooper
MFC after: 3 days
2010-11-21 14:34:25 +00:00
Simon L. B. Nielsen
c86bcbb3a7 Fix a typo in a comment.
MFC after:	3 days
2010-11-21 11:50:16 +00:00
John Baldwin
3c22a809ec Handle malloc() failures more gracefully by error'ing out rather than
segfaulting.

Submitted by:	gcooper
MFC after:	1 week
2010-11-19 15:39:59 +00:00
Ivan Voras
51e5e45458 Change "wait" banner to "qlen" to be more indicative of its purpose and to
be more inline with what gstat uses.

Reviewed by:	gnn
Silence from:	phk, keramida
2010-11-17 15:12:10 +00:00
Doug Barton
eb581844e4 Remove references to MAKEDEV(8) 2010-11-15 05:25:51 +00:00
Rebecca Cran
10895c82f2 ipv6_enable has been obsoleted in favour of ipv6_activate_all_interfaces. 2010-11-14 19:57:56 +00:00
Rebecca Cran
57bd39c6d6 Fix use of CD_VERSION=any in cdrom.inf by calling strcmp instead of
variable_cmp.

PR:	bin/142960
Submitted by:	G. Paul Ziemba <p-fbsd-bugs at ziemba.us>
MFC after:	1 week
2010-11-14 13:25:01 +00:00
Rebecca Cran
ccfa5fafe2 Remove support for cpioVerbose=medium because bsdcpio doesn't support the
"-V" flag.

PR:	bin/151821
Submitted by:	Devin Teske <dteske at vicor.com>
MFC after:	1 week
2010-11-14 10:22:09 +00:00
Rebecca Cran
cf04e59a01 ntpdate(8) hosts are now configured in rc.conf via ntpdate_hosts.
PR:	bin/148350
Submitted by:	Joel FAEDI <joel.faedi at gmail.com>
MFC after:	1 week
2010-11-14 10:04:48 +00:00
Rebecca Cran
943fa42c1e "Web" should not be all upper-case because it's not an acronym.
PR:	bin/130366
Submitted by:	Royce Williams <royce at alaska.net>
MFC after:	1 week
2010-11-14 09:14:17 +00:00
Rebecca Cran
e77bd6a8f8 Connect to ftp2.tr.freebsd.org when the Turkey #2 mirror is selected.
PR:	bin/128587
Submitted by:	Mehmet Kose <mehmet.kose at gmail.com>
MFC after:	1 week
2010-11-14 09:03:42 +00:00
Rebecca Cran
5f1818757a Add ftp4.se.freebsd.org to the set of mirrors.
PR:	bin/150552
Submitted by:	Niclas Zeising <zeising at lysator.liu.se>
MFC after:	3 days
2010-11-13 21:48:32 +00:00
Rebecca Cran
804f3a63ac We still support PLIP devices, so mention them in addition to ethernet. 2010-11-13 01:21:55 +00:00
Maksim Yevmenkin
e97af4eedf Add firmware downloader for Atheros AR3011 based USB Bluetooth devices.
Hardware donated by:	Rusty Nejdl rnejdl at ringofsaturn dot com
Tested by:		Rusty Nejdl rnejdl at ringofsaturn dot com
Tested by:		Andrzej Tobola ato at iem dot pw dot edu dot pl
MFC after:		3 weeks
2010-11-12 19:43:12 +00:00
Nick Hibma
0ea0127a4d Add a man page for usb_quirk module, plus references in other man pages,
and updated comments in the usb_quirk.h header file.

The main purpose of this is to expose the quirks for ejecting 3G
modules. usb_modeswitch in Linux does a great job of collecting
information on these, and with the quirks module people can try out the
modeswitch config file entries on FreeBSD, hence the SCSI strings in the
man page.

MFC after:	2 weeks
2010-11-10 23:45:44 +00:00
Benedict Reuschling
6dcc68c87e Typo fix in a comment.
Reviewed by:	cperciva
2010-11-10 14:33:09 +00:00
Warner Losh
3015d92bc4 When we switched to the gpart backend, and provided selection between
MBR & GPT, the MBR full-disk init failed to stamp boot1, and results
in a boot not found error. This patch fixes the issue.

PR:		151990
Submitted by:	Kris Moore
2010-11-10 05:32:36 +00:00
John Baldwin
c5f2b79dc7 - Save errno values before calling warn(3) so that errors are correctly
reported.
- Check for malloc() failures.

Submitted by:	gcooper
MFC after:	1 week
2010-11-09 19:28:06 +00:00
Rebecca Cran
b1ce21c6ef Fix typos.
PR:	bin/148894
Submitted by:	olgeni
2010-11-09 10:59:09 +00:00
Olivier Houchard
01a0f8531a Sync with the latest version from NetBSD. It notably addds ISO9660 support.
Submitted by:	bapt
2010-11-07 16:05:04 +00:00
Joel Dahl
3645b45f41 Remove extraneous Aq. 2010-11-07 07:16:35 +00:00
Ulrich Spörlein
5241f8b76d Put string in quotes, like is done everywhere. 2010-11-06 15:04:48 +00:00
Benedict Reuschling
08e0d464ba Fix typo. 2010-11-04 10:47:19 +00:00
Rui Paulo
5d6ccd39d5 Adapt for wpa_supplicant / hostapd 0.7.3. 2010-11-03 10:44:25 +00:00
David E. O'Brien
a17e0dbbf8 Give the user a hint as to what config(8) is unhappy with. 2010-11-02 05:27:05 +00:00
Dimitry Andric
812b0fb7ee Actually remove the HAVE_CAST_H define this time. 2010-10-30 16:30:50 +00:00
Dimitry Andric
04eefab695 Regenerate our usr.sbin/tcpdump/tcpdump/config.h for tcpdump 4.1.1, and
remove unused HAVE_RC5_H and HAVE_CAST_H defines from CFLAGS.
2010-10-30 16:25:08 +00:00
Rui Paulo
964964e942 Add print-ipnet.c
Submitted by:	dim
2010-10-29 21:03:59 +00:00
John Baldwin
67fb1bc8ed Remove support for creating the 'machine' symlink as well as creating the
extra MACHINE_ARCH symlink for certain platforms (such as pc98).  The
support for creating these symlinks was added to sys/conf/kern.post.mk in
changeset 152964.  The intention of that commit was to remove this code
from config(8), but config(8) was never updated.

Approved by:	imp
2010-10-29 19:17:07 +00:00
Ulrich Spörlein
02ac77f222 Fix another "string" typo.
MFC after:	3 days
2010-10-28 22:28:45 +00:00
Ulrich Spörlein
ac203a768d Fix CPU load reporting independent of scheduler used.
- Sample CPU usage data from kern.cp_times, this makes for a far more
  accurate and scheduler independent algorithm.
- Rip out the process list scraping that is no longer required.
- Don't update CPU usage sampling on every request, but every 15s
  instead. This makes it impossible for an attacker to hide the CPU load
  by triggering 4 samplings in short succession when the system is idle.
- After reaching the steady-state, the system will always report the
  average CPU load of the last 60 sampled seconds.
- Untangling of call graph.

PR:		kern/130222
Tested by:	Julian Dunn <jdunn@aquezada.com>
		Gustau Pérez <gperez@entel.upc.edu>
		Jürgen Weiß <weiss@uni-mainz.de>
MFC after:	2 weeks

I'm unsure if some MIB standard states this must be the load average
for, eg. 300s, it looks like net-snmp isn't even bothering to implement
the CPU load reporting at all.
2010-10-28 20:18:26 +00:00
Rui Paulo
636720d7bc Update for the new tcpdump 4.1.1. The man page is a result of running
tcpdump's autoconf on FreeBSD.
2010-10-28 19:08:56 +00:00
Bjoern A. Zeeb
9398643636 Correct a typo.
MFC after:	3 days
2010-10-28 11:09:12 +00:00
Warner Losh
1adaedf5cd Turns out we need functions.sh in this file for convert_to_megabytes call. 2010-10-28 06:45:20 +00:00
John Baldwin
c02999d982 - Save errno values before calling warn(3) so that errors are correctly
reported.
- Use powerof2() from <sys/param.h> rather than a copy and paste version.

Submitted by:	gcooper
MFC after:	1 week
2010-10-26 19:11:09 +00:00
Hans Petter Selasky
3afd23533a Remove stray semicolon.
Submitted by:	arundel
2010-10-24 13:48:11 +00:00
Warner Losh
56f8b30888 More simplifications
Submitted by:	 Alex Kozlov
2010-10-22 00:11:55 +00:00
Warner Losh
f1bed22437 Remove unnecessary variable.
Submitted by:	 Alex Kozlov
2010-10-22 00:10:48 +00:00
Warner Losh
c2176d895d Fix two typos
Submitted by:	Benedict Reuschling
2010-10-21 23:08:42 +00:00
Warner Losh
ce2502c9f8 More support for IMAGE installations 2010-10-21 22:46:10 +00:00
Warner Losh
c9489e0d75 Minor tweaks in compression support:
o We need an eval here to get the right expansion of the command
o bs=128k doesn't work in some cases, so eliminate it and cope with the
  minor performance hit.

Submitted by:	john hixson
2010-10-21 22:33:50 +00:00
Warner Losh
e964661666 Left over from prior patch removed.
Submitted by: John Hixon
PR: 151442 (but the patch was backwards there)
2010-10-21 17:29:18 +00:00
Warner Losh
b459a68591 This patch will only list components if the directory exists. The
directory exist on PC-BSD but not FreeBSD, so an extra check is made.

Submitted by: John Hixson
PR: 151461
2010-10-21 17:23:48 +00:00