]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoFix wrong markup and some wordsmithing.
hrs [Sun, 31 Dec 2006 15:36:44 +0000 (15:36 +0000)]
Fix wrong markup and some wordsmithing.

Submitted by: ru

17 years agoregen after addition of linux_utimes and linux_rt_sigtimedwait
netchild [Sun, 31 Dec 2006 13:20:31 +0000 (13:20 +0000)]
regen after addition of linux_utimes and linux_rt_sigtimedwait

17 years agoMFp4 (111746, 108671, 108945, 112352):
netchild [Sun, 31 Dec 2006 13:16:00 +0000 (13:16 +0000)]
MFp4 (111746, 108671, 108945, 112352):
 - add linux utimes syscall [1]
 - add linux rt_sigtimedwait syscall [2]

Submitted by: "Scot Hetzel" <swhetzel@gmail.com> [1]
Submitted by: Bruce Becker <hostmaster@whois.gts.net> [2]
PR: 93199 [2]

17 years agoMFp4:
netchild [Sun, 31 Dec 2006 12:42:55 +0000 (12:42 +0000)]
MFp4:
 - semi-automatic style fixes

17 years agoMFp4 (111746+):
netchild [Sun, 31 Dec 2006 12:39:10 +0000 (12:39 +0000)]
MFp4 (111746+):
  Redo the checking for 2.6 emulation. We now cache the value of
  use26 and replace calls to linux_get_osrelease() + parsing with
  a call to linux_use26(). Typical path is lockless now.

  Pointed out by: kib

This allows to ship RELENG_7_0 with a default osrelease of 2.4.2 and the
possibility to enable 2.6.x emulation without the possible performance
impact of the previous version of the check.

Submitted by: rdivacky

17 years agoMFp4:
netchild [Sun, 31 Dec 2006 11:56:16 +0000 (11:56 +0000)]
MFp4:
 - semi-automatic style fixes
 - spelling fixes in comments
 - add some comments

17 years agoo Fix a comment: refer to the write community name by the OID not by
maxim [Sun, 31 Dec 2006 11:19:48 +0000 (11:19 +0000)]
o Fix a comment: refer to the write community name by the OID not by
the line number which is incorrect now and probably will shift in future.

17 years agoAllow for /usr/bin/env when parsing the shebang line from an
yar [Sun, 31 Dec 2006 11:07:29 +0000 (11:07 +0000)]
Allow for /usr/bin/env when parsing the shebang line from an
interpreted $command.  Some "portable" sofware packages use such a
line to skip the task of figuring out the absolute pathname of the
interpreter at install time, e.g.:

#!/usr/bin/env python

It is insecure, but a popular book on Python seems to have advised
it to a wide audience.  Hence a number of such scripts in the ports,
mostly written in Python.

PR: bin/100287
MFC after: 1 week

17 years agoUse $required_modules wherever suitable. Use load_kld() in special
yar [Sun, 31 Dec 2006 10:37:18 +0000 (10:37 +0000)]
Use $required_modules wherever suitable.  Use load_kld() in special
cases.  So we get rid of quite a few lines of duplicated code.

17 years agoFix a typo in a warning message.
yar [Sun, 31 Dec 2006 10:12:53 +0000 (10:12 +0000)]
Fix a typo in a warning message.

17 years agoUdate info after official patch
ache [Sun, 31 Dec 2006 09:50:44 +0000 (09:50 +0000)]
Udate info after official patch

17 years agoMerge conflict after official patch
ache [Sun, 31 Dec 2006 09:47:34 +0000 (09:47 +0000)]
Merge conflict after official patch

17 years agoChange RL_LIBRARY_VERSION
ache [Sun, 31 Dec 2006 09:27:16 +0000 (09:27 +0000)]
Change RL_LIBRARY_VERSION

17 years agoUpdate config
ache [Sun, 31 Dec 2006 09:26:00 +0000 (09:26 +0000)]
Update config

17 years agoMerge conflicts
ache [Sun, 31 Dec 2006 09:22:31 +0000 (09:22 +0000)]
Merge conflicts

17 years agoUpdate instructions
ache [Sun, 31 Dec 2006 09:12:19 +0000 (09:12 +0000)]
Update instructions

17 years agoThis commit was generated by cvs2svn to compensate for changes in r165670,
ache [Sun, 31 Dec 2006 09:06:30 +0000 (09:06 +0000)]
This commit was generated by cvs2svn to compensate for changes in r165670,
which included commits to RCS files with non-trunk default branches.

