21 months agoftp-proxy: Update to OpenBSD 4.1 pf_update
Jan Lentfer [Sun, 8 Aug 2010 16:47:04 +0000]
ftp-proxy: Update to OpenBSD 4.1

ftp-proxy has been moved from libexec/ to usr.sbin/

21 months agopflogd: Update to OpenBSD 4.1
Jan Lentfer [Sun, 8 Aug 2010 16:43:17 +0000]
pflogd: Update to OpenBSD 4.1

21 months agoPF: Update manpages
Jan Lentfer [Sun, 8 Aug 2010 07:29:24 +0000]
PF: Update manpages

pf.os(5)

21 months agoMerge branch 'master' into pf_update
Jan Lentfer [Sat, 7 Aug 2010 06:55:19 +0000]
Merge branch 'master' into pf_update

21 months agoiwn.4: Miscellaneous adjustments.
Sascha Wildner [Sat, 7 Aug 2010 03:14:29 +0000]
iwn.4: Miscellaneous adjustments.

* Add some words about iwn6050fw.

* Comment out information about building the firmwares separately into
  the kernel. We don't support that (yet).

21 months agoiwn(4): Add Makefile for building iwn6050fw.ko.
Sascha Wildner [Sat, 7 Aug 2010 03:12:38 +0000]
iwn(4): Add Makefile for building iwn6050fw.ko.

21 months agoAdd iwn(4) and iwnfw(4) to LINT.
Sascha Wildner [Sat, 7 Aug 2010 03:11:48 +0000]
Add iwn(4) and iwnfw(4) to LINT.

21 months agoconfig - Fix typo in iwn6050 clean target.
Joe Talbott [Sat, 7 Aug 2010 02:21:23 +0000]
config - Fix typo in iwn6050 clean target.

21 months agoUnbreak buildworld.
Sascha Wildner [Fri, 6 Aug 2010 23:26:40 +0000]
Unbreak buildworld.

wlan_token shall be visible to the kernel only.

21 months agoMerge branch 'master' into pf_update
Jan Lentfer [Fri, 6 Aug 2010 20:46:31 +0000]
Merge branch 'master' into pf_update

21 months agoPF: more man page updates (pfsync(4))
Jan Lentfer [Fri, 6 Aug 2010 20:44:46 +0000]
PF: more man page updates (pfsync(4))

21 months agoiwn - Fix warning related to token work.
Joe Talbott [Sun, 25 Jul 2010 22:50:05 +0000]
iwn - Fix warning related to token work.

21 months agoiwn - Cleanup sysctl tree on detach.
Joe Talbott [Sun, 25 Jul 2010 22:49:35 +0000]
iwn - Cleanup sysctl tree on detach.

21 months agoiwn - Clean up memory freeing.
Joe Talbott [Sun, 25 Jul 2010 22:27:29 +0000]
iwn - Clean up memory freeing.

* Mark variables with NULL after freeing.
* Properly free dma memory.

21 months agoiwn - Convert to use the new wlan layer's global token.
Joe Talbott [Sun, 25 Jul 2010 20:09:21 +0000]
iwn - Convert to use the new wlan layer's global token.

21 months agowlan - Convert lockmgr locking to a global token.
Joe Talbott [Sun, 25 Jul 2010 20:08:19 +0000]
wlan - Convert lockmgr locking to a global token.

Use the lwkt_token API to synchronize the wlan layer entry points.

Discussed-With: dillon

21 months agoiwn - Bring in recent changes from FreeBSD.
Joe Talbott [Sun, 25 Jul 2010 19:29:52 +0000]
iwn - Bring in recent changes from FreeBSD.

Taken-From: FreeBSD

21 months agoiwn - Lock callout iwn_timer_timeout().
Joe Talbott [Sat, 24 Jul 2010 14:48:09 +0000]
iwn - Lock callout iwn_timer_timeout().

21 months agoiwn - Update firmware for 6000 chipset.
Joe Talbott [Tue, 20 Jul 2010 13:38:30 +0000]
iwn - Update firmware for 6000 chipset.

