dragonfly.git
17 years agoFix typo.
Sascha Wildner [Sun, 4 Mar 2007 12:18:05 +0000 (12:18 +0000)]
Fix typo.

17 years ago- Add additional parameter to ieee80211_mgmt_output(). Use this new
Sepherosa Ziehau [Sun, 4 Mar 2007 07:52:36 +0000 (07:52 +0000)]
- Add additional parameter to ieee80211_mgmt_output().  Use this new
  parameter instead of protocol specific mbuf flag M_LINK0 to inform
  ieee80211_mgmt_output() that the mgmt frame needs encryption.
- Revoke protocol specific mbuf flag M_LINK0

These changes save one protocol specific mbuf flag, which will be used
by TXCB mechanism for mgmt frames in the future.

17 years ago1) Fix prototype in vget(9).
Sascha Wildner [Sun, 4 Mar 2007 02:45:08 +0000 (02:45 +0000)]
1) Fix prototype in vget(9).

2) Add vhold/vdrop manual page.

3) Some mdoc cleanup.

[2] and some of [3] taken from: FreeBSD

17 years agoBring back in some previously commented out references to ifmedia(4).
Sascha Wildner [Sun, 4 Mar 2007 02:32:59 +0000 (02:32 +0000)]
Bring back in some previously commented out references to ifmedia(4).

17 years agoFix typo.
Sascha Wildner [Sat, 3 Mar 2007 23:19:25 +0000 (23:19 +0000)]
Fix typo.

17 years agoUse .Er for errno value and fix typo.
Sascha Wildner [Sat, 3 Mar 2007 23:16:54 +0000 (23:16 +0000)]
Use .Er for errno value and fix typo.

17 years agoFix prototype.
Sascha Wildner [Thu, 1 Mar 2007 16:18:11 +0000 (16:18 +0000)]
Fix prototype.

17 years agoNo . needed here.
Sascha Wildner [Thu, 1 Mar 2007 12:57:15 +0000 (12:57 +0000)]
No . needed here.

17 years agoSort by section.
Sascha Wildner [Thu, 1 Mar 2007 12:37:19 +0000 (12:37 +0000)]
Sort by section.

17 years agoRegen.
Simon Schubert [Thu, 1 Mar 2007 01:48:51 +0000 (01:48 +0000)]
Regen.

17 years ago1:1 Userland threading stage 4.7/4:
Simon Schubert [Thu, 1 Mar 2007 01:46:53 +0000 (01:46 +0000)]
1:1 Userland threading stage 4.7/4:

Add a new system call lwp_create() which spawns a new lwp with a
given thread function address and given stack pointer.  Rework
and add some associated functions to realize this goal.

In-collaboration-with: Thomas E. Spanjaard <tgen@netphreax.net>

17 years agoAdd sc_newstate_arg to ural_softc, so ieee80211_new_state() 'arg' can be
Sepherosa Ziehau [Wed, 28 Feb 2007 13:04:26 +0000 (13:04 +0000)]
Add sc_newstate_arg to ural_softc, so ieee80211_new_state() 'arg' can be
passed to ieee80211_newstate().  This makes 802_11 internal state machine
run correctly for certain state changes, e.g. RUN->AUTH

17 years agoRemove trailing space.
Sascha Wildner [Tue, 27 Feb 2007 17:33:32 +0000 (17:33 +0000)]
Remove trailing space.

17 years agoValidate msg_controllen, as per RFC2292.
Sascha Wildner [Tue, 27 Feb 2007 12:05:26 +0000 (12:05 +0000)]
Validate msg_controllen, as per RFC2292.

Submitted-by: Hasso Tepper <hasso@estpak.ee>
17 years ago1:1 Userland threading stage 4.6/4:
Simon Schubert [Mon, 26 Feb 2007 21:41:08 +0000 (21:41 +0000)]
1:1 Userland threading stage 4.6/4:

Factor out a new function `lwp_fork()' from fork1().  Rearrange various
fork helpers to operate exclusively on procs or lwps.  Collect some MI
code from MD sources into lwp_fork().

Reviewed-by: Thomas E. Spanjaard <tgen@netphreax.net>
17 years agoSync zoneinfo database with tzdata2007c from elsie.
Sascha Wildner [Mon, 26 Feb 2007 14:54:00 +0000 (14:54 +0000)]
Sync zoneinfo database with tzdata2007c from elsie.

europe:         8.7  -> 8.8
northamerica:   8.11 -> 8.12
southamerica:   8.8  -> 8.9
zone.tab:       8.8  -> 8.9

From Paul Eggert's comments:

* Turkey switches at 01:00 standard time, not at 01:00 UTC.  (Thanks to
  Amar Devegowda and Steffen Thorsen for this.)

* Pulaski County, Indiana, is switching from CST/CDT to EST/EDT next
  month (which means a 2-hour change on March 11).  This requires a
  new Zone, America/Indiana/Winamac.  (Thanks to Gwillim Law for the
  heads-up.)

* A slight correction to Easter Island Mean Time (1890-1932).

* Update comments for Canada.  (Thanks to Chris Walton.)

17 years agoAdd forgotten file.
Simon Schubert [Mon, 26 Feb 2007 13:14:04 +0000 (13:14 +0000)]
Add forgotten file.

17 years agoDiscard deauth/disassoc that are not for us. Reception of these frames
Sepherosa Ziehau [Mon, 26 Feb 2007 12:28:23 +0000 (12:28 +0000)]
Discard deauth/disassoc that are not for us.  Reception of these frames
can only happen when promisc mode is enabled.

Obtained-from: FreeBSD-p4/sam_wifi (sam@freebsd.org)

17 years agoFix suspend behavior by really stopping the process and setting its signal.
Simon Schubert [Mon, 26 Feb 2007 03:55:22 +0000 (03:55 +0000)]
Fix suspend behavior by really stopping the process and setting its signal.

17 years agoGet rid of struct user/UAREA.
Simon Schubert [Sun, 25 Feb 2007 23:17:13 +0000 (23:17 +0000)]
Get rid of struct user/UAREA.

Merge procsig with sigacts and replace usage of procsig with
sigacts, like it used to be in 4.4BSD.

Put signal-related inline functions in sys/signal2.h.

Reviewed-by: Thomas E. Spanjaard <tgen@netphreax.net>
17 years agoDrop a.out coredump support from gcore.
Simon Schubert [Sun, 25 Feb 2007 23:07:08 +0000 (23:07 +0000)]
Drop a.out coredump support from gcore.

17 years agoAdd missing .El
Sascha Wildner [Sun, 25 Feb 2007 19:12:28 +0000 (19:12 +0000)]
Add missing .El

17 years agoFix comments.
Sascha Wildner [Sun, 25 Feb 2007 19:09:15 +0000 (19:09 +0000)]
Fix comments.

17 years ago.ar -> .Ar
Sascha Wildner [Sun, 25 Feb 2007 19:08:40 +0000 (19:08 +0000)]
.ar -> .Ar

17 years agoRemove empty line (silence manlint).
Sascha Wildner [Sun, 25 Feb 2007 18:50:48 +0000 (18:50 +0000)]
Remove empty line (silence manlint).

17 years agoAdd missing .Nm
Sascha Wildner [Sun, 25 Feb 2007 18:35:05 +0000 (18:35 +0000)]
Add missing .Nm

17 years agoRegen
Simon Schubert [Sun, 25 Feb 2007 14:08:08 +0000 (14:08 +0000)]
Regen

17 years ago1:1 Userland threading stage 4.5/4:
Simon Schubert [Sun, 25 Feb 2007 14:07:13 +0000 (14:07 +0000)]
1:1 Userland threading stage 4.5/4:

Add a new syscall, extexit(), which follows approximately the semantics
discussed about two years ago.  This function will be used by userland
threading libraries to exit just a single lwp of a process.

17 years agoAdd an ifmedia(4) reference to the manpages of all drivers that support
Sascha Wildner [Sun, 25 Feb 2007 12:03:07 +0000 (12:03 +0000)]
Add an ifmedia(4) reference to the manpages of all drivers that support
the ifmedia interface.

17 years agoFix references.
Sascha Wildner [Sun, 25 Feb 2007 01:09:09 +0000 (01:09 +0000)]
Fix references.

17 years ago1:1 Userland threading stage 4.4/4:
Simon Schubert [Sat, 24 Feb 2007 14:25:07 +0000 (14:25 +0000)]
1:1 Userland threading stage 4.4/4:

Implement killlwps() and flesh out lwp_exit().  Lwps which have set the
LWP_WEXIT flag will terminate themselves by calling lwp_exit() from
userret().

Reap lwps in a per-CPU taskqueue.  NOTE: Even the last lwp of an exiting
proc will be reaped by the task queue, effectively leaving a BARE proc
to reap in wait4().

In-collaboration-with: Thomas E. Spanjaard <tgen@netphreax.net>

17 years ago1:1 Userland threading stage 4.3/4:
Simon Schubert [Sat, 24 Feb 2007 14:24:06 +0000 (14:24 +0000)]
1:1 Userland threading stage 4.3/4:

Add service functions for the handling of exiting/dead lwps.
Rework the exiting code to use these functions.  This moves MI code
back to MI land.

17 years agoRemove superfluous conditional.
Simon Schubert [Sat, 24 Feb 2007 14:23:18 +0000 (14:23 +0000)]
Remove superfluous conditional.

sig is always == 0 at this place, and even if a signal arrived in between,
we after all were woken up by the timeout and the signal didn't break
our sleep.

17 years agoFix wording.
Sascha Wildner [Sat, 24 Feb 2007 13:00:32 +0000 (13:00 +0000)]
Fix wording.

17 years agoFix config declaration.
Sascha Wildner [Sat, 24 Feb 2007 09:07:09 +0000 (09:07 +0000)]
Fix config declaration.

17 years ago* Sync the list of devices in the polling(4) manpage and the polling
Sascha Wildner [Sat, 24 Feb 2007 08:27:38 +0000 (08:27 +0000)]
* Sync the list of devices in the polling(4) manpage and the polling
  section in LINT with the current state of affairs.

* Add references to polling(4) to the manpages of the drivers that
  support it.

Reported-by: Rick De Bella (on IRC)
17 years agoFix taskqueues to truely work on SMP systems.
Simon Schubert [Sat, 24 Feb 2007 04:36:21 +0000 (04:36 +0000)]
Fix taskqueues to truely work on SMP systems.

The taskqueue_task_td threads were created with kthread_create(), which
defaults to creating the thread on the current CPU.  Achieve correct
operation by using lwkt_create(), which allows specification of the
CPU the thread should run on.

Add a comment about the suggested usage of task structures.

17 years agoUnbreak wrong offset calculations by using the correct functions.
Simon Schubert [Sat, 24 Feb 2007 04:36:10 +0000 (04:36 +0000)]
Unbreak wrong offset calculations by using the correct functions.

17 years agoDon't print error messages on AE_TYPE from AcpiGetCurrentResources().
YONETANI Tomokazu [Fri, 23 Feb 2007 01:18:00 +0000 (01:18 +0000)]
Don't print error messages on AE_TYPE from AcpiGetCurrentResources().
Resource Manager has been changed to return AE_TYPE for any non-device
objects earlier in validation instead of going through functions and
return AE_NOT_FOUND.  Since acpi_parse_resources() is only interested
in device objects, don't complain on AE_TYPE either.

Noticed-by: many people
17 years agoAdd a 'NATA' kernel config file to go with the previous commit by Simon
Thomas E. Spanjaard [Thu, 22 Feb 2007 22:13:17 +0000 (22:13 +0000)]
Add a 'NATA' kernel config file to go with the previous commit by Simon
'corecode' Schubert.

17 years agoEnable building/installing of multiple kernels in nrelease.
Simon Schubert [Thu, 22 Feb 2007 21:02:49 +0000 (21:02 +0000)]
Enable building/installing of multiple kernels in nrelease.

Directly make use of this feature and build a NATA kernel.

17 years ago1:1 Userland threading stage 4.2/4:
Simon Schubert [Thu, 22 Feb 2007 15:50:50 +0000 (15:50 +0000)]
1:1 Userland threading stage 4.2/4:

Make signal system fully lwp-aware by splitting ksignal() in appropriate
functions.  Introduce lwpsignal(), which now contains the logic of
ksignal(), but can be used to deliver a signal to a specific lwp.

Convert consumers of ksignal() to use lwpsignal() when they actually
generate a thread-specific signal.

Fully implement proc_stop() and proc_unstop().

Reviewed-by: Thomas E. Spanjaard <tgen@netphreax.net>
17 years agoMake setrunnable() behave more like it is intended.
Simon Schubert [Thu, 22 Feb 2007 15:49:08 +0000 (15:49 +0000)]
Make setrunnable() behave more like it is intended.

Last changes made setrunnable() change lwp_stat, which is definitely
wrong.  Rework the code to match the original intent.

Reviewed-by: Thomas E. Spanjaard <tgen@netphreax.net>
17 years agoFix stopping of the current process, which was broken by the last commit.
Simon Schubert [Thu, 22 Feb 2007 15:48:55 +0000 (15:48 +0000)]
Fix stopping of the current process, which was broken by the last commit.

If the current process is still far inside the kernel and is going to
tsleep(), CURSIG()/issignal() in tsleep() have to see the pending signal;
holding the process in SSTOP is not enough.

However, if this is happening to a process which already received a stopping
signal and thus already is in SSTOP, but which wakes up for some reason, and
then posts a SA_STOP signal to itself, we may not ignore this, in spite of
already being in SSTOP.

All this process stopping business inside CURSIG()/issignal() makes all of
this very fragile, but we will have to live with it for now.

The bug can be reproduced by doing
% cat
^Z
% ps lx|grep '[c]at'

The correct output would be something like:
 4156 stop    p2  DL     0:00.00 cat

The broken behavior shows with:
17417 ttybg2  p2  TL     0:00.00 cat

Reviewed-by: Thomas E. Spanjaard <tgen@netphreax.net>
17 years agoFix symbol resolution for objects loaded by ELF dependencies.
Simon Schubert [Thu, 22 Feb 2007 13:15:55 +0000 (13:15 +0000)]
Fix symbol resolution for objects loaded by ELF dependencies.

We previously used the dagmembers of the specified object to resolve
a symbol.  However, dagmembers is only set for objects loaded by dlsym().
The correct behavior, implemented in this patch is to instead search
the needed objects.

This should fix KDE/SSL.

Taken-from: FreeBSD
Identified-by: Kimura Fuyuki <fuyuki@hadaly.org>
17 years ago- Add noise floor to stats
Sepherosa Ziehau [Thu, 22 Feb 2007 05:17:10 +0000 (05:17 +0000)]
- Add noise floor to stats
- Include current tx rate in stats
- Remove stub radar support
- Update ath_hal(4) to 0.9.20.3:
  o  Add support for newer parts that do not require separate keycache
     entries for tx+rx mic keys
  o  No more ds_vdata in tx/rx descriptors
  o  Split h/w tx/rx descriptor from s/w status
  o  As part of the descriptor split change the rate control module API
     so the ath_buf is passed in to the module so it can fetch both
     descriptor and status information as needed
- Replace replace h/w descriptor struct's with proper mask+shift defs for
  ath(4) sample TX rate control algorithm.
- Due to the license change in ah_osdep.[ch] (now dual-BSD/GPL), move them
  out of sys/contrib/dev/ath/dragonfly and put them into sys/dev/ath/ath
- Nuke the local patch for ah_osdep.c, ah_osdep.c can be modified directly.

Obtained-from: FreeBSD (sam@freebsd.org)

17 years agoDon't loop beyond maximum cpu ID (ncpus - 1); this probably hasn't done
YONETANI Tomokazu [Thu, 22 Feb 2007 04:02:50 +0000 (04:02 +0000)]
Don't loop beyond maximum cpu ID (ncpus - 1); this probably hasn't done
any harm because the corresponding bit in smp_active_mask is zero anyway.

17 years ago1:1 Userland threading stage 4.1/4:
Simon Schubert [Wed, 21 Feb 2007 15:47:02 +0000 (15:47 +0000)]
1:1 Userland threading stage 4.1/4:

Make ksignal() aware of multiple lwps.  Streamline logic.
Introduce find_lwp_for_signal(), which returns the best
lwp to deliver a signal to.

17 years ago1:1 Userland threading stage 2.20/4:
Simon Schubert [Wed, 21 Feb 2007 15:46:48 +0000 (15:46 +0000)]
1:1 Userland threading stage 2.20/4:

Unify access to pending threads with a new function, lwp_sigpend(), which
returns pending signals for the lwp, which includes both lwp-specific
signals and signals pending on the process.  The new function lwp_delsig()
is used to remove a certain signal from the pending set of both process and
lwp.

Rework the places which access the pending signal list to either use those
two functions or, where not possibly, to work on both lwp and proc signal
lists.

17 years ago1:1 Userland threading stage 2.19/4:
Simon Schubert [Wed, 21 Feb 2007 15:45:37 +0000 (15:45 +0000)]
1:1 Userland threading stage 2.19/4:

Move p_sig and p_code to struct lwp and add comment for them.
Make elf coredumps and checkpointing more lwp-aware.
Pass the signal responsible for the coredump down to the service routine.

17 years agoReplace magic number with constant.
Simon Schubert [Wed, 21 Feb 2007 02:19:39 +0000 (02:19 +0000)]
Replace magic number with constant.

Spotted-by: Jason Smethers
17 years agoAdd NATA devices to LINT, and hook the natacontrol binary into the build,
Thomas E. Spanjaard [Tue, 20 Feb 2007 15:58:27 +0000 (15:58 +0000)]
Add NATA devices to LINT, and hook the natacontrol binary into the build,
as it does no harm even when not using NATA.

Prodded-by: Justin C. Sherrill <justin@shiningsilence.com>
Sascha Wildner <saw@online.de>

17 years agoFix typo.
Sascha Wildner [Tue, 20 Feb 2007 15:52:43 +0000 (15:52 +0000)]
Fix typo.

17 years agoDon't assume mgtq will always be empty, drain mgtq explicitly.
Sepherosa Ziehau [Tue, 20 Feb 2007 14:24:21 +0000 (14:24 +0000)]
Don't assume mgtq will always be empty, drain mgtq explicitly.

Tested-by: Johannes Hofmann <Johannes.Hofmann@gmx.de> (iwi(4))
17 years agoFix typos.
Sascha Wildner [Mon, 19 Feb 2007 11:10:12 +0000 (11:10 +0000)]
Fix typos.

17 years agoDo some syncing with reality.
Sascha Wildner [Mon, 19 Feb 2007 09:34:33 +0000 (09:34 +0000)]
Do some syncing with reality.

17 years agoSilence compiler warning.
Simon Schubert [Mon, 19 Feb 2007 01:14:54 +0000 (01:14 +0000)]
Silence compiler warning.

17 years agoRemove outdated comment.
Simon Schubert [Mon, 19 Feb 2007 01:14:40 +0000 (01:14 +0000)]
Remove outdated comment.

17 years ago1:1 Userland threading stage 2.18/4:
Simon Schubert [Mon, 19 Feb 2007 01:14:24 +0000 (01:14 +0000)]
1:1 Userland threading stage 2.18/4:

Push lwp use a bit further by making some places lwp aware.
This commit deals with ddb, procfs/ptrace and various consumers of
allproc_scan.

17 years agoRemove unused malloc type M_ACL.
Sascha Wildner [Mon, 19 Feb 2007 00:51:54 +0000 (00:51 +0000)]
Remove unused malloc type M_ACL.

17 years agoBuild gcc41 per default. This can be disabled with NO_GCC41 in make.conf.
Simon Schubert [Sun, 18 Feb 2007 23:46:11 +0000 (23:46 +0000)]
Build gcc41 per default. This can be disabled with NO_GCC41 in make.conf.

This does not make gcc41 the default compiler.  To do so, you still have to
set CCVER=gcc41 in make.conf or in your environment.

17 years ago1:1 Userland threading stage 2.17/4:
Simon Schubert [Sun, 18 Feb 2007 16:17:09 +0000 (16:17 +0000)]
1:1 Userland threading stage 2.17/4:

Consolidate consumers of p_lock to use PHOLD/PRELE.  Introduce lwp_lock,
which will be used like p_lock as a "don't destruct" marker.

17 years ago1:1 Userland threading stage 2.16/4:
Simon Schubert [Sun, 18 Feb 2007 16:16:11 +0000 (16:16 +0000)]
1:1 Userland threading stage 2.16/4:

Move P_ONRUNQ to lwp_flag.

17 years ago1:1 Userland threading stage 2.15/4:
Simon Schubert [Sun, 18 Feb 2007 16:15:24 +0000 (16:15 +0000)]
1:1 Userland threading stage 2.15/4:

Drop P_ZOMBIE and make SZOMB a real state again.

17 years ago1:1 Userland threading stage 2.14/4:
Simon Schubert [Sun, 18 Feb 2007 16:13:27 +0000 (16:13 +0000)]
1:1 Userland threading stage 2.14/4:

Extend select to be usable for multiple LWPs in one proc.

17 years ago1:1 Userland threading stage 2.13/4:
Simon Schubert [Sun, 18 Feb 2007 16:12:43 +0000 (16:12 +0000)]
1:1 Userland threading stage 2.13/4:

Move P_SINTR and P_BREAKTSLEEP into lwp_flag.

Introduce proc_stop and proc_unstop to handle the transition of a complete proc
to and from stopped state.  This is influenced by NetBSD.

17 years agoRe-order #includes to silence warning and use inline version of ``ffs''.
Simon Schubert [Sun, 18 Feb 2007 14:28:18 +0000 (14:28 +0000)]
Re-order #includes to silence warning and use inline version of ``ffs''.

17 years ago* Add .Nm and MLINKS for BIOS_* macros.
Sascha Wildner [Sun, 18 Feb 2007 14:17:29 +0000 (14:17 +0000)]
* Add .Nm and MLINKS for BIOS_* macros.

* Enhance markup a bit.

17 years agoFix typo.
Sascha Wildner [Sun, 18 Feb 2007 09:09:43 +0000 (09:09 +0000)]
Fix typo.

17 years agoRemove unused variable.
Sascha Wildner [Sun, 18 Feb 2007 07:12:19 +0000 (07:12 +0000)]
Remove unused variable.

17 years agoUncomment NULLFS which was fixed by Matt some while ago.
Sascha Wildner [Sat, 17 Feb 2007 09:53:22 +0000 (09:53 +0000)]
Uncomment NULLFS which was fixed by Matt some while ago.

Submitted-by: Thomas Nikolajsen <thomas.nikolajsen@mail.dk>
17 years ago- Nuke no longer needed macros.
Sepherosa Ziehau [Sat, 17 Feb 2007 07:05:54 +0000 (07:05 +0000)]
- Nuke no longer needed macros.
- Use ieee80211_tim_ie, instead of local TIM ie definition.
- It turns out TIM template can contain more ies than I expected --
  It is safe to put Exteneded Rate, WPA, RSN and WME ies into TIM template,
  thus duplicated TIM ie in infrastructure BSS's beacon frames can be
  eliminated:
  o  Move TIM template setup from template initalization routine to beacon
     template setup routine.
  o  Use ies' location information provided by ieee80211_beacon_offset to put
     all fixed fields and ies before TIM ie into beacon template.  Ies starting
     from TIM ie are put into TIM template.

17 years agoUpdate to gcc-4.1.2.
Simon Schubert [Sat, 17 Feb 2007 02:24:20 +0000 (02:24 +0000)]
Update to gcc-4.1.2.

17 years agoUpdate our README.
Simon Schubert [Sat, 17 Feb 2007 02:23:58 +0000 (02:23 +0000)]
Update our README.

17 years agoMerge from vendor branch GCC:
Simon Schubert [Sat, 17 Feb 2007 02:23:28 +0000 (02:23 +0000)]
Merge from vendor branch GCC:
Import gcc-4.1.2.

17 years agoImport gcc-4.1.2.
Simon Schubert [Sat, 17 Feb 2007 02:23:28 +0000 (02:23 +0000)]
Import gcc-4.1.2.

17 years agoAdd a missing header that prevents detecting the kernel is compiled with INET6 support
Victor Balada Diaz [Fri, 16 Feb 2007 23:41:02 +0000 (23:41 +0000)]
Add a missing header that prevents detecting the kernel is compiled with INET6 support

Noticed-by: corecode@
17 years ago1:1 Userland threading stage 2.12/4:
Simon Schubert [Fri, 16 Feb 2007 23:11:40 +0000 (23:11 +0000)]
1:1 Userland threading stage 2.12/4:

Factor out lwp_stat and move P_STOPPED into p_stat.

Reviewed-by: Thomas E. Spanjaard <tgen@netphreax.net>
17 years agoDocument and correctly name fields.
Simon Schubert [Fri, 16 Feb 2007 12:45:12 +0000 (12:45 +0000)]
Document and correctly name fields.

Sig now is the pending signals for a process, tsig the pending signals
for a lwp.

Remove non-existing fields from the documentation.

Prodded-by: swildner@
17 years ago- Clean up device header file inclusion.
Sepherosa Ziehau [Fri, 16 Feb 2007 11:46:47 +0000 (11:46 +0000)]
- Clean up device header file inclusion.
- Move device sysctl creation before ieee80211_ifattach(), so if
  the creation fails, there is no need to call ieee80211_ifdetach()
  before calling acx_detach().
- Add radio tap support.  acx100 part does not work correctly if
  privacy is used, mainly due to firmware decrytion.  Also acx100
  part does not seem to be able to differentiate long preamble frames
  from short preamble ones.

17 years agoAdd ieee80211_plcp2rate() to convert PLCP signal/rate to net80211 rate.
Sepherosa Ziehau [Fri, 16 Feb 2007 11:17:01 +0000 (11:17 +0000)]
Add ieee80211_plcp2rate() to convert PLCP signal/rate to net80211 rate.
This function returns 0 if unrecognized PLCP signal/rate is passed.

17 years agoFix path.
Sascha Wildner [Fri, 16 Feb 2007 10:11:46 +0000 (10:11 +0000)]
Fix path.

Noticed-by: Andreas Hauser
17 years ago- Factor out acx_set_chan(), nuke ACX_ENABLE_{TX,RX}CHAN() macros.
Sepherosa Ziehau [Fri, 16 Feb 2007 06:34:10 +0000 (06:34 +0000)]
- Factor out acx_set_chan(), nuke ACX_ENABLE_{TX,RX}CHAN() macros.
- Rework acx_newstate() to avoid code duplication.
- Regroup function declarations.
- Nuke no longer needed code in acx_next_scan()
- Nuke declaration of acx_beacon_intvl, it has already gone.

17 years agoFix RSS display by calculating the correct value.
Simon Schubert [Fri, 16 Feb 2007 02:15:25 +0000 (02:15 +0000)]
Fix RSS display by calculating the correct value.

For some reason vmspace->vm_rssize is always zero, so we have to
"calculate" the value via vmspace_resident_count(), which actually
accesses the vmspace's pmap resident count.

Reported-by: victor@
17 years agoMerge from vendor branch BIND:
Victor Balada Diaz [Thu, 15 Feb 2007 21:18:25 +0000 (21:18 +0000)]
Merge from vendor branch BIND:
update the readme files for bind-9.3.4 import

17 years agoupdate the readme files for bind-9.3.4 import
Victor Balada Diaz [Thu, 15 Feb 2007 21:18:25 +0000 (21:18 +0000)]
update the readme files for bind-9.3.4 import

17 years agoMerge from vendor branch BIND:
Victor Balada Diaz [Thu, 15 Feb 2007 21:03:46 +0000 (21:03 +0000)]
Merge from vendor branch BIND:
Import bind-9.3.4

17 years agoImport bind-9.3.4
Victor Balada Diaz [Thu, 15 Feb 2007 21:03:46 +0000 (21:03 +0000)]
Import bind-9.3.4

17 years agoImport bind-9.3.4
Victor Balada Diaz [Thu, 15 Feb 2007 20:28:50 +0000 (20:28 +0000)]
Import bind-9.3.4

17 years agoThe KAME project has been dissolved and kame.4 isn't terribly useful.
Sascha Wildner [Thu, 15 Feb 2007 09:20:57 +0000 (09:20 +0000)]
The KAME project has been dissolved and kame.4 isn't terribly useful.

Taken-from: FreeBSD

17 years ago- Add 'chan' parameter for acx_join_bss(), since for Monitor operational mode
Sepherosa Ziehau [Thu, 15 Feb 2007 09:05:11 +0000 (09:05 +0000)]
- Add 'chan' parameter for acx_join_bss(), since for Monitor operational mode
  current channel is not pointed by ieee80211com.ic_bss.ni_chan.
- Factor out acx_rx_config() from acx_write_config().
- Add Monitor operational mode support.
- Correct promisc support.
- On TX path:
  o  Move BPF_MTAP() before ieee80211_encap(), so ether frames will be tapped.
  o  Tap 802.11 MAC frames to ieee80211com.ic_rawbpf before they are encrypted.
- On RX path:
  o  Tap ACK/CTS to ieee80211com.ic_rawbpf.
  o  For non-Monitor operational mode, update ieee80211_stats.is_rx_tooshort,
     if frames are too short.
- Nuke unused functions.

17 years agoPCIe re(4) can't handle TCP csum offloading well if short packets
Sepherosa Ziehau [Wed, 14 Feb 2007 13:00:34 +0000 (13:00 +0000)]
PCIe re(4) can't handle TCP csum offloading well if short packets
are padded by the driver, which is intended to fix PCI re(4) csum
offloading bug.  It turns out both PCI and PCIe re(4) _can_ handle
short packets TCP csum offloading without driver's interferece, so
padding for short TCP packets is avoided.

Obtained-from: FreeBSD (wpaul@freebsd.org)
Tested-by: Joe Talbott <josepht@cstone.net> RTL8101E(PCIe)
   me RTL8169S(PCI) RTL8169SB(PCI)

17 years agoReclaim challenge text, if we operate as an AP and other side switches auth mode
Sepherosa Ziehau [Tue, 13 Feb 2007 14:15:57 +0000 (14:15 +0000)]
Reclaim challenge text, if we operate as an AP and other side switches auth mode

Obtained-from: Atheros via FreeBSD (sam@freebsd.org)

17 years ago- Replace 0 with NULL when pointers are tested.
Sepherosa Ziehau [Mon, 12 Feb 2007 15:02:33 +0000 (15:02 +0000)]
- Replace 0 with NULL when pointers are tested.
- Break long line.
- Style(9) for 'if' statement.
- Correct bpf_freed() function comment.

17 years agoSync zoneinfo database with tzdata2007b from elsie.
Sascha Wildner [Mon, 12 Feb 2007 14:54:39 +0000 (14:54 +0000)]
Sync zoneinfo database with tzdata2007b from elsie.

leapseconds:    8.1 -> 8.2

Change the commentary to reflect the IERS announcement that there is to be
no positive leap second at the end of June 2007.

17 years ago- Prefer m_getl()
Sepherosa Ziehau [Mon, 12 Feb 2007 14:05:13 +0000 (14:05 +0000)]
- Prefer m_getl()
- Nuke blank line

17 years ago- Rename reset_d() to bpf_resetd() just like other function which operates
Sepherosa Ziehau [Sun, 11 Feb 2007 12:10:04 +0000 (12:10 +0000)]
- Rename reset_d() to bpf_resetd() just like other function which operates
  on bpf_d
- Use m_lengthm()
- Nuke tab on blank line

17 years agoIn bpf_ptap(), duplicate incoming mbuf's m_pkthdr.rcvif, so !bpf_d.bd_seesent
Sepherosa Ziehau [Sun, 11 Feb 2007 11:30:05 +0000 (11:30 +0000)]
In bpf_ptap(), duplicate incoming mbuf's m_pkthdr.rcvif, so !bpf_d.bd_seesent
will be handled correctly in bpf_mtap().

17 years agokmalloc(M_WAITOK) will not return NULL
Sepherosa Ziehau [Sun, 11 Feb 2007 10:23:29 +0000 (10:23 +0000)]
kmalloc(M_WAITOK) will not return NULL

17 years agoRemove ancient SimOS support.
Sascha Wildner [Sun, 11 Feb 2007 01:51:28 +0000 (01:51 +0000)]
Remove ancient SimOS support.