17 years agoVirgin import of GNU Readline 5.2
ache [Sun, 31 Dec 2006 09:06:30 +0000 (09:06 +0000)]
Virgin import of GNU Readline 5.2

17 years agoo Grammar: is appears -> appears.
maxim [Sun, 31 Dec 2006 07:22:55 +0000 (07:22 +0000)]
o Grammar: is appears -> appears.

PR: docs/107306
Submitted by: Tomas Mozes
MFC after: 1 week

17 years ago"block is set to UTC" -> "clock is set to UTC"
cperciva [Sun, 31 Dec 2006 05:18:35 +0000 (05:18 +0000)]
"block is set to UTC" -> "clock is set to UTC"

Submitted by: csjp

17 years agoInvert the logic inside of two KASSERTS which resulted in two kernel panics
csjp [Sun, 31 Dec 2006 02:50:07 +0000 (02:50 +0000)]
Invert the logic inside of two KASSERTS which resulted in two kernel panics
for circumstances which are quite normal.

Discussed with: kmacy

17 years agoEliminate global symbols starting with an underscore from rc.d
yar [Sat, 30 Dec 2006 22:53:20 +0000 (22:53 +0000)]
Eliminate global symbols starting with an underscore from rc.d
scripts, except for mdconfig* and jail.  Such symbols are reserved
for the rc.subr internals.  Most scripts can be fixed by just
declaring _foo symbols as local: few scripts actually need them to
be global.

Discussed with: dougb in freebsd-rc

17 years agoAdd the fortunes from the PR that were not already present.
dougb [Sat, 30 Dec 2006 21:54:41 +0000 (21:54 +0000)]
Add the fortunes from the PR that were not already present.
Delete some duplicates found while double checking the new ones,
and fix a typo.

These haven't been sorted yet, but will be in a future commit.

PR: ports/40273
Submitted by: Achim Patzner <ap@proxon.bnc.net>

17 years ago- Don't defer the removal of an 802.1q header for no real reason.
yar [Sat, 30 Dec 2006 21:10:25 +0000 (21:10 +0000)]
- Don't defer the removal of an 802.1q header for no real reason.
- Micro-optimize the addition of an 802.1q header to match the removal code.
- Consistently check for interfaces being up and running.
- Consistently use NULL instead of 0 with pointers.

17 years agonow that MFS_IMAGE is in the FULLKERNEL section, use FULLKERNEL instead of
jmg [Sat, 30 Dec 2006 20:27:24 +0000 (20:27 +0000)]
now that MFS_IMAGE is in the FULLKERNEL section, use FULLKERNEL instead of
KERNEL_KO, this fixes MFS_IMAGE on a debugging kernel...

Submitted by: Neelkanth Natu

17 years agoRemove alpha-specific stuff from the hardware notes (these are mostly
bmah [Sat, 30 Dec 2006 18:22:09 +0000 (18:22 +0000)]
Remove alpha-specific stuff from the hardware notes (these are mostly
in attributes for generating MD hardware, as well as a few alpha-only
paragraphs here and there).

While here, bump copyright date in dev.archlist.txt.

17 years agoWhitespace fix and remove an extra cast.
jhb [Sat, 30 Dec 2006 17:53:28 +0000 (17:53 +0000)]
Whitespace fix and remove an extra cast.

17 years agoBe consistent with the spelling of "dependent" in user-visible places.
ceri [Sat, 30 Dec 2006 11:55:47 +0000 (11:55 +0000)]
Be consistent with the spelling of "dependent" in user-visible places.

PR: kern/27429
Submitted by: T. William Wells

17 years agoMFC:
danger [Fri, 29 Dec 2006 22:45:12 +0000 (22:45 +0000)]
MFC:
- add some files to FILES section and provide their description
- reference devfs.conf and devfs.rules in SEE ALSO section

Approved by: keramida (mentor), trhodes (mentor)

17 years agoSome how the d slipped out in the last commit, add it back...
jmg [Fri, 29 Dec 2006 22:30:10 +0000 (22:30 +0000)]
Some how the d slipped out in the last commit, add it back...

Pointed out by: mdoc-police (ru)

17 years agoSummer of Code 2005: improve libalias - part 2 of 2
piso [Fri, 29 Dec 2006 21:59:17 +0000 (21:59 +0000)]
Summer of Code 2005: improve libalias - part 2 of 2

With the second (and last) part of my previous Summer of Code work, we get:

-ipfw's in kernel nat

-redirect_* and LSNAT support

General information about nat syntax and some examples are available
in the ipfw (8) man page. The redirect and LSNAT syntax are identical
to natd, so please refer to natd (8) man page.

To enable in kernel nat in rc.conf, two options were added:

o firewall_nat_enable: equivalent to natd_enable

o firewall_nat_interface: equivalent to natd_interface

Remember to set net.inet.ip.fw.one_pass to 0, if you want the packet
to continue being checked by the firewall ruleset after being
(de)aliased.

NOTA BENE: due to some problems with libalias architecture, in kernel
nat won't work with TSO enabled nic, thus you have to disable TSO via
ifconfig (ifconfig foo0 -tso).

Approved by: glebius (mentor)

17 years agoa) macro-ization of all mbuf and random number
rrs [Fri, 29 Dec 2006 20:21:42 +0000 (20:21 +0000)]
a) macro-ization of all mbuf and random number
   access plus timers. This makes the code
   more portable and able to change out the
   mbuf or timer system used more easily ;-)