21 months agoiwnfw - Update 6000 firmware and add 6050 firmware
Joe Talbott [Tue, 20 Jul 2010 12:43:36 +0000]
iwnfw - Update 6000 firmware and add 6050 firmware

21 months agoAdd some more *at() system calls.
Sascha Wildner [Fri, 6 Aug 2010 14:44:50 +0000]
Add some more *at() system calls.

mkdirat(2), mkfifoat(2), mknodat(2), readlinkat(2), symlinkat(2)

Missing still (at least): linkat(2)

Documentation-changes-from: FreeBSD

21 months agoRemove <sys/selinfo.h> per 'make upgrade'.
Sascha Wildner [Fri, 6 Aug 2010 14:01:55 +0000]
Remove <sys/selinfo.h> per 'make upgrade'.

21 months agokernel - Clean up pipe filters (fixes last)
Samuel J. Greear [Fri, 6 Aug 2010 12:29:24 +0000]
kernel - Clean up pipe filters (fixes last)

* Remove extra pipe space calculation

* Move disconnected pipe check before token acquisition

21 months agokern - Clean up pipe filters
Samuel J. Greear [Fri, 6 Aug 2010 12:16:22 +0000]
kern - Clean up pipe filters

* Do not check ki_note, just issue the KNOTE and let kq sort it out.

* Remove an unmatched rel_mplock().

* Take the r and w tokens for the pipe in question before poking around for
  states and sizes.

* Reverse the pipe end that the write filter assumes it will receive, this
  matches the semantics of the previous .fo_poll implementation.

21 months agokernel - Silently swallow EOPNOTSUPP filter errors for select(2) in all cases
Samuel J. Greear [Fri, 6 Aug 2010 09:19:38 +0000]
kernel - Silently swallow EOPNOTSUPP filter errors for select(2) in all cases

* This fixes hald

Reported-by: Rumko

21 months agokernel - make poll return only explicitly asked for events
Samuel J. Greear [Fri, 6 Aug 2010 09:15:15 +0000]
kernel - make poll return only explicitly asked for events

* Previously we were returning all events that were analogous to each other,
  now we return only what was explicitly asked for.

* This fixes pulseaudio

Reported-by: Rumko

21 months agoFix some typos in various places.
Sascha Wildner [Thu, 5 Aug 2010 16:49:49 +0000]
Fix some typos in various places.

21 months agoPF: Update pf related man pages
Jan Lentfer [Thu, 5 Aug 2010 13:29:56 +0000]
PF: Update pf related man pages

Sync pf(4) and pflog(4) with OpenBSD 4.1

21 months agoFix LINT build.
Sascha Wildner [Thu, 5 Aug 2010 08:09:33 +0000]
Fix LINT build.

21 months agoBring in FreeBSD's stress2 stress testing suite.
Sascha Wildner [Wed, 4 Aug 2010 23:36:53 +0000]
Bring in FreeBSD's stress2 stress testing suite.

Great for crashing the system.

See test/stress/stress2/README for instructions.

Thanks to Peter Holm <pho@FreeBSD.org> for writing it.

Thanks to Damian Lubosch <dl@xiqit.de> for helping with testing
on DragonFly.

This might need further adjustment in the future.

21 months agoMerge branch 'master' into pf_update
Jan Lentfer [Wed, 4 Aug 2010 14:45:40 +0000]
Merge branch 'master' into pf_update

21 months agoPF: Change M_NOWAIT to M_WAITOK where appropriate
Jan Lentfer [Wed, 4 Aug 2010 14:40:50 +0000]
PF: Change M_NOWAIT to M_WAITOK where appropriate

Patch by Matthew Dillon

21 months agoPF: Update pf.conf(5) man page
Jan Lentfer [Wed, 4 Aug 2010 14:23:29 +0000]
PF: Update pf.conf(5) man page

Also reorder the lower part
to fit the OpenBSD original again

21 months agobuildworld - Fix header file
Matthew Dillon [Wed, 4 Aug 2010 05:34:35 +0000]
buildworld - Fix header file

* struct kqinfo must be exposed for _KERNEL_STRUCTURES too.
  Fixes buildworld.

