summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* reflect scope change.ume2005-07-251-29/+152
| | | | Obtained from: KAME
* Move DNS configuration before sendmail configuration, becausearved2005-07-251-4/+4
| | | | | | newaliases(1) may hang without proper DNS configuration. Approved by: brueffer
* Disable thread support in BIND. It appears to reduce performance ratherdes2005-07-2517-59/+50
| | | | | | | | than increase it, and seems to be the cause of the memory leaks which some users have reported. Requested by: dougb MFC after: 5 days
* include netinet6/scope6_var.h.ume2005-07-251-0/+1
|
* scope cleanup. with this changeume2005-07-2534-1239/+1419
| | | | | | | | | | | | | | | | | | | - most of the kernel code will not care about the actual encoding of scope zone IDs and won't touch "s6_addr16[1]" directly. - similarly, most of the kernel code will not care about link-local scoped addresses as a special case. - scope boundary check will be stricter. For example, the current *BSD code allows a packet with src=::1 and dst=(some global IPv6 address) to be sent outside of the node, if the application do: s = socket(AF_INET6); bind(s, "::1"); sendto(s, some_global_IPv6_addr); This is clearly wrong, since ::1 is only meaningful within a single node, but the current implementation of the *BSD kernel cannot reject this attempt. Submitted by: JINMEI Tatuya <jinmei__at__isl.rdc.toshiba.co.jp> Obtained from: KAME
* Connect GZERO to the build.pjd2005-07-254-1/+5
| | | | MFC after: 3 days
* Cast to uintptr_t when the compiler complains. This unbreaks ULEdelphij2005-07-251-2/+4
| | | | scheduler breakage accompanied by the recent atomic_ptr() change.
* Add a very simple and small GEOM class - ZERO.pjd2005-07-252-0/+121
| | | | | | | | | | | It creates very huge provider (41PB) /dev/gzero. On BIO_READ request it zero-fills bio_data and on BIO_WRITE it does nothing. You can also set kern.geom.zero.clear sysctl to 0 to do nothing even for BIO_READ. I'm using it for performance testing where it is very helpful. MFC after: 3 days
* If a retrieved UMA zone is a secondary zone, don't report keg free items,rwatson2005-07-251-1/+10
| | | | | | | as they actually belong to the primary zone, and maye otherwise be reported more than once. MFC after: 1 day
* Add some more NO_FOO options. I'm not sure if they're correctly sorted in thephilip2005-07-251-0/+13
| | | | | | | size-scheme. Also add commented NO_BIND_FOO options for people who want named but not all of the bloat it likes to include by default. While here, make a comment about BOOT_COMCONSOLE_SPEED.
* Add fstab entries for ALTROOTSLICE and CFGSLICE, allowing us to do away withphilip2005-07-254-6/+37
| | | | | | | | | | | most of the hardcoding of device names in installed convenience scripts. Provide a new script (root/updatep) to easily update the ALTROOTSLICE. It does the same as updatep1/updatep2 without hardcoded device names. If noone protests, I'd like to get rid of updatep1/updatep2 at some point. As an extra bonus: turn on the error led while updating (on hardware with a led).
* treat REASSOC events just like ASSOCsam2005-07-251-0/+1
| | | | MFC after: 3 days
* We check that all the member interfaces have the same MTU on attach to thethompsa2005-07-251-0/+8
| | | | | | | | | | bridge but the interface can still be changed afterwards. This falls under the 'dont do that' category but log an warning when INVARIANTS is defined. Approved by: mlaier (mentor) MFC after: 3 days
* Rename UMA_MAX_NAME to UTH_MAX_NAME, since it's a maximum in therwatson2005-07-252-5/+14
| | | | | | | | | | | monitoring API, which might or might not be the same as the internal maximum (currently none). Export flag information on UMA zones -- in particular, whether or not this is a secondary zone, and so the keg free count should be considered in that light. MFC after: 1 day
* Remove NOP spl*() calls and add locking (making gem(4) MPSAFE).marius2005-07-243-35/+118
| | | | | | Based on: hme(4) Reviewed by: yongari Tested on: powerpc(grehan), sparc64
* - Wrap the handler and associated code for collecting completed RXmarius2005-07-241-31/+23
| | | | | | | | | | | | | | | | descriptors that are still marked owned in #ifdef GEM_RINT_TIMEOUT instead of #if 0 for convenience. - Remove stale code and comment about relying on the preset XIF config. - In case of a watchdog timeout call the init function instead of just the start function so the chip is properly reset. Merge from hme(4): - Convert to use bus_dmamap_load_mbuf_sg() for loading RX buffers. - Protect from a duplicate mbuf free panic in case the DMA engine hangs. Reviewed by: yongari Tested on: powerpc(grehan), sparc64 MFC after: 1 week
* Add back ed(4) in amd64 GENERIC. It now works nicely and since thosemux2005-07-241-2/+1
| | | | | | | | | chips are commonly found, it makes sense to have it in GENERIC. This is a candidate for a RELENG_6 MFC. Approved by; peter Requested by: pav Tested by: pav
* Introduce new sysctl variable: net.bpf.stats. This sysctl variable cancsjp2005-07-242-14/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | be used to pass statistics regarding dropped, matched and received packet counts from the kernel to user-space. While we are here introduce a new counter for filtered or matched packets. We currently keep track of packets received or dropped by the bpf device, but not how many packets actually matched the bpf filter. -Introduce net.bpf.stats sysctl OID -Move sysctl variables after the function prototypes so we can reference bpf_stats_sysctl(9) without build errors. -Introduce bpf descriptor counter which is used mainly for sizing of the xbpf_d array. -Introduce a xbpf_d structure which will act as an external representation of the bpf_d structure. -Add a the following members to the bpfd structure: bd_fcount - Number of packets which matched bpf filter bd_pid - PID which opened the bpf device bd_pcomm - Process name which opened the device. It should be noted that it's possible that the process which opened the device could be long gone at the time of stats collection. An example might be a process that opens the bpf device forks then exits leaving the child process with the bpf fd. Reviewed by: mdodd
* Speed up __wcsconv() (and hence the printf() %ls format):tjr2005-07-241-34/+30
| | | | | - use wcsrtombs() instead of a wcrtomb() loop where possible. - avoid wcrtomb() loop when output precision is small.
* o fix setup of sc_diversity; the hal does not give us reliablesam2005-07-242-12/+15
| | | | | | | | | | status after attach, only after a reset o when setting diversity via the sysctl don't update sc_diversity until we know the hal requested worked o while here eliminate sc_hasdiversity and sc_hastpc; just query the hal each time since these are the only places we need to know MFC after: 3 days
* Since libmemstat(3) now supports its own error management mechanism,rwatson2005-07-241-1/+2
| | | | | | | use that instead of trying to use errno, in order to produce a sensible error message. MFC after: 1 day
* Having decided not to provide a libmemstat(3) error number to textrwatson2005-07-244-3/+38
| | | | | | | | | | | | | conversion routine, now change my mind and add one, memstat_strerror(3), which returns a const char * pointer to a string describing the error, to be used on the results of memstat_mtl_geterror(). While here, also correct a minor typo in the HISTORY man page. Pointers on improving ease of internationalization would be appreciated. MFC after: 1 day
* Document additional aspects of libmemstat(3):rwatson2005-07-242-0/+171
| | | | | | | | - Short description of each memory type access method. - Descriptions of libmemstat(3) errors and memstat_mtl_geterror(3). MFC after: 1 day
* Introduce more formal error handling for libmemstat(3):rwatson2005-07-245-66/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Define a set of libmemstat(3) error constants, which are used by all libmemstat(3) methods except for memstat_mtl_alloc(), which allocates a memory type list and may return ENOMEM via errno. - Define a per-memory_type_list current error value, which is set when a call associated with a memory list fails. This requires wrapping a structure around the queue(9) list head data structure, but this change is not visible to libmemstat(3) consumers due to using access methods. - Add a new accessor method, memstat_mtl_geterror() to retrieve the error number. - Consistently set the error number in a number of failure modes where previously some combination of setting errno and printf'ing error descriptions was used. libmemstat(3) will now no longer print to stdio under any circumstances. Returns of NULL/-1 for errors remain the same. This avoids use of stdio, misuse of error numbers, and should make it easier to program a libmemstat(3) consumer able to print useful error messages. Currently, no error-to-string function is provided, as I'm unsure how to address internationalization concerns. MFC after: 1 day
* Add an entry for /usr/sbin/vttestdougb2005-07-231-0/+2
| | | | Submitted by: Pawel Worach <pawel.worach@gmail.com>
* Better translation.pjd2005-07-231-1/+1
|
* Prefix two non-static libmemstat(3) internal functions with '_' symbols, torwatson2005-07-234-19/+12
| | | | | | | try and discourage use outside the library. Remove duplicate declaration of memstat_mtl_free() from memstat_internal.h, as it's not internal, and the memstat.h definition suffices.
* Add an entry for the old fortunes2 files, and an entrydougb2005-07-231-0/+4
| | | | for the /usr/share/doc/bind directory from pre-BIND 9 days.
* Rewrite the acpi_battery interface to allow for other battery typesnjl2005-07-236-532/+461
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (i.e., smart battery) and fix various bugs found during the cleanup. API changes: * kernel access: Access to individual batteries is now via devclass_find("battery"). Introduce new methods ACPI_BATT_GET_STATUS (for _BST-formatted data) and ACPI_BATT_GET_INFO (for _BIF-formatted data). The helper function acpi_battery_get_battinfo() now takes a device_t instead of a unit # argument. If dev is NULL, this signifies all batteries. * ioctl access: The ACPIIO_BATT_GET_TYPE and ACPIIO_BATT_GET_BATTDESC ioctls have been removed. Since there is now no need for a mapping between "virtual" unit and physical unit, usermode programs can just specify the unit directly and skip the old translation steps. In fact, acpiconf(8) was actually already doing this and virtual unit was the same as physical unit in all cases since there was previously only one battery type (acpi_cmbat). Additionally, we now map the ACPIIO_BATT_GET_BIF and ACPIIO_BATT_GET_BST ioctls for all batteries, if they provide the associated methods. * apm compatibility device/ioctls: no change * sysctl: no change Since most third-party applications use the apm(4) compat interface, there should be very few affected applications (if any). Reviewed by: bruno MFC after: 5 days
* Fix missing '=' in structure initialization.obrien2005-07-231-1/+1
|
* (More thoroughly) fix the problem with the EGREP lines that was reporteddougb2005-07-232-26/+45
| | | | | | | on -current by Ben Kaduk <minimarmot@gmail.com>. Add a hack of my own to allow the user to supply the paths to the INF and SYS files on the command line.
* My change, namely srandomdev() addition, was backed out even withoutache2005-07-231-3/+1
| | | | | | | | | | | | | | | | | discussing with me, and I obviously disagree seeing that afterwards (srandomdev() back out not fix any thing, it can only mask the problem). So, back out the back out and return srandomdev(). People who have problems with repeated quotes should use -D fortune option for debugging to see is the problem in (1) /dev/random initialization or in (2) fortune code itself. I will be glad to help, but I can't reproduce repeated quote situation on my machine. In either case found, (1) or (2) should be fixed instead of removing srandomdev().
* Temporary restore a part of rev 1.6.imura2005-07-231-4/+2
| | | | | | | | | We must not increase a capability of buffer size here, because codes which call these functions expect that dst and src are the same size. This will cause problem when someone convert a character whose length is different between charsets on smbfs which was changed to use xlat16 converter.
* Oops, bump __FreeBSD_version to mark shared library version bump.kensmith2005-07-231-1/+1
| | | | Reminded by: nork
* s/Lefler/Leffler/markus2005-07-231-1/+1
| | | | | Approved by: brueffer MFC after: 3 days
* Add delete-old and delete-old-libs targets:netchild2005-07-235-13/+454
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - removes obsolete files/dirs or libraries. - works in interactive (default) and batch mode - respects DISTDIR - documented in UPDATING and build(7) The head of the file ObsoleteFiles.inc contains instructions how to add obsolete files/dirs/libs to the list. Obviously one should add obsolete files to this list, when he removes a file/dir/lib from the basesystem. Additionally add check-old target: - allows re@ to check if a file on the obsolete list resurfaces Design goals: - allows full control by the user (default interactive mode) - possibility of scripted removal of obsolete files (batch mode) - opt-in removal of files (explicit list of files) - seperate removal of libs (2 delete targets) Important design decissions: - structured list of files to remove instead of a plain text file: * allows to remove additional files if a NO_foo knob is specified without the need to change the targets (no NO_foo knob is respected yet) - not using mtree like NetBSD does: * mtree doesn't has an interactive mode Discussed on: arch (long ago), current (this year) Additional input from: re (hrs) Approved by: mentor (joerg)
* Sync usage message with the code and manual page.jkoshy2005-07-231-0/+1
| | | | Submitted by: maxim
* Change jail IP from 1.0.0.127 to 127.0.0.1, which shows, that this testpjd2005-07-231-1/+1
| | | | doesn't examine the real issue as it pass without problems.
* o move ath_sysctlattach down so variables it depends on are setupsam2005-07-231-6/+6
| | | | | | | o use any fixed tx antenna for beacons transmitted in adhoc mode Submitted by: David Young MFC after: 3 days
* Use a random number to seed the random number generator. Goodby, Rushgrog2005-07-231-1/+3
| | | | | | | | | Limbaugh. This should have already worked properly if random(4) has been initialized correctly, but it seems that this is frequently not the case. Instead, use the microsecond part of the current time as the seed.
* Misc spelling and/or English fixes in comments.keramida2005-07-231-12/+12
| | | | Reviewed by: glebius, andre
* the AREF flag is only meaningful in ap mode; adhoc neighbors nowsam2005-07-231-1/+2
| | | | are timed out of the sta/neighbor table
* update for recent additionssam2005-07-221-0/+7
|
* update with new msg classessam2005-07-221-0/+8
|
* o move inactivity-related debug msgs under IEEE80211_MSG_INACTsam2005-07-221-8/+12
| | | | | | | o probe inactive neighbors in adhoc mode (they don't have an association id so previously were being timed out) MFC after: 3 days
* Make code match comment: make the smallest unit of page allocationgrehan2005-07-221-3/+5
| | | | | | | | | | | from OpenFirmware be 16 pages to avoid fragmentation in the list of mappings returned when the kernel requests it in pmap_bootstrap. This allows a static buffer to be used when obtaining the existing mappings - very useful on the G5 when random physical pages can't be grabbed because they can't be BAT-mapped. MFC after: 3 days
* Standardize __FBSDID identifiers.njl2005-07-2211-22/+33
| | | | MFC after: 2 days
* fix innetgr() returning false positives and negatives when reverse netgroupjon2005-07-221-54/+63
| | | | | | | matching is used. PR: 35506 MFC after: 3 days
* split xmit of probe request frame out into a separate routine thatsam2005-07-224-50/+96
| | | | | | | takes explicit parameters; this will be needed when scanning is decoupled from the state machine to do bg scanning MFC after: 3 days
* split 802.11 frame xmit setup code into ieee80211_send_setupsam2005-07-221-36/+72
| | | | MFC after: 3 days
OpenPOWER on IntegriCloud