]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoBy design I left a tiny race in updating the I/O statistics based on
phk [Mon, 25 Jul 2005 21:12:54 +0000 (21:12 +0000)]
By design I left a tiny race in updating the I/O statistics based on
the assumption that performance was more important that beancounter
quality statistics.

As it transpires the microoptimization is not measurable in the
real world and the inconsistent statistics confuse users, so revert
the decision.

MT6 candidate: possibly
MT5 candidate: possibly

19 years agoMove initialization above point of first possible reference to
mdodd [Mon, 25 Jul 2005 17:57:15 +0000 (17:57 +0000)]
Move initialization above point of first possible reference to
avoid overwriting ty_status values set from the 'type' field.

Previously TTY_DIALUP and TTY_NETWORK flags did not match
specified type.

19 years agoCorrect minor output bug. When the battery being queried is charging or
njl [Mon, 25 Jul 2005 17:44:10 +0000 (17:44 +0000)]
Correct minor output bug.  When the battery being queried is charging or
the overall discharge rate is 0, mark the battery remaining time as
"unknown", not 0.

Reported by: Eric Kjeldergaard
MFC after: 4 days

19 years agooops, make it compilable. i need sleep. X-(
ume [Mon, 25 Jul 2005 17:28:39 +0000 (17:28 +0000)]
oops, make it compilable.  i need sleep. X-(

19 years agoremove a pointless comment with a more helpful one...
jmg [Mon, 25 Jul 2005 17:18:25 +0000 (17:18 +0000)]
remove a pointless comment with a more helpful one...

Submitted by: Tobias Roth
MFC after: 5 days

19 years agoUpdate (correct autotools usage, copy generated headers, --disable-threads)
des [Mon, 25 Jul 2005 17:14:00 +0000 (17:14 +0000)]
Update (correct autotools usage, copy generated headers, --disable-threads)

19 years agorestore locks which disappeared wrongly by my previous commit.
ume [Mon, 25 Jul 2005 17:05:37 +0000 (17:05 +0000)]
restore locks which disappeared wrongly by my previous commit.

19 years agopowerd(8) requires root permissions to run so notify the user if they
njl [Mon, 25 Jul 2005 16:43:12 +0000 (16:43 +0000)]
powerd(8) requires root permissions to run so notify the user if they
try to start it without this.

Submitted by: Philip S. Schulz
MFC after: 2 days

19 years agoreflect scope change.
ume [Mon, 25 Jul 2005 16:26:47 +0000 (16:26 +0000)]
reflect scope change.

Obtained from: KAME

19 years agoMove DNS configuration before sendmail configuration, because
arved [Mon, 25 Jul 2005 16:04:30 +0000 (16:04 +0000)]
Move DNS configuration before sendmail configuration,  because
newaliases(1) may hang without proper DNS configuration.

Approved by: brueffer

19 years agoDisable thread support in BIND. It appears to reduce performance rather
des [Mon, 25 Jul 2005 14:44:11 +0000 (14:44 +0000)]
Disable thread support in BIND.  It appears to reduce performance rather
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

19 years agoinclude netinet6/scope6_var.h.
ume [Mon, 25 Jul 2005 12:36:43 +0000 (12:36 +0000)]
include netinet6/scope6_var.h.

19 years agoscope cleanup. with this change
ume [Mon, 25 Jul 2005 12:31:43 +0000 (12:31 +0000)]
scope cleanup.  with this change
- 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

19 years agoConnect GZERO to the build.
pjd [Mon, 25 Jul 2005 10:49:05 +0000 (10:49 +0000)]
Connect GZERO to the build.

MFC after: 3 days

19 years agoCast to uintptr_t when the compiler complains. This unbreaks ULE
delphij [Mon, 25 Jul 2005 10:21:49 +0000 (10:21 +0000)]
Cast to uintptr_t when the compiler complains.  This unbreaks ULE
scheduler breakage accompanied by the recent atomic_ptr() change.

19 years agoAdd a very simple and small GEOM class - ZERO.
pjd [Mon, 25 Jul 2005 10:03:16 +0000 (10:03 +0000)]
Add a very simple and small GEOM class - ZERO.
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

19 years agoIf a retrieved UMA zone is a secondary zone, don't report keg free items,
rwatson [Mon, 25 Jul 2005 09:52:59 +0000 (09:52 +0000)]
If a retrieved UMA zone is a secondary zone, don't report keg free items,
as they actually belong to the  primary zone, and maye otherwise be
reported more than once.

MFC after: 1 day

19 years agoAdd some more NO_FOO options. I'm not sure if they're correctly sorted in the
philip [Mon, 25 Jul 2005 09:15:12 +0000 (09:15 +0000)]
Add some more NO_FOO options.  I'm not sure if they're correctly sorted in the
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.

19 years agoAdd fstab entries for ALTROOTSLICE and CFGSLICE, allowing us to do away with
philip [Mon, 25 Jul 2005 08:40:13 +0000 (08:40 +0000)]
Add fstab entries for ALTROOTSLICE and CFGSLICE, allowing us to do away with
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).

19 years agotreat REASSOC events just like ASSOC
sam [Mon, 25 Jul 2005 04:32:40 +0000 (04:32 +0000)]
treat REASSOC events just like ASSOC

MFC after: 3 days

19 years agoWe check that all the member interfaces have the same MTU on attach to the
thompsa [Mon, 25 Jul 2005 02:22:37 +0000 (02:22 +0000)]
We check that all the member interfaces have the same MTU on attach to the
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

19 years agoRename UMA_MAX_NAME to UTH_MAX_NAME, since it's a maximum in the
rwatson [Mon, 25 Jul 2005 00:47:32 +0000 (00:47 +0000)]
Rename UMA_MAX_NAME to UTH_MAX_NAME, since it's a maximum in the
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

19 years agoRemove NOP spl*() calls and add locking (making gem(4) MPSAFE).
marius [Sun, 24 Jul 2005 18:45:15 +0000 (18:45 +0000)]
Remove NOP spl*() calls and add locking (making gem(4) MPSAFE).

Based on: hme(4)
Reviewed by: yongari
Tested on: powerpc(grehan), sparc64

19 years ago- Wrap the handler and associated code for collecting completed RX
marius [Sun, 24 Jul 2005 18:12:31 +0000 (18:12 +0000)]
- Wrap the handler and associated code for collecting completed RX
  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

19 years agoAdd back ed(4) in amd64 GENERIC. It now works nicely and since those
mux [Sun, 24 Jul 2005 17:55:57 +0000 (17:55 +0000)]
Add back ed(4) in amd64 GENERIC.  It now works nicely and since those
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

19 years agoIntroduce new sysctl variable: net.bpf.stats. This sysctl variable can
csjp [Sun, 24 Jul 2005 17:21:17 +0000 (17:21 +0000)]
Introduce new sysctl variable: net.bpf.stats. This sysctl variable can
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

19 years agoSpeed up __wcsconv() (and hence the printf() %ls format):
tjr [Sun, 24 Jul 2005 12:12:44 +0000 (12:12 +0000)]
Speed up __wcsconv() (and hence the printf() %ls format):
- use wcsrtombs() instead of a wcrtomb() loop where possible.
- avoid wcrtomb() loop when output precision is small.

19 years agoo fix setup of sc_diversity; the hal does not give us reliable
sam [Sun, 24 Jul 2005 05:11:39 +0000 (05:11 +0000)]
o fix setup of sc_diversity; the hal does not give us reliable
  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

19 years agoSince libmemstat(3) now supports its own error management mechanism,
rwatson [Sun, 24 Jul 2005 01:42:42 +0000 (01:42 +0000)]
Since libmemstat(3) now supports its own error management mechanism,
use that instead of trying to use errno, in order to produce a
sensible error message.

MFC after: 1 day

19 years agoHaving decided not to provide a libmemstat(3) error number to text
rwatson [Sun, 24 Jul 2005 01:41:47 +0000 (01:41 +0000)]
Having decided not to provide a libmemstat(3) error number to text
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

19 years agoDocument additional aspects of libmemstat(3):
rwatson [Sun, 24 Jul 2005 01:29:30 +0000 (01:29 +0000)]
Document additional aspects of libmemstat(3):

- Short description of each memory type access method.

- Descriptions of libmemstat(3) errors and memstat_mtl_geterror(3).

MFC after: 1 day

19 years agoIntroduce more formal error handling for libmemstat(3):
rwatson [Sun, 24 Jul 2005 01:28:54 +0000 (01:28 +0000)]
Introduce more formal error handling for libmemstat(3):

- 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

19 years agoAdd an entry for /usr/sbin/vttest
dougb [Sat, 23 Jul 2005 23:55:27 +0000 (23:55 +0000)]
Add an entry for /usr/sbin/vttest

Submitted by: Pawel Worach <pawel.worach@gmail.com>

19 years agoBetter translation.
pjd [Sat, 23 Jul 2005 21:30:35 +0000 (21:30 +0000)]
Better translation.

19 years agoPrefix two non-static libmemstat(3) internal functions with '_' symbols, to
rwatson [Sat, 23 Jul 2005 21:17:15 +0000 (21:17 +0000)]
Prefix two non-static libmemstat(3) internal functions with '_' symbols, to
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.

19 years agoAdd an entry for the old fortunes2 files, and an entry
dougb [Sat, 23 Jul 2005 19:42:39 +0000 (19:42 +0000)]
Add an entry for the old fortunes2 files, and an entry
for the /usr/share/doc/bind directory from pre-BIND 9 days.

19 years agoRewrite the acpi_battery interface to allow for other battery types
njl [Sat, 23 Jul 2005 19:36:00 +0000 (19:36 +0000)]
Rewrite the acpi_battery interface to allow for other battery types
(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

19 years agoFix missing '=' in structure initialization.
obrien [Sat, 23 Jul 2005 19:28:51 +0000 (19:28 +0000)]
Fix missing '=' in structure initialization.

19 years ago(More thoroughly) fix the problem with the EGREP lines that was reported
dougb [Sat, 23 Jul 2005 18:47:18 +0000 (18:47 +0000)]
(More thoroughly) fix the problem with the EGREP lines that was reported
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.

19 years agoMy change, namely srandomdev() addition, was backed out even without
ache [Sat, 23 Jul 2005 18:24:47 +0000 (18:24 +0000)]
My change, namely srandomdev() addition, was backed out even without
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().

19 years agoTemporary restore a part of rev 1.6.
imura [Sat, 23 Jul 2005 16:52:57 +0000 (16:52 +0000)]
Temporary restore a part of rev 1.6.
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.

19 years agoOops, bump __FreeBSD_version to mark shared library version bump.
kensmith [Sat, 23 Jul 2005 16:42:54 +0000 (16:42 +0000)]
Oops, bump __FreeBSD_version to mark shared library version bump.

Reminded by: nork

19 years agos/Lefler/Leffler/
markus [Sat, 23 Jul 2005 15:09:27 +0000 (15:09 +0000)]
s/Lefler/Leffler/

Approved by: brueffer
MFC after: 3 days

19 years agoAdd delete-old and delete-old-libs targets:
netchild [Sat, 23 Jul 2005 14:23:30 +0000 (14:23 +0000)]
Add delete-old and delete-old-libs targets:
  - 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)

19 years agoSync usage message with the code and manual page.
jkoshy [Sat, 23 Jul 2005 13:49:04 +0000 (13:49 +0000)]
Sync usage message with the code and manual page.

Submitted by: maxim

19 years agoChange jail IP from 1.0.0.127 to 127.0.0.1, which shows, that this test
pjd [Sat, 23 Jul 2005 05:40:17 +0000 (05:40 +0000)]
Change jail IP from 1.0.0.127 to 127.0.0.1, which shows, that this test
doesn't examine the real issue as it pass without problems.

19 years agoo move ath_sysctlattach down so variables it depends on are setup
sam [Sat, 23 Jul 2005 05:34:29 +0000 (05:34 +0000)]
o move ath_sysctlattach down so variables it depends on are setup
o use any fixed tx antenna for beacons transmitted in adhoc mode

Submitted by: David Young
MFC after: 3 days

19 years agoUse a random number to seed the random number generator. Goodby, Rush
grog [Sat, 23 Jul 2005 01:46:50 +0000 (01:46 +0000)]
Use a random number to seed the random number generator.  Goodby, Rush
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.

19 years agoMisc spelling and/or English fixes in comments.
keramida [Sat, 23 Jul 2005 00:59:13 +0000 (00:59 +0000)]
Misc spelling and/or English fixes in comments.

Reviewed by: glebius, andre

19 years agothe AREF flag is only meaningful in ap mode; adhoc neighbors now
sam [Sat, 23 Jul 2005 00:16:46 +0000 (00:16 +0000)]
the AREF flag is only meaningful in ap mode; adhoc neighbors now
are timed out of the sta/neighbor table

19 years agoupdate for recent additions
sam [Fri, 22 Jul 2005 23:37:03 +0000 (23:37 +0000)]
update for recent additions

19 years agoupdate with new msg classes
sam [Fri, 22 Jul 2005 23:33:33 +0000 (23:33 +0000)]
update with new msg classes

19 years agoo move inactivity-related debug msgs under IEEE80211_MSG_INACT
sam [Fri, 22 Jul 2005 23:25:46 +0000 (23:25 +0000)]
o move inactivity-related debug msgs under IEEE80211_MSG_INACT
o probe inactive neighbors in adhoc mode (they don't have an
  association id so previously were being timed out)

MFC after: 3 days

19 years agoMake code match comment: make the smallest unit of page allocation
grehan [Fri, 22 Jul 2005 23:22:29 +0000 (23:22 +0000)]
Make code match comment: make the smallest unit of page allocation
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

19 years agoStandardize __FBSDID identifiers.
njl [Fri, 22 Jul 2005 23:10:02 +0000 (23:10 +0000)]
Standardize __FBSDID identifiers.

MFC after: 2 days

19 years agofix innetgr() returning false positives and negatives when reverse netgroup
jon [Fri, 22 Jul 2005 22:20:26 +0000 (22:20 +0000)]
fix innetgr() returning false positives and negatives when reverse netgroup
matching is used.

PR: 35506
MFC after: 3 days

19 years agosplit xmit of probe request frame out into a separate routine that
sam [Fri, 22 Jul 2005 21:11:26 +0000 (21:11 +0000)]
split xmit of probe request frame out into a separate routine that
takes explicit parameters; this will be needed when scanning is
decoupled from the state machine to do bg scanning

MFC after: 3 days

19 years agosplit 802.11 frame xmit setup code into ieee80211_send_setup
sam [Fri, 22 Jul 2005 20:48:11 +0000 (20:48 +0000)]
split 802.11 frame xmit setup code into ieee80211_send_setup

MFC after: 3 days

19 years agoAdd a simple multicast socket regression test set:
rwatson [Fri, 22 Jul 2005 19:36:29 +0000 (19:36 +0000)]
Add a simple multicast socket regression test set:

- Test that the basic socket options have the right defaults, that we can
  change them, read them back, etc.

- Add and remove some multicast addresses.

- Send a loopback multicast address and make sure it arrives intact.

There's more that could be done here, but it's a start.

MFC after: 3 days

19 years agoUse the current BST/BIF ioctls, not the deprecated ones.
njl [Fri, 22 Jul 2005 19:19:00 +0000 (19:19 +0000)]
Use the current BST/BIF ioctls, not the deprecated ones.

MFC after: 2 days

19 years agomention getaddrinfo(3) ABI breakage on 64 bit arch.
ume [Fri, 22 Jul 2005 18:51:36 +0000 (18:51 +0000)]
mention getaddrinfo(3) ABI breakage on 64 bit arch.

19 years agoRemove padding for ABI compatibility of ai_addrlen member
ume [Fri, 22 Jul 2005 18:21:28 +0000 (18:21 +0000)]
Remove padding for ABI compatibility of ai_addrlen member
from struct addrinfo.  This change break ABI compatibility
on 64 bit arch.

19 years agosimplify ic_newassoc callback
sam [Fri, 22 Jul 2005 17:57:16 +0000 (17:57 +0000)]
simplify ic_newassoc callback

MFC after: 3 days

19 years agosimplify ieee80211_ibss_merge api
sam [Fri, 22 Jul 2005 17:54:40 +0000 (17:54 +0000)]
simplify ieee80211_ibss_merge api

MFC after: 3 days

19 years agoadd stats we know we'll need soon and some spare fields for future expansion
sam [Fri, 22 Jul 2005 17:50:13 +0000 (17:50 +0000)]
add stats we know we'll need soon and some spare fields for future expansion

MFC after: 3 days

19 years agosimplify tim callback api
sam [Fri, 22 Jul 2005 17:45:48 +0000 (17:45 +0000)]
simplify tim callback api

MFC after: 3 days

19 years agodon't include 802.3 header in min frame length calculation as it may
sam [Fri, 22 Jul 2005 17:42:08 +0000 (17:42 +0000)]
don't include 802.3 header in min frame length calculation as it may
not be present for a frag; fixes problem with small (fragmented) frames
being dropped

Obtained from: Atheros
MFC after: 3 days

19 years agosimplify ieee80211_node_authorize and ieee80211_node_unauthorize api's
sam [Fri, 22 Jul 2005 17:36:12 +0000 (17:36 +0000)]
simplify ieee80211_node_authorize and ieee80211_node_unauthorize api's

MFC after: 3 days

19 years agosimplifiy ieee80211_send_nulldata api
sam [Fri, 22 Jul 2005 17:31:18 +0000 (17:31 +0000)]
simplifiy ieee80211_send_nulldata api

MFC after: 3 days

19 years agosimplify rate set api's by removing ic parameter (implicit in node reference)
sam [Fri, 22 Jul 2005 17:29:03 +0000 (17:29 +0000)]
simplify rate set api's by removing ic parameter (implicit in node reference)

MFC after: 3 days

19 years agoreject association requests with a wpa/rsn ie when wpa/rsn is not
sam [Fri, 22 Jul 2005 17:21:36 +0000 (17:21 +0000)]
reject association requests with a wpa/rsn ie when wpa/rsn is not
configured on the ap; previously we either ignored the ie or (possibly)
failed an assertion

Obtained from: Atheros
MFC after: 3 days

19 years agoBump the shared library version number of all libraries that have not
kensmith [Fri, 22 Jul 2005 17:19:05 +0000 (17:19 +0000)]
Bump the shared library version number of all libraries that have not
been bumped since RELENG_5.

Reviewed by: ru
Approved by: re (not needed for commit check but in principle...)

19 years agomissed one in last commit; add device name to discard msgs
sam [Fri, 22 Jul 2005 17:16:37 +0000 (17:16 +0000)]
missed one in last commit; add device name to discard msgs

19 years agoinclude device name in discard msgs
sam [Fri, 22 Jul 2005 17:13:44 +0000 (17:13 +0000)]
include device name in discard msgs

19 years agoadd diag msgs for frames discarded because the direction field is wrong
sam [Fri, 22 Jul 2005 17:12:05 +0000 (17:12 +0000)]
add diag msgs for frames discarded because the direction field is wrong

19 years agosplit data frame delivery out to a new function ieee80211_deliver_data
sam [Fri, 22 Jul 2005 17:08:38 +0000 (17:08 +0000)]
split data frame delivery out to a new function ieee80211_deliver_data

19 years agoo add IEEE80211_IOC_FRAGTHRESHOLD for getting+setting the
sam [Fri, 22 Jul 2005 17:00:48 +0000 (17:00 +0000)]
o add IEEE80211_IOC_FRAGTHRESHOLD for getting+setting the
  tx fragmentation threshold
o fix bounds checking on IEEE80211_IOC_RTSTHRESHOLD

MFC after: 3 days

19 years agoo add IEEE80211_FRAG_DEFAULT
sam [Fri, 22 Jul 2005 16:55:27 +0000 (16:55 +0000)]
o add IEEE80211_FRAG_DEFAULT
o move default settings for RTS and frag thresholds to ieee80211_var.h

19 years agodiff reduction against p4: define IEEE80211_FIXED_RATE_NONE and use
sam [Fri, 22 Jul 2005 16:50:18 +0000 (16:50 +0000)]
diff reduction against p4: define IEEE80211_FIXED_RATE_NONE and use
it instead of -1

19 years agoadd flags missed in last merge
sam [Fri, 22 Jul 2005 16:37:56 +0000 (16:37 +0000)]
add flags missed in last merge

19 years agoDiff reduction against p4:
sam [Fri, 22 Jul 2005 16:36:12 +0000 (16:36 +0000)]
Diff reduction against p4:
o add ic_flags_ext for eventual extention of ic_flags
o define/reserve flag+capabilities bits for superg,
  bg scan, and roaming support
o refactor debug msg macros

MFC after: 3 days

19 years agoFallout from the previous revision: lnc isn't quite ready for amd64 yet.
ru [Fri, 22 Jul 2005 16:02:40 +0000 (16:02 +0000)]
Fallout from the previous revision: lnc isn't quite ready for amd64 yet.

19 years agoFix build (including both asm.h and asmacros.h is evil).
ru [Fri, 22 Jul 2005 15:01:07 +0000 (15:01 +0000)]
Fix build (including both asm.h and asmacros.h is evil).

19 years agoDon't drop frames if interface is in promiscuous mode.
ru [Fri, 22 Jul 2005 11:27:07 +0000 (11:27 +0000)]
Don't drop frames if interface is in promiscuous mode.

PR: kern/83833
Submitted by: Eygene A. Ryabinkin
MFC after: 3 days

19 years agoUse "FreeBSD/i386" over "FreeBSD/ia32" to avoid any confusion.
ceri [Fri, 22 Jul 2005 10:45:50 +0000 (10:45 +0000)]
Use "FreeBSD/i386" over "FreeBSD/ia32" to avoid any confusion.

19 years agoRequire that DESTDIR be set before running "make distribution".
ru [Fri, 22 Jul 2005 10:35:35 +0000 (10:35 +0000)]
Require that DESTDIR be set before running "make distribution".

19 years agoCorrect some spelling and grammatical errors.
ceri [Fri, 22 Jul 2005 10:35:34 +0000 (10:35 +0000)]
Correct some spelling and grammatical errors.

19 years agoFix ndisgen(8) for amd64
jkim [Fri, 22 Jul 2005 05:49:41 +0000 (05:49 +0000)]
Fix ndisgen(8) for amd64

- file(1) does not recognize UTF-16 encoded .INF file:

netbc564.inf: MPEG ADTS, layer I, v1,  96 kBits, 32 kHz, Stereo

Use egrep(1) to match two strings, i. e., `Signature' and `Class=Net'.

- Fix linking failure.  Generate a temporary Makefile to emluate
official kernel module build process.

- Some minor typo/style fixes.

Reviewed by: obrien

19 years agosend a response when an auth request is denied due to an acl;
sam [Fri, 22 Jul 2005 05:17:52 +0000 (05:17 +0000)]
send a response when an auth request is denied due to an acl;
might be better to silently ignore the frame but this way we
give stations a chance of figuring out what's wrong

19 years agoremove excess whitespace
sam [Fri, 22 Jul 2005 05:15:53 +0000 (05:15 +0000)]
remove excess whitespace

19 years agouse IF_HANDOFF when bridging frames internally so if_start gets
sam [Fri, 22 Jul 2005 04:55:40 +0000 (04:55 +0000)]
use IF_HANDOFF when bridging frames internally so if_start gets
called; fixes communication between associated sta's

MFC after: 3 days

19 years agoFix $FreeBSD$.
obrien [Fri, 22 Jul 2005 04:03:25 +0000 (04:03 +0000)]
Fix $FreeBSD$.

19 years agoThis depends on syslogd due to logger(1).
obrien [Fri, 22 Jul 2005 00:57:37 +0000 (00:57 +0000)]
This depends on syslogd due to logger(1).

19 years agoEmbellish the dependency lists - this script depends having awk(1),
obrien [Fri, 22 Jul 2005 00:57:04 +0000 (00:57 +0000)]
Embellish the dependency lists - this script depends having awk(1),
and it needs syslogd due to using logger(1).
Have it run as early as possible to save battery power for laptop users.

19 years agoMinor comment re-alignment.
obrien [Fri, 22 Jul 2005 00:38:55 +0000 (00:38 +0000)]
Minor comment re-alignment.

19 years agoFix two small grammar mistakes.
rodrigc [Fri, 22 Jul 2005 00:28:22 +0000 (00:28 +0000)]
Fix two small grammar mistakes.

Approved by: das (mentor)

19 years ago- Fix spelling of 'multiplexer'
markus [Thu, 21 Jul 2005 22:50:31 +0000 (22:50 +0000)]
- Fix spelling of 'multiplexer'
- Grammar fixes

Approved by: simon
MFC after: 3 days

19 years ago- Reword a sentence
markus [Thu, 21 Jul 2005 22:47:34 +0000 (22:47 +0000)]
- Reword a sentence
- Grammar fixes
- s/CAVEAT/CAVEATS/

Approved by: simon
MFC after: 3 days

19 years agoRemove the NFS client rslock. The rslock was used to serialize
ps [Thu, 21 Jul 2005 22:46:56 +0000 (22:46 +0000)]
Remove the NFS client rslock. The rslock was used to serialize
writers that want to extend the file. It was also used to serialize
readers that might want to read the last block of the file (with a
writer extending the file).  Now that we support vnode locking for
NFS, the rslock is unnecessary. Writers grab the exclusive vnode
lock before writing and readers grab the shared (or in some cases
the exclusive) lock.

Submitted by: Mohan Srinivasan

19 years agoLike on i386, bypass lock prefix for atomic ops on !SMP kernels.
peter [Thu, 21 Jul 2005 22:35:02 +0000 (22:35 +0000)]
Like on i386, bypass lock prefix for atomic ops on !SMP kernels.