* Attempt to limit the inclusion of sys/queue.h to builds
  with _KERNEL or _KERNEL_STRUCTURES.

Reported-by: swildner

21 months agoMerge branch 'master' into pf_update
Jan Lentfer [Wed, 4 Aug 2010 04:56:03 +0000]
Merge branch 'master' into pf_update

21 months agokernel - Add ALTQ to GENERIC and X86_64_GENERIC
Matthew Dillon [Wed, 4 Aug 2010 02:34:15 +0000]
kernel - Add ALTQ to GENERIC and X86_64_GENERIC

* Add ALTQ to these guys, as no altq module is currently
  available.

21 months agoMerge branch 'master' into pf_update
Jan Lentfer [Tue, 3 Aug 2010 17:55:11 +0000]
Merge branch 'master' into pf_update

21 months agoPF: Remove debugging output
Jan Lentfer [Tue, 3 Aug 2010 17:54:28 +0000]
PF: Remove debugging output

21 months agokernel - Make filters able to be marked MPSAFE
Samuel J. Greear [Tue, 3 Aug 2010 15:11:21 +0000]
kernel - Make filters able to be marked MPSAFE

* Change struct filterops f_isfd field to f_flags, taking FILTEROP_ISFD and/or
  FILTEROP_MPSAFE.

* Convert all existing filter definitions to use new flags.

* Create filter_attach/detach/event wrapper functions for calling through the
  struct filterops vector that grab the MPLOCK as necessary.

* kern_event() uses kq->kq_count to determine whether or not to sleep,
  kqueue_scan() removes events from the TAILQ and can possibly sleep, releasing
  the global kq token, before updating kq->kq_count.

21 months agokernel - Remove kevent subsystem from under mplock
Samuel J. Greear [Thu, 29 Jul 2010 12:06:13 +0000]
kernel - Remove kevent subsystem from under mplock

* Create a global token for the kevent subsystem to operate under

* Push klist insertion and removal into knote_insert()/knote_remove()

* Rename struct selinfo to struct kqinfo

21 months agoiwn{,fw}.4: Remove trailing whitespace and an unneeded .Pp
Sascha Wildner [Tue, 3 Aug 2010 14:06:51 +0000]
iwn{,fw}.4: Remove trailing whitespace and an unneeded .Pp

21 months agotwa(4): Sync with FreeBSD's current code.
Sascha Wildner [Tue, 3 Aug 2010 12:20:56 +0000]
twa(4): Sync with FreeBSD's current code.

This adds support for more and newer cards (see the hardware list in
the manual page).

Big thanks to Damian Lubosch <dl@xiqit.de> for testing it on a 9650SE.

21 months agoMerge branch 'master' into pf_update
Jan Lentfer [Tue, 3 Aug 2010 12:02:06 +0000]
Merge branch 'master' into pf_update

21 months agoPF: Fix "set keep-policy (pickups)" option
Jan Lentfer [Tue, 3 Aug 2010 11:30:05 +0000]
PF: Fix "set keep-policy (pickups)" option

21 months agoPF: Fix ALTQ/fairq support in PF
Jan Lentfer [Tue, 3 Aug 2010 11:16:04 +0000]
PF: Fix ALTQ/fairq support in PF

Patch by Matthew Dillon

21 months agoALTQ: Fix altq to work with m_tag from pf
Jan Lentfer [Tue, 3 Aug 2010 11:15:05 +0000]
ALTQ: Fix altq to work with m_tag from pf

Patch by Matthew Dillon

21 months agokernel - Silently swallow EOPNOTSUPP filter errors for poll(2) in all cases
Samuel J. Greear [Tue, 3 Aug 2010 06:06:27 +0000]
kernel - Silently swallow EOPNOTSUPP filter errors for poll(2) in all cases

* This fixes firefox/gconfd/others

Reported-by: tuxillo

21 months agoFix buildkernel with 'options CPU_GEODE' but without 'device gpio'.
Sascha Wildner [Tue, 3 Aug 2010 00:49:13 +0000]
Fix buildkernel with 'options CPU_GEODE' but without 'device gpio'.