b) removal of all use of pkt-hdr's until only
   the places we need them (before ip_output routines).
c) remove a bunch of code not needed due to <b> aka
   worrying about pkthdr's :-)
d) There was one last reorder problem it looks where
   if a restart occur's and we release and relock (at
   the point where we setup our alias vtag) we would
   end up possibly getting the wrong TSN in place. The
   code that fixed the TSN's just needed to be shifted
   around BEFORE the release of the lock.. also code that
   set the state (since this also could contribute).
Approved by: gnn

17 years agoSlightly resort functions in file so that no forward function prototypes
rwatson [Fri, 29 Dec 2006 20:21:21 +0000 (20:21 +0000)]
Slightly resort functions in file so that no forward function prototypes
are required.

Obtained from: TrustedBSD Project

17 years agoRe-add include of opt_mac.h in mac_framework.c, which was improperly
rwatson [Fri, 29 Dec 2006 20:16:29 +0000 (20:16 +0000)]
Re-add include of opt_mac.h in mac_framework.c, which was improperly
removed from this file.  It is required to pick up the definition of
MAC_STATIC.

17 years agoRe-connect snmp_bridge to the build. It survived a make universe
bz [Fri, 29 Dec 2006 19:24:51 +0000 (19:24 +0000)]
Re-connect snmp_bridge to the build. It survived a make universe
(apart from powerpc where the build broke earlier).

17 years agobridge_snmp.h
bz [Fri, 29 Dec 2006 19:23:38 +0000 (19:23 +0000)]
bridge_snmp.h
* Change the API of bridge_get_basemac to take a maximum buffer length.

bridge_if.c
* Adopt to new API.
* In bridge_attach_newif() remove an additional pointer to the buffer
  by shuffling the code a bit. Also makes the code more readable.

bridge_sys.c
* bridge_get_basemac():
  - Adopt to the new API.
  - Change check for error code of getifaddrs().
  - First check for sa_family != AF_LINK.
  - Copy sockaddr_dl * to get around alignment constraints on some
    platforms.
  - Use strcmp instead of strncmp so that "foo11" != "foo1".
* other functions:
  - Allocate n times of the struct we need instead of arbitrary len,
    cast to the type we want it to be and pass around struct *s instead
    of char *s. This gets us around alignment restrictions on some
    platforms and in addition it is more clear what data is passed around.
  - Name variables for same types consistently.

Reviewed by:    syrinx

17 years agoFix an off-by-one which could mean writing beyond the end of the array
bz [Fri, 29 Dec 2006 18:44:04 +0000 (18:44 +0000)]
Fix an off-by-one which could mean writing beyond the end of the array
when copying the interface name.
This code part should probably be rewritten.

17 years agoFix fat-fingering in previous commit.
jhb [Fri, 29 Dec 2006 16:38:22 +0000 (16:38 +0000)]
Fix fat-fingering in previous commit.

Pointy hat to: jhb

17 years ago- Fix markup.
ru [Fri, 29 Dec 2006 16:28:38 +0000 (16:28 +0000)]
- Fix markup.

- Somewhat improve wording.

- Change the layout of the EXAMPLES section so that descriptions
  come before example, as in most other manpages.

- Fix a bad example that edits a label using a `c' partition.

17 years agoAdd "nojail" keyword to prevent spurious error messages.
hrs [Fri, 29 Dec 2006 15:56:21 +0000 (15:56 +0000)]
Add "nojail" keyword to prevent spurious error messages.

Spotted by: Keve Nagy
PR: conf/107083

17 years agoFix oops in previous commit.
bde [Fri, 29 Dec 2006 15:48:18 +0000 (15:48 +0000)]
Fix oops in previous commit.

17 years agoFixed some style bugs (mainly assorted errors in comments, and inconsistent
bde [Fri, 29 Dec 2006 15:29:49 +0000 (15:29 +0000)]
Fixed some style bugs (mainly assorted errors in comments, and inconsistent
spelling of `result').