21 months agoFix x86_64 build by casting some {u,}intmax_t's for printing.
Sascha Wildner [Mon, 2 Aug 2010 21:03:18 +0000]
Fix x86_64 build by casting some {u,}intmax_t's for printing.

21 months ago{fetch,store}.9: Move casuword() from fetch(9) to store(9).
Sascha Wildner [Mon, 2 Aug 2010 09:08:32 +0000]
{fetch,store}.9: Move casuword() from fetch(9) to store(9).

21 months agostring.h: Fix VKERNEL breakage
Jan Lentfer [Mon, 2 Aug 2010 19:12:09 +0000]
string.h: Fix VKERNEL breakage

21 months agoMerge branch 'master' into pf_update
Jan Lentfer [Mon, 2 Aug 2010 18:55:31 +0000]
Merge branch 'master' into pf_update

21 months agoPF: Remove hardcoded KLD_DEBUG (debugging)
Jan Lentfer [Mon, 2 Aug 2010 18:35:39 +0000]
PF: Remove hardcoded KLD_DEBUG (debugging)

21 months agokernel - Filter out unknown errors for select(2) and poll(2)
Samuel J. Greear [Mon, 2 Aug 2010 13:10:05 +0000]
kernel - Filter out unknown errors for select(2) and poll(2)

* select/poll have very limited error management, silently ignore anything they
  cannot handle (this brings us closer in line with the previous
  implementation).

* Add a couple of kern.nseldebug kprintf's

* Increment the kqueue serial by the number of descriptors for both select
  and poll.

21 months agokernel - Unset TS_ZOMBIE when pty is re-opened
Samuel J. Greear [Mon, 2 Aug 2010 13:09:27 +0000]
kernel - Unset TS_ZOMBIE when pty is re-opened

Reported-by: tuxillo

21 months agoFix the VKERNEL build with KLD_DEBUG set.
Sascha Wildner [Mon, 2 Aug 2010 13:00:58 +0000]
Fix the VKERNEL build with KLD_DEBUG set.

Reported-by: lentferj

21 months agobce(4): Remove some carriage returns.
Sascha Wildner [Mon, 2 Aug 2010 12:22:53 +0000]
bce(4): Remove some carriage returns.

21 months agoPF: Update authpf Makefile
Jan Lentfer [Mon, 2 Aug 2010 11:24:10 +0000]
PF: Update authpf Makefile

21 months agolibkern: Revert commit e104539
Jan Lentfer [Mon, 2 Aug 2010 11:20:59 +0000]
libkern: Revert commit e104539

strchr was added to libkern.h
together with strrch

21 months agoPF: Re-add files in usr.sbin/pfctl
Jan Lentfer [Sun, 1 Aug 2010 21:36:38 +0000]
PF: Re-add files in usr.sbin/pfctl

21 months agoPF: Update usr.sbin/authpf to OpenBSD 4.1
Jan Lentfer [Sun, 1 Aug 2010 21:32:49 +0000]
PF: Update usr.sbin/authpf to OpenBSD 4.1

21 months agoPF: Fix warnings in pfctl after update
Jan Lentfer [Sun, 1 Aug 2010 21:32:12 +0000]
PF: Fix warnings in pfctl after update

21 months agoPF: Adjust flags for keep state (pickups)
Jan Lentfer [Sat, 31 Jul 2010 04:50:17 +0000]
PF: Adjust flags for keep state (pickups)

21 months agoPF: Fix some more locking issues on module unload
Jan Lentfer [Sat, 31 Jul 2010 04:47:30 +0000]
PF: Fix some more locking issues on module unload

21 months agoPF: Fix more locking and module unload problems
Jan Lentfer [Thu, 22 Jul 2010 15:03:02 +0000]
PF: Fix more locking and module unload problems

21 months agoPF: Fix panic on unload
Jan Lentfer [Thu, 22 Jul 2010 11:37:11 +0000]
PF: Fix panic on unload

21 months agoPF: fix locking in pf_purge_thread() and friends
Jan Lentfer [Wed, 21 Jul 2010 19:04:48 +0000]
PF: fix locking in pf_purge_thread() and friends