17 years agoSome whitespace nits and remove a few casts.
jhb [Fri, 29 Dec 2006 14:58:18 +0000 (14:58 +0000)]
Some whitespace nits and remove a few casts.

17 years agoFixed some style bugs (whitespace only).
bde [Fri, 29 Dec 2006 14:28:23 +0000 (14:28 +0000)]
Fixed some style bugs (whitespace only).

17 years agoVarious bpf(4) related fixes to catch places up to the new bpf(4)
jhb [Fri, 29 Dec 2006 13:59:50 +0000 (13:59 +0000)]
Various bpf(4) related fixes to catch places up to the new bpf(4)
semantics.
- Stop testing bpf pointers for NULL.  In some cases use
  bpf_peers_present() and then call the function directly inside the
  conditional block instead of the macro.
- For places where the entire conditional block is the macro, remove the
  test and make the macro unconditional.
- Use BPF_MTAP() in if_pfsync on FreeBSD instead of an expanded version of
  the old semantics.

Reviewed by: csjp (older version)

17 years agoWork around a long standing LOR with user/group rules by doing the socket
mlaier [Fri, 29 Dec 2006 13:59:03 +0000 (13:59 +0000)]
Work around a long standing LOR with user/group rules by doing the socket
lookup early.  This has some performance implications and should not be
enabled by default, but might help greatly in certain setups.  After some
more testing this could be turned into a sysctl.

Tested by: avatar
LOR ids: 17, 24, 32, 46, 191 (conceptual)
MFC after: 6 weeks

17 years agoTry harder to garbage-collect the "LOCORE" (really asm) version of
bde [Fri, 29 Dec 2006 13:36:26 +0000 (13:36 +0000)]
Try harder to garbage-collect the "LOCORE" (really asm) version of
MPLOCKED.  The cleaning in rev.1.25 was supposed to have been undone
by rev.1.26, but 1.26 could never have actually affected asm files
since atomic.h is full of C declarations so including it in asm files
would just give syntax errors.  The asm MPLOCKED is even less needed
than when misplaced definitions of it were first removed, and is now
unused in any asm file in the src tree except in anachronismns in
sys/i386/i386/support.s.

17 years agoBuild bits for ng_deflate(4) and ng_pred1(4).
glebius [Fri, 29 Dec 2006 13:16:43 +0000 (13:16 +0000)]
Build bits for ng_deflate(4) and ng_pred1(4).

17 years agoFix a group of typos:
yar [Fri, 29 Dec 2006 13:08:46 +0000 (13:08 +0000)]
Fix a group of typos:
preceed -> precede,
preceeded -> preceded,
preceeding -> preceding.

Submitted by: Andre Guibert de Bruet <andy@siliconlandmark.com>

17 years ago - More search and replace prettying.
jeff [Fri, 29 Dec 2006 12:55:32 +0000 (12:55 +0000)]
 - More search and replace prettying.

17 years agoFix SUSv3 compliance: Use a single comma instead of comma and space to separate
stefanf [Fri, 29 Dec 2006 12:28:34 +0000 (12:28 +0000)]
Fix SUSv3 compliance: Use a single comma instead of comma and space to separate
additional group entries.

PR: 107298
Submitted by: Joost Bekkers

17 years agoRemove two XXX comments that no longer apply.
rwatson [Fri, 29 Dec 2006 11:03:44 +0000 (11:03 +0000)]
Remove two XXX comments that no longer apply.

Obtained from: TrustedBSD Project

17 years agoUse p_cansee() to check that a target process for an audit state
rwatson [Fri, 29 Dec 2006 10:49:13 +0000 (10:49 +0000)]
Use p_cansee() to check that a target process for an audit state
manipulation is visible to the subject process.  Remove XXX comments
suggesting this.

Convert one XXX on a difference from Darwin into a note: it's not a
bug, it's a feature.

Obtained from: TrustedBSD Project

17 years agoManual page for Predictor-1 PPP compression netgraph node.
glebius [Fri, 29 Dec 2006 10:47:26 +0000 (10:47 +0000)]
Manual page for Predictor-1 PPP compression netgraph node.

Submitted by: Alexander Motin <mav alkar.net>

17 years agoManual page for Deflate PPP compression netgraph node.
glebius [Fri, 29 Dec 2006 10:46:15 +0000 (10:46 +0000)]
Manual page for Deflate PPP compression netgraph node.

Submitted by: Alexander Motin <mav alkar.net>

17 years agoAdd a witness sleep warning to canon_path(), which invokes vput() and hence
rwatson [Fri, 29 Dec 2006 10:37:32 +0000 (10:37 +0000)]
Add a witness sleep warning to canon_path(), which invokes vput() and hence
may perform an unbounded sleep.  Remove an XXX comment suggesting that one
be added.

Obtained from: TrustedBSD Project

17 years ago - Clean up a bit after the most recent KSE restructuring.
jeff [Fri, 29 Dec 2006 10:37:07 +0000 (10:37 +0000)]
 - Clean up a bit after the most recent KSE restructuring.

17 years agoA node that implements Predictor-1 compression for PPP.
glebius [Fri, 29 Dec 2006 09:54:32 +0000 (09:54 +0000)]
A node that implements Predictor-1 compression for PPP.

Submitted by: Alexander Motin <mav alkar.net>

17 years agoFix tab lossage.
ru [Fri, 29 Dec 2006 06:44:24 +0000 (06:44 +0000)]
Fix tab lossage.

17 years agoRemove extraneous whitespace.
ru [Fri, 29 Dec 2006 06:39:35 +0000 (06:39 +0000)]
Remove extraneous whitespace.

17 years agoThe Christmas holidays were not showing up due to missing <tab>.
ru [Fri, 29 Dec 2006 06:36:32 +0000 (06:36 +0000)]
The Christmas holidays were not showing up due to missing <tab>.

17 years ago-mdoc knows about FreeBSD 7.0 as well.
ru [Fri, 29 Dec 2006 06:22:13 +0000 (06:22 +0000)]
-mdoc knows about FreeBSD 7.0 as well.

Reminded by: ceri

17 years agoPiggyback watchdog timer handling with msk_tick which is called every
yongari [Fri, 29 Dec 2006 04:55:38 +0000 (04:55 +0000)]
Piggyback watchdog timer handling with msk_tick which is called every
hz. This will result in slightly faster Tx processing as it does not
need lock operations for callouts in msk_start/msk_txeof.

17 years agoFix interrupt handling on a dual port card. Previously it ignored
yongari [Fri, 29 Dec 2006 03:56:29 +0000 (03:56 +0000)]
Fix interrupt handling on a dual port card. Previously it ignored
the second port interrupt if the first port was in down state.
Since I don't have a dual port card it's just guess work.

Noticed by: jhb

17 years agoFix MSI support. Now it correctly allocates SYS_RES_IRQ resources
yongari [Fri, 29 Dec 2006 03:33:33 +0000 (03:33 +0000)]
Fix MSI support. Now it correctly allocates SYS_RES_IRQ resources
on Yukon II which reports it can handle two messages.

Submitted by: jhb
Tested by: bms

17 years agoRegenerate.
rwatson [Fri, 29 Dec 2006 01:17:09 +0000 (01:17 +0000)]
Regenerate.

17 years agoAssign or clean up audit identifiers for a number of additional Linux
rwatson [Fri, 29 Dec 2006 01:17:02 +0000 (01:17 +0000)]
Assign or clean up audit identifiers for a number of additional Linux
system calls on the amd64 architecture.

Some minor white space tweaks for consistency with other syscalls.master
files.

Obtained from: TrustedBSD Project

17 years agoIn cpu_reset(), call OF_reboot() instead of OF_exit(). The latter
marcel [Thu, 28 Dec 2006 23:56:50 +0000 (23:56 +0000)]
In cpu_reset(), call OF_reboot() instead of OF_exit(). The latter
doesn't do a reboot and has been observed to reset the NVRAM to its
default values.

17 years agoAdd missing include guards to mac_internal.h, update include guards in
rwatson [Thu, 28 Dec 2006 23:23:35 +0000 (23:23 +0000)]
Add missing include guards to mac_internal.h, update include guards in
mac_policy.h following move to new location in src/sys/security/mac.

Obtained from: TrustedBSD Project

17 years agobump doc date and fix spelling...
jmg [Thu, 28 Dec 2006 22:28:28 +0000 (22:28 +0000)]
bump doc date and fix spelling...

Pointed out by: mdoc-police (ru)