21 months agoPF: More debug output
Jan Lentfer [Tue, 20 Jul 2010 17:35:04 +0000]
PF: More debug output

21 months agopfctl: Update to OpenBSD 4.1 version
Jan Lentfer [Thu, 10 Jun 2010 09:29:20 +0000]
pfctl: Update to OpenBSD 4.1 version

21 months agonet/pf: Fix panic on module unload
Jan Lentfer [Sat, 5 Jun 2010 18:47:40 +0000]
net/pf: Fix panic on module unload

pf_purge_thread wasn't cleanly finished.
Code taken from FreeBSD and changed to
DragonFly syntax.

21 months agonet/bpf.c: Fix bpf_mtap_hdr
Jan Lentfer [Sat, 5 Jun 2010 18:47:15 +0000]
net/bpf.c: Fix bpf_mtap_hdr

21 months agonet/if.h: add interface groups
Jan Lentfer [Sat, 5 Jun 2010 18:39:09 +0000]
net/if.h: add interface groups

Imported from FreeBSD.

21 months agonet/pf: Update PF to OpenBSD 4.1 release
Jan Lentfer [Sun, 30 May 2010 18:02:50 +0000]
net/pf: Update PF to OpenBSD 4.1 release

21 months agonetinet6/in6.h: add PV6_ADDR_SCOPE_INTFACELOCAL
Jan Lentfer [Sat, 29 May 2010 18:43:28 +0000]
netinet6/in6.h: add PV6_ADDR_SCOPE_INTFACELOCAL

21 months agonetinet6/in6.h: add IN6_IS_ADDR_MC_INTFACELOCAL macro
Jan Lentfer [Sat, 29 May 2010 18:39:59 +0000]
netinet6/in6.h: add IN6_IS_ADDR_MC_INTFACELOCAL  macro

21 months agonetinet6/in6.h: add IN6_IS_SCOPE_EMBED macro
Jan Lentfer [Sat, 29 May 2010 18:35:01 +0000]
netinet6/in6.h: add IN6_IS_SCOPE_EMBED macro

21 months agosys/libkern.h: Add strchr and strrchr as inline functions
Jan Lentfer [Fri, 28 May 2010 19:06:34 +0000]
sys/libkern.h: Add strchr and strrchr as inline functions

* Brought in from FreeBSD

21 months agosys/net/if_var.h: Import interface groups
Jan Lentfer [Wed, 19 May 2010 20:33:17 +0000]
sys/net/if_var.h: Import interface groups

* Import interface groups and event handlers from FreeBSD
* add if_groups to struct ifnet
* necessary additions for PF update

21 months agonet/if_var.h: add if_pf_kif to struct ifnet
Jan Lentfer [Mon, 17 May 2010 11:45:12 +0000]
net/if_var.h: add if_pf_kif to struct ifnet

* obtained from: Open/FreeBSD

21 months agonet/if_types.h: add IFT_ENC to non-IATA-assignments
Jan Lentfer [Mon, 17 May 2010 10:44:49 +0000]
net/if_types.h: add IFT_ENC to non-IATA-assignments

* obtained from Open/FreeBSD

21 months agonet/bpf: Fix argument types in bpf_mtap_hdr
Jan Lentfer [Fri, 14 May 2010 18:45:32 +0000]
net/bpf: Fix argument types in bpf_mtap_hdr

21 months agobla
Jan Lentfer [Fri, 14 May 2010 17:00:06 +0000]
bla

21 months agonet/bpf.c: add bpf_mtap_hdr from OpenBSD
Jan Lentfer [Fri, 14 May 2010 16:37:04 +0000]
net/bpf.c: add bpf_mtap_hdr from OpenBSD

 Con up a minimal dummy header to pacify bpf.  Allocate
(only) a struct m_hdr on the stack.

21 months agoiwn(4): Hook the manual pages into the build as well.
Sascha Wildner [Sun, 1 Aug 2010 17:49:30 +0000]
iwn(4): Hook the manual pages into the build as well.

21 months agodsched - minor fixes, cleanup
Alex Hornung [Sun, 1 Aug 2010 12:04:32 +0000]
dsched - minor fixes, cleanup