17 years agoUpdate a number of comments:
rwatson [Thu, 28 Dec 2006 22:18:43 +0000 (22:18 +0000)]
Update a number of comments:

- Replace XXX with Note: in several cases where observations are made about
  future functionality rather than problems or bugs.

- Remove an XXX comment about byte order and au_to_ip() -- IP headers must
  be submitted in network byte order.  Add a comment to this effect.

- Mention that we don't implement select/poll for /dev/audit.

Obtained from: TrustedBSD Project

17 years agoRemove XXX comments about EA transaction support and provide a more
rwatson [Thu, 28 Dec 2006 22:02:59 +0000 (22:02 +0000)]
Remove XXX comments about EA transaction support and provide a more
general and detailed comment on the topic of EA transactions and kernel
warnings.

Obtained from: TrustedBSD Project

17 years agoRemove an inaccurate comment I added regarding storage for mbuf tag
rwatson [Thu, 28 Dec 2006 21:57:59 +0000 (21:57 +0000)]
Remove an inaccurate comment I added regarding storage for mbuf tag
labels: they are in fact stored in the tag directly.

Obtained from: TrustedBSD Project

17 years agoIn mac_inpcb_sosetlabel(), assert the socket lock rather than commenting
rwatson [Thu, 28 Dec 2006 21:56:39 +0000 (21:56 +0000)]
In mac_inpcb_sosetlabel(), assert the socket lock rather than commenting
that we should assert the socket lock.

Obtained from: TrustedBSD Project

17 years agoUpdate __FreeBSD_version check for pci_find_extcap() now that it is
jhb [Thu, 28 Dec 2006 21:55:47 +0000 (21:55 +0000)]
Update __FreeBSD_version check for pci_find_extcap() now that it is
present in 6.x.

17 years agoCentralize definition of MAC_VERSION in mac_policy.h, as it defines the
rwatson [Thu, 28 Dec 2006 21:48:38 +0000 (21:48 +0000)]
Centralize definition of MAC_VERSION in mac_policy.h, as it defines the
kernel<->policy ABI version.  Add a comment to the definition describing
it and listing known versions.  Modify MAC_POLICY_SET() to reference the
current kernel version by name rather than by number.

Staticize mac_late, which is used only in mac_framework.c.

Obtained from: TrustedBSD Project

17 years agoMove mac_init_label() and mac_destroy_label() from mac_framework.c to
rwatson [Thu, 28 Dec 2006 21:15:37 +0000 (21:15 +0000)]
Move mac_init_label() and mac_destroy_label() from mac_framework.c to
mac_label.c, and use these instead of replicated code in the label zone
constructor and destructor.

Obtained from: TrustedBSD Project

17 years agoOn HEAD, the release notes are no longer MD documents, so update text
bmah [Thu, 28 Dec 2006 21:12:57 +0000 (21:12 +0000)]
On HEAD, the release notes are no longer MD documents, so update text
here to reflect reality.

Bump copyright date while here.

17 years agoTrim unneeded includes.
rwatson [Thu, 28 Dec 2006 21:07:45 +0000 (21:07 +0000)]
Trim unneeded includes.

17 years agoBreak contents of kern_mac.c out into two files following a repo-copy:
rwatson [Thu, 28 Dec 2006 20:52:02 +0000 (20:52 +0000)]
Break contents of kern_mac.c out into two files following a repo-copy:

mac_framework.c   Contains basic MAC Framework functions, policy
                  registration, sysinits, etc.

mac_syscalls.c    Contains implementations of various MAC system calls,
                  including ENOSYS stubs when compiling without options
                  MAC.

Obtained from: TrustedBSD Project

17 years agodocument that locks must not be aquired in f_event... (and where they
jmg [Thu, 28 Dec 2006 19:15:12 +0000 (19:15 +0000)]
document that locks must not be aquired in f_event...  (and where they
can be safely aquired)

Reminded by: kib (by LOR #193)
MFC: 3 days

17 years agoForced commit to recognize repository copy of src/sys/kern/kern_mac.c
rwatson [Thu, 28 Dec 2006 18:57:39 +0000 (18:57 +0000)]
Forced commit to recognize repository copy of src/sys/kern/kern_mac.c
to mac_framework.c and mac_syscalls.c.

Thanks to: simon

17 years agoUpdate MAC Framework general comments, referencing various interfaces it
rwatson [Thu, 28 Dec 2006 17:25:57 +0000 (17:25 +0000)]
Update MAC Framework general comments, referencing various interfaces it
consumes and implements, as well as the location of the framework and
policy modules.

Refactor MAC Framework versioning a bit so that the current ABI version can
be exported via a read-only sysctl.

Further update comments relating to locking/synchronization.

Update copyright to take into account these and other recent changes.

Obtained from: TrustedBSD Project

17 years agoBump modification date for last update.
simon [Thu, 28 Dec 2006 17:15:21 +0000 (17:15 +0000)]
Bump modification date for last update.

17 years agoCatch up struct cmsghdr and struct msghdr in the manual page with the
simon [Thu, 28 Dec 2006 17:10:23 +0000 (17:10 +0000)]
Catch up struct cmsghdr and struct msghdr in the manual page with the
actual structures in socket.h (which were updated 7 years ago).

MFC after: 1 week

17 years agoA node that implements the Deflate sub-protocols of the Compression Control
glebius [Thu, 28 Dec 2006 15:44:05 +0000 (15:44 +0000)]
A node that implements the Deflate sub-protocols of the Compression Control
Protocol (CCP).

Submitted by: Alexander Motin <mav alkar.net>

17 years agoBefore this commit, if the compression is enabled the, ng_ppp(4)
glebius [Thu, 28 Dec 2006 13:21:54 +0000 (13:21 +0000)]
Before this commit, if the compression is enabled the, ng_ppp(4)
node would send every outgoing frame to the "compress" hook.
Packets received on the "compress" hook were expected to be
compressed and PROT_COMPD tag was put on them unconditionally.

After this commit an alternative compression mode can be set.
In this mode the node doesn't put the PROT_COMPD, the compressor
should put it itself. This is important for such kind of
compressors, that can submit uncompressed frames.

Before this commit, if the decompression is enabled, the ng_ppp(4)
node would send and incoming frame to the "decompress" hook
only if it has the PROT_COMPD proto tag on it.

After this commit an alternative decompression mode can be set.
In this mode the node sends all the incoming packets to the
decompression hook. This is important for such kind of compressors
that need uncompressed packets too, to keep their library in sync.

These new features will be used in new version of mpd4, and in new
compressor nodes.

Submitted by: Alexander Motin <mav alkar.net>

17 years agoFix markup nit.
ru [Thu, 28 Dec 2006 10:58:06 +0000 (10:58 +0000)]
Fix markup nit.

17 years agoRemoved gratuitous cosmetic differences with the i386 version. This
bde [Thu, 28 Dec 2006 08:15:14 +0000 (08:15 +0000)]
Removed gratuitous cosmetic differences with the i386 version.  This
mainly involves removing all __CC_SUPPORTS___INLINE__ ifdefs.  These
ifdefs are even less needed for amd64 than for i386, but the i386
atomic.h never had them.  The ifdefs here were just an optimization
of obsolescent compatibility cruft (__inline) for a null set of
compilers.  I think null sets of compilers should only be supported
in cases where this is more than an optimization, doesn't require
extensive ifdefs, and only involves not-so-obsolescent compatibility
cruft (plain inline here).

17 years agoDisable MSI on the Intel E7505 chipset. It is reported broken on a Tyan
jhb [Thu, 28 Dec 2006 06:14:42 +0000 (06:14 +0000)]
Disable MSI on the Intel E7505 chipset.  It is reported broken on a Tyan
S2665ANF motherboard.

Reported by: "Eugene M. Kim" <blue at white lv>

17 years agoCorrect spelling of "accommodate", "guarantee", "guaranteed", "guard",
cperciva [Thu, 28 Dec 2006 05:21:48 +0000 (05:21 +0000)]
Correct spelling of "accommodate", "guarantee", "guaranteed", "guard",
"return", "ridiculous", and "success".

MFC after: 3 days

17 years agoFix markup.
ru [Thu, 28 Dec 2006 04:58:38 +0000 (04:58 +0000)]
Fix markup.

17 years agoo unbreak rate set defaulting
sam [Thu, 28 Dec 2006 01:31:26 +0000 (01:31 +0000)]
o unbreak rate set defaulting
o mark 11g mode support on finding 11g or pure 11g (OFDM-only)
  channels; was requiring pure 11g which caused some contortions
  in drivers that manually setup their channel lists

17 years agoFix shared authentication mode.
jkim [Thu, 28 Dec 2006 00:05:40 +0000 (00:05 +0000)]
Fix shared authentication mode.

17 years agoAvoid an instruction in atomic_cmpset_{int_long)() in most cases.
bde [Wed, 27 Dec 2006 20:26:00 +0000 (20:26 +0000)]
Avoid an instruction in atomic_cmpset_{int_long)() in most cases.
These functions are used a lot for mutexes, so this reduces the text
size of an average kernel by about 0.75%.  This wasn't intended to
be a significant optimization, but it somehow increased the maximum
number of packets per second that can be transmitted by my bge hardware
from 320000 to 460000 (this benchmark is CPU-bound and remarkably
sensitive to changes in the text section).

Details: we would prefer to leave the result of the cmpxchg in %al,
but cannot tell gcc that it is there, so we have to convert it to an
integer register.  We converted  to %al, then to %[re]ax, but the
latter step is usually wasted since gcc usually only wants the condition
code and can recover it from %al just as easily as from %[re]ax.  Let
gcc promote %al in the few cases where this is needed.

Nearby style fixes;
- let gcc manage the load of `res', and don't abuse `res' for a copy of `exp'
- don't echo `res's name in comments
- consistently spell the condition code as 'e' after comparison for equality
- don't hard-code %al anywhere except in constraints
- for the version that doesn't use cmpxchg, there is no requirement to use
  %al anywhere, so don't hard-code it in the constraints either.

Style non-fix:
- for the versions that use cmpxchg, keep using "a" (was %[re]ax, now %al)
  for the main output operand, although this is not required.  The input
  and output operands that use the "a" constraint are now decoupled, and
  this makes things clearer except for the reason that the output register
  is hard-coded.  It is now just a hack to tell gcc that the input "a" has
  been clobbered without increasing the number of operands.

17 years agoAdd half/quarter rate 11a channel support:
sam [Wed, 27 Dec 2006 19:07:09 +0000 (19:07 +0000)]
Add half/quarter rate 11a channel support:
o change handling of regdomain-related mib knobs so they can be set
  post-attach: regdomain, countrycode, outdoor, and xchanmode; the
  hal will not permit changing the regdomain but we expose it for now
o on regdomain/countrycode change recalculate the channel list and
  push it to the net80211 layer (NB: looks to need more tweaking)
o setup rate tables for half/quarter rate channels
o honor half/quarter rate channel configs when changing channels
o honor half/quarter rate channel configs when setting the slot time
o use hack/nonstandard channel numbering scheme for the public safety
  band to avoid overlapping 2.4G channels on dual-band cards
o remove setup of ic_sup_rates; the net80211 layer can do this for us
  and it simplifies handling of half/quarter rate channels

Tested only in Public Safety Band with cards that have RF5112.

17 years agoAdd half/quarter rate 11a channel support:
sam [Wed, 27 Dec 2006 18:48:50 +0000 (18:48 +0000)]
Add half/quarter rate 11a channel support:
o add hack/nonstandard channel mapping for public safety band channels to
  mirror kernel (temporary until we have proper 802.11 state)
o change ieee80211_mhz2ieee to take channel flags (unused right now)

While here do some minor fixups like using IEEE80211_IS_CHAN_ANYG.

17 years agoFirst cut at half/quarter-rate 11a channel support (e.g. for use
sam [Wed, 27 Dec 2006 18:46:18 +0000 (18:46 +0000)]
First cut at half/quarter-rate 11a channel support (e.g. for use
in the Public Safety Band):
o add channel flags to identify half/quarter-rate operation
o add rate sets (need to check spec on 4Mb/s in 1/4 rate)
o add if_media definitions for new rates
o split net80211 channel setup out into ieee80211_chan_init
o fixup ieee80211_mhz2ieee and ieee80211_ieee2mhz to understand half/quarter
  rate channels: note we temporarily use a nonstandard/hack numbering that
  avoids overlap with 2.4G channels because we don't (yet) have enough
  state to identify and/or map overlapping channel sets
o fixup ieee80211_ifmedia_init so it can be called post attach and will
  recalculate the channel list and associated state; this enables changing
  channel-related state like the regulatory domain after attach (will be
  needed for 802.11d support too)
o add ieee80211_get_suprates to return a reference to the supported rate
  set for a given channel
o add 3, 4.5, and 27 MB/s tx rates to rate <-> media conversion routines
o const-poison channel arg to ieee80211_chan2mode

17 years ago- Remove the ambiguity in the input format description.
ru [Wed, 27 Dec 2006 14:56:18 +0000 (14:56 +0000)]
- Remove the ambiguity in the input format description.
- Fix markup while here.

17 years agoFix markup and change some layout; no content changes.
ru [Wed, 27 Dec 2006 13:52:57 +0000 (13:52 +0000)]
Fix markup and change some layout; no content changes.