* Clean up old dsched dev stuff, since dschedctl was the only consumer
  of it.

* Add a sysctl to change the default dsched policy
  (dsched.policy.default).

Suggested-by: Sascha Wildner

21 months agoMark the *at(2) system calls' prototypes as being new in IEEE 1003.1-2008.
Sascha Wildner [Sun, 1 Aug 2010 09:02:12 +0000]
Mark the *at(2) system calls' prototypes as being new in IEEE 1003.1-2008.

This is to prevent them from being exposed if an earlier version is
explicitly requested.

Mark them with __BSD_VISIBLE too so they are still exposed in our default
programming environment.

21 months agokernel - Make pt's throw EOF on disconnect.
Samuel J. Greear [Sun, 1 Aug 2010 08:54:29 +0000]
kernel - Make pt's throw EOF on disconnect.

* Set TS_ZOMBIE when pts is closed (already set for ptc).

* Add TS_ZOMBIE filter checks which throw EOF.

* This fixes a problem with screen introduced with screen commit 33b7c9ca

Reported-by: YONETANI Tomokazu

21 months agoRemove dschedctl(8).
Sascha Wildner [Sun, 1 Aug 2010 08:38:46 +0000]
Remove dschedctl(8).

dsched's behavior is controlled by the dsched.* tunables and sysctls
for a while now.

In-discussion-with: alexh

21 months agochroot.2: Add some words about chroot_kernel().
Sascha Wildner [Sun, 1 Aug 2010 08:06:40 +0000]
chroot.2: Add some words about chroot_kernel().

21 months agonlookup.9: Document nlookup_init_at() and nlookup_done_at().
Sascha Wildner [Sun, 1 Aug 2010 07:26:04 +0000]
nlookup.9: Document nlookup_init_at() and nlookup_done_at().

21 months agorenameat(2): Properly use nlookup_done_at() instead of nlookup_done().
Sascha Wildner [Sun, 1 Aug 2010 06:48:09 +0000]
renameat(2): Properly use nlookup_done_at() instead of nlookup_done().

21 months agoAdd a renameat(2) system call.
Sascha Wildner [Sat, 31 Jul 2010 20:46:31 +0000]
Add a renameat(2) system call.

Based-on: FreeBSD

21 months agodsched - Encapsulate tdio for curthread creation
Alex Hornung [Thu, 29 Jul 2010 15:07:11 +0000]
dsched - Encapsulate tdio for curthread creation

* Encapsulate the creation of a tdio for a thread created during the
  "prepare" method.

21 months agodevd - select only with a read set
Samuel J. Greear [Thu, 29 Jul 2010 04:26:10 +0000]
devd - select only with a read set

21 months agoAdd a dm(4) manual page (derived from NetBSD's).
Sascha Wildner [Wed, 28 Jul 2010 21:30:49 +0000]
Add a dm(4) manual page (derived from NetBSD's).

21 months agomkinitrd.8: Add some missing quotation marks.
Sascha Wildner [Wed, 28 Jul 2010 21:29:58 +0000]
mkinitrd.8: Add some missing quotation marks.

21 months agoFix typo in <sys/elf_common.h>: ET_LIPROC -> ET_LOPROC
Sascha Wildner [Wed, 28 Jul 2010 15:22:54 +0000]
Fix typo in <sys/elf_common.h>: ET_LIPROC -> ET_LOPROC

21 months agomake_dev.9: Remove reference to d_poll_t.
Sascha Wildner [Wed, 28 Jul 2010 03:44:18 +0000]
make_dev.9: Remove reference to d_poll_t.

It is gone with the recent poll/select work.

21 months agoRemove old time zone files via 'make upgrade'.
Sascha Wildner [Tue, 27 Jul 2010 18:16:43 +0000]
Remove old time zone files via 'make upgrade'.

21 months agofiles - Remove unneeded dependency on wlan_amrr from wpi.
Joe Talbott [Tue, 27 Jul 2010 16:56:16 +0000]
files - Remove unneeded dependency on wlan_amrr from wpi.

Pointed-Out-By: Max Herrgard