Sepherosa Ziehau [Wed, 27 Aug 2014 08:37:14 +0000 (16:37 +0800)]
Fix LINT64 building
Sepherosa Ziehau [Wed, 27 Aug 2014 07:55:46 +0000 (15:55 +0800)]
udp: Follow traditional BSD udp connect failure behaviour
Sepherosa Ziehau [Sat, 23 Aug 2014 07:45:40 +0000 (15:45 +0800)]
udp: Fix bind(2) then connect(2) bug
Sepherosa Ziehau [Tue, 12 Aug 2014 15:06:47 +0000 (23:06 +0800)]
udp6: Protect inpcb list w/ token and marker
Sepherosa Ziehau [Mon, 11 Aug 2014 13:56:56 +0000 (21:56 +0800)]
udp: Use msg receipt to switch so_port
Sepherosa Ziehau [Thu, 7 Aug 2014 14:04:32 +0000 (22:04 +0800)]
ip: Move multicast options to netisr0 for processing
Sepherosa Ziehau [Wed, 6 Aug 2014 13:55:16 +0000 (21:55 +0800)]
udp: Fix comment
Sepherosa Ziehau [Wed, 6 Aug 2014 13:48:30 +0000 (21:48 +0800)]
udp: Remove unused code for mcast/bcast
Sepherosa Ziehau [Wed, 6 Aug 2014 13:47:05 +0000 (21:47 +0800)]
udp: Check wildcard hash table for mcast/bcast packets
Sepherosa Ziehau [Wed, 6 Aug 2014 08:46:48 +0000 (16:46 +0800)]
inpcb: Add inpcb container marker
Sepherosa Ziehau [Wed, 6 Aug 2014 08:29:51 +0000 (16:29 +0800)]
udp: Search connect hash for mcast/bcast packets
Sepherosa Ziehau [Wed, 6 Aug 2014 08:09:02 +0000 (16:09 +0800)]
inpcb: Prepare placemarker in wildcard hash
Sepherosa Ziehau [Mon, 4 Aug 2014 15:12:36 +0000 (23:12 +0800)]
udp: Factor out udp_mcast_input()
Sepherosa Ziehau [Mon, 4 Aug 2014 13:58:20 +0000 (21:58 +0800)]
udp/udp6: Remove INP_PLACEMARKER assertion
Sepherosa Ziehau [Sun, 3 Aug 2014 13:28:01 +0000 (21:28 +0800)]
udp: Fix ctlinput
Sepherosa Ziehau [Sun, 3 Aug 2014 12:56:20 +0000 (20:56 +0800)]
inpcb: Fix inpcb notify
Sepherosa Ziehau [Fri, 1 Aug 2014 08:26:23 +0000 (16:26 +0800)]
inpcb: Protect in6_pcbnotify
Sepherosa Ziehau [Fri, 1 Aug 2014 08:07:58 +0000 (16:07 +0800)]
in6pcb: Protect purgeif0 properly
Sepherosa Ziehau [Fri, 1 Aug 2014 07:50:43 +0000 (15:50 +0800)]
in6pcb: Leave mcast group in netisr0
Sepherosa Ziehau [Fri, 1 Aug 2014 07:22:04 +0000 (15:22 +0800)]
inpcb: Assert thread for {ins,rem}wildcardhash
Sepherosa Ziehau [Fri, 1 Aug 2014 07:18:21 +0000 (15:18 +0800)]
inpcb: No need to protect connect hash table
Sepherosa Ziehau [Tue, 29 Jul 2014 14:11:05 +0000 (22:11 +0800)]
in: Purge all udbinfo
Sepherosa Ziehau [Tue, 29 Jul 2014 14:09:43 +0000 (22:09 +0800)]
inpcb: Fix purgeif0
Sepherosa Ziehau [Tue, 29 Jul 2014 13:37:08 +0000 (21:37 +0800)]
inpcb: Initialize per-cpu inpcb markers
Sepherosa Ziehau [Tue, 29 Jul 2014 13:29:59 +0000 (21:29 +0800)]
inpcb: Prepare for global init
Sepherosa Ziehau [Mon, 28 Jul 2014 13:24:42 +0000 (21:24 +0800)]
inpcb: Add assertion in in_pcbnotifyall
Sepherosa Ziehau [Mon, 28 Jul 2014 12:55:28 +0000 (20:55 +0800)]
inpcb: Add more assertion for inpcbinfo cpuid
Sepherosa Ziehau [Mon, 28 Jul 2014 12:39:22 +0000 (20:39 +0800)]
inpcb: Bring back pcbinfo cpuid
Sepherosa Ziehau [Sun, 27 Jul 2014 13:06:10 +0000 (21:06 +0800)]
pf: Fix udbinfo settings
Sepherosa Ziehau [Sun, 27 Jul 2014 13:03:29 +0000 (21:03 +0800)]
ipfw: Fix udbinfo settings
Sepherosa Ziehau [Sun, 27 Jul 2014 13:00:45 +0000 (21:00 +0800)]
udp: Remove udbinfo_lock and udbinfo_barrier
Sepherosa Ziehau [Sun, 27 Jul 2014 12:46:54 +0000 (20:46 +0800)]
udp: Constfy parameters
Sepherosa Ziehau [Sun, 27 Jul 2014 12:38:40 +0000 (20:38 +0800)]
inpcb: Protect il_list
Sepherosa Ziehau [Sun, 27 Jul 2014 12:26:48 +0000 (20:26 +0800)]
in6pcb: Protect ic_list w/ token
Sepherosa Ziehau [Sun, 27 Jul 2014 11:59:10 +0000 (19:59 +0800)]
inpcb: Protect purgeif0
Sepherosa Ziehau [Sun, 27 Jul 2014 11:50:01 +0000 (19:50 +0800)]
inpcb: Protect notifyall
Sepherosa Ziehau [Sun, 27 Jul 2014 06:43:50 +0000 (14:43 +0800)]
udp: Fix udp_input udbinfo setting
Sepherosa Ziehau [Sun, 27 Jul 2014 06:38:27 +0000 (14:38 +0800)]
udp: Add assertion for multicast input check
Sepherosa Ziehau [Sun, 27 Jul 2014 06:32:23 +0000 (14:32 +0800)]
inpcb: Protect inpcb list by token
Sepherosa Ziehau [Sun, 27 Jul 2014 06:28:03 +0000 (14:28 +0800)]
inpcb: Reimplement in_pcblist_global
Sepherosa Ziehau [Sat, 26 Jul 2014 15:38:16 +0000 (23:38 +0800)]
tcp: No need to find gd
Sepherosa Ziehau [Sat, 26 Jul 2014 15:09:01 +0000 (23:09 +0800)]
udp: Fix udp_getcred
Sepherosa Ziehau [Sat, 26 Jul 2014 13:37:21 +0000 (21:37 +0800)]
udp: Remove inpcb from list first
Sepherosa Ziehau [Thu, 24 Jul 2014 13:34:35 +0000 (21:34 +0800)]
inpcb: Add onlist and offlist
Sepherosa Ziehau [Mon, 21 Jul 2014 13:05:37 +0000 (21:05 +0800)]
udp: Use inp directly
Sepherosa Ziehau [Mon, 21 Jul 2014 12:43:58 +0000 (20:43 +0800)]
inpcb: Add assertion
Sepherosa Ziehau [Mon, 21 Jul 2014 12:30:13 +0000 (20:30 +0800)]
udp: Add initport support
Sepherosa Ziehau [Mon, 21 Jul 2014 12:25:14 +0000 (20:25 +0800)]
udp: Remove netisr_cpuport(0) assertion
Sepherosa Ziehau [Mon, 21 Jul 2014 11:29:39 +0000 (19:29 +0800)]
udp: Handle one cpu case
Sepherosa Ziehau [Sun, 20 Jul 2014 14:02:44 +0000 (22:02 +0800)]
udp: Add comment
Sepherosa Ziehau [Sun, 20 Jul 2014 13:55:38 +0000 (21:55 +0800)]
udp: handler -> dispatch; add comment
Sepherosa Ziehau [Sun, 20 Jul 2014 13:40:43 +0000 (21:40 +0800)]
udp: Implement detach final stage
Sepherosa Ziehau [Sun, 20 Jul 2014 13:30:50 +0000 (21:30 +0800)]
udp: Implement detach oncpu handler
Sepherosa Ziehau [Mon, 14 Jul 2014 13:48:27 +0000 (21:48 +0800)]
udp: Add more comment
Sepherosa Ziehau [Mon, 14 Jul 2014 13:29:19 +0000 (21:29 +0800)]
inpcb: Fix pcbdetach
Sepherosa Ziehau [Tue, 8 Jul 2014 14:20:45 +0000 (22:20 +0800)]
udp: Don't put socket into wildcard, if it is being closed
Sepherosa Ziehau [Tue, 8 Jul 2014 14:13:29 +0000 (22:13 +0800)]
socket: Make socket is being closed in soclose()
Sepherosa Ziehau [Mon, 7 Jul 2014 14:23:23 +0000 (22:23 +0800)]
proto: Support EJUSTRETURN for pru_detach
If pru_detach returns EJUSTRETURN, then protocol will call sodiscard()
and sofree() for soclose()
Sepherosa Ziehau [Mon, 7 Jul 2014 12:54:47 +0000 (20:54 +0800)]
uipc: Return error from detach_direct
Sepherosa Ziehau [Sun, 6 Jul 2014 14:00:39 +0000 (22:00 +0800)]
udp: Strip blank line
Sepherosa Ziehau [Sun, 6 Jul 2014 13:30:33 +0000 (21:30 +0800)]
udp: If laddr is multicast, hash it to CPU0 too
Sepherosa Ziehau [Sun, 6 Jul 2014 13:27:58 +0000 (21:27 +0800)]
inpcb: Remove from connection hash then wipe faddr/fport
Sepherosa Ziehau [Sun, 6 Jul 2014 13:22:32 +0000 (21:22 +0800)]
udp: pru_abort should never be called
Sepherosa Ziehau [Sat, 5 Jul 2014 12:06:04 +0000 (20:06 +0800)]
udp: Properly remove wildcardhash
Sepherosa Ziehau [Sat, 5 Jul 2014 12:05:31 +0000 (20:05 +0800)]
inpcb: Protect remwildcardhash
Sepherosa Ziehau [Sat, 5 Jul 2014 11:11:11 +0000 (19:11 +0800)]
inpcb: Protect insconnhash and lookup_hash properly
Sepherosa Ziehau [Sat, 5 Jul 2014 11:00:44 +0000 (19:00 +0800)]
udp: Clean up upper half of udp_connect
Sepherosa Ziehau [Sat, 5 Jul 2014 10:51:39 +0000 (18:51 +0800)]
udp: Properly implement addrcpu
Sepherosa Ziehau [Sat, 5 Jul 2014 07:41:04 +0000 (15:41 +0800)]
udp: Add ktr for inswildcard dispatch
Sepherosa Ziehau [Sat, 5 Jul 2014 07:38:29 +0000 (15:38 +0800)]
udp: Unify wilcardhash insertion dispatch
Sepherosa Ziehau [Sat, 5 Jul 2014 07:25:11 +0000 (15:25 +0800)]
udp: Add comment
Sepherosa Ziehau [Sat, 5 Jul 2014 07:18:40 +0000 (15:18 +0800)]
udp: Fix up the auto-binding in udp_send
Sepherosa Ziehau [Sat, 5 Jul 2014 06:56:47 +0000 (14:56 +0800)]
inpcb/udp: Fix udp_disconnect()
Protect in_pcbremconnhash()
Sepherosa Ziehau [Sat, 5 Jul 2014 06:53:14 +0000 (14:53 +0800)]
inpcb: Add pcbinfo assertion macros
Sepherosa Ziehau [Sat, 5 Jul 2014 06:34:47 +0000 (14:34 +0800)]
udp: Always clear route cache if inpcb is to be inserted into wildcardhash
Sepherosa Ziehau [Sat, 5 Jul 2014 06:25:05 +0000 (14:25 +0800)]
inpcb/udp: Implement udp_inswildcardhash()
Protect inswildcardhash(), in_pcblink() and in_pcbunlink()
Sepherosa Ziehau [Fri, 4 Jul 2014 12:41:33 +0000 (20:41 +0800)]
inpcb/udp: Protect pcb list in in_pcballoc() properly for udp_attach()
Sepherosa Ziehau [Fri, 4 Jul 2014 12:31:00 +0000 (20:31 +0800)]
udp: Make pcbinfo per-cpu; currently only pcbinfo[0] is used
Sepherosa Ziehau [Thu, 3 Jul 2014 13:15:27 +0000 (21:15 +0800)]
pcbinfo: Add token allow pcbinfo to be shared
Justin C. Sherrill [Thu, 21 Aug 2014 06:02:05 +0000 (02:02 -0400)]
Move from dns/bind98 on install img/iso to dns/bind-tools.
BIND 9.8 is reaching EOL in a month. We don't need a full version of
BIND on the default install, since bind-tools provides dig/nslookup/host
and so on.
Markus Pfeiffer [Tue, 19 Aug 2014 21:28:53 +0000 (21:28 +0000)]
sys/subr_rman: fix some issues
Some bounds checks were off which lead to bad interactions with the
ram reservation code in nexus.
Markus Pfeiffer [Sun, 17 Aug 2014 15:48:16 +0000 (16:48 +0100)]
sys/platform/pc64: port the ram device from FreeBSD's nexus.c
Our kernel didn't reserve RAM in the IO manager, which lead to
mmaped IO from devices being mapped in the same address space,
most notably this lead to problems with the i915 driver, bug
Sascha Wildner [Wed, 20 Aug 2014 18:49:11 +0000 (20:49 +0200)]
kernel/ath: Add missing #ifdef ATH_DEBUG (fixes kernel build).
Reported-by: Robin Hahling <robin.hahling@gw-computing.net>
Sascha Wildner [Wed, 20 Aug 2014 18:45:30 +0000 (20:45 +0200)]
csh(1): Use iconv().
Dragonfly-bug: <http://bugs.dragonflybsd.org/issues/2704>
Reported-by: s4
Matthew Dillon [Wed, 20 Aug 2014 17:42:24 +0000 (10:42 -0700)]
ath - move kprintf() under debug variable
* Move an unconditional debugging kprintf() under a debug variable.
Matthew Dillon [Wed, 20 Aug 2014 17:34:14 +0000 (10:34 -0700)]
dhclient - Do not force-up wlan interfaces
* Do not force a wlan interface up, this may interfere with wpa_supplicant
operation.
* Increase the default timeout for waiting for the interface to become
active from 10 seconds to 30 seconds. wlan interfaces can take
considerably longer than 10 seconds to associate and dhclient operation
now detaches without waiting so the longer timeout will not interfere
with the boot sequence.
Matthew Dillon [Wed, 20 Aug 2014 17:04:09 +0000 (10:04 -0700)]
boot - don't wait for wpa_supplicant to associate
* Do not wait for wpa_supplicant to associate as doing so will prevent
the machine from finishing the boot sequence if there are no base stations
in range.
We can do this now because the new dhclient will not blow up.
Matthew Dillon [Wed, 20 Aug 2014 16:56:03 +0000 (09:56 -0700)]
dhclient - Adjust documentation
* Document how the pidfile works.
* Document that executing a dhclient on an interface which already has a
running dhclient will kill the old dhclient and replace it with a new
instance.
Matthew Dillon [Wed, 20 Aug 2014 16:54:46 +0000 (09:54 -0700)]
sendmail - pre-fork in daemon mode to avoid stall
* Fork sendmail prior to doing the hostname lookup when run in -bd or -q<time>
mode.
* Prevents stalls during system boot when the internet is not available and
a resolv.conf is present.
Sascha Wildner [Wed, 20 Aug 2014 16:10:14 +0000 (18:10 +0200)]
bsd-family-tree: Sync with FreeBSD (for various minor DragonFly releases).
Patch-by: Zach Crownover
Matthew Dillon [Wed, 20 Aug 2014 01:57:05 +0000 (18:57 -0700)]
dhclient - Add -x and -w and adjust rc scripts
* Add the -w option which prevents dhclient from exiting on interface
down. dhclient will sleep 10 seconds and retry, forever.
* Add the -x option which kills any running dhclient on the specified
interface.
* Adjust rc.d/dhclient to use the -x option to kill the dhclient instead
of taking down the interface (which no longer kills it), and also adjust
the default flags to pass -w.
Sascha Wildner [Tue, 19 Aug 2014 20:11:05 +0000 (22:11 +0200)]
pam/pam_unix: Sync function declaration and definition.
No functional change.
Taken-from: FreeBSD
Sascha Wildner [Tue, 19 Aug 2014 20:10:10 +0000 (22:10 +0200)]
libstand: Add a missing free() in an error path.
Sascha Wildner [Tue, 19 Aug 2014 20:09:23 +0000 (22:09 +0200)]
libc/locale: Remove a wrong comma in the monetary testcase.
Sascha Wildner [Tue, 19 Aug 2014 20:08:47 +0000 (22:08 +0200)]
libc/valloc(): Use posix_memalign().
Taken-from: FreeBSD
Matthew Dillon [Mon, 18 Aug 2014 21:04:44 +0000 (14:04 -0700)]
kernel - Add EVFILT_USER
* Bring in EVFILT_USER support from FreeBSD. Document the hacked use of
EV_CLEAR.
* Implemented a bit differently. Currently not implemented as another
filter callback. Instead we explicitly test for user_filtops, which
isn't as messy (at least until some other kqueue feature needs the 'touch'
interface).
Taken-From: FreeBSD
Matthew Dillon [Mon, 18 Aug 2014 07:55:09 +0000 (00:55 -0700)]
cyapa - attempt #2 to fix boot issue
* Previous fix didn't work. It appears that the trackpad can sometimes
loose its mind even after initializing ok, so instead of doing a load-time
fix we now check the status byte in the poll.
* If the poll status indicates that cyapa is not running the device will be
bootstrapped again.
* Also, when not running do not try to interpret remaining status fields
for input.
François Tigeot [Mon, 18 Aug 2014 06:34:57 +0000 (08:34 +0200)]
drm/i915: Sync ioctl definitions with Linux 3.8.13
Many ioctls are now unlocked.
Matthew Dillon [Mon, 18 Aug 2014 06:37:20 +0000 (23:37 -0700)]
cyapa - Implement power save mode, try to fix boot issue (Acer c720 chromebook)
* Implement power save mode when the pad hasn't been touched for 10 seconds.
Return to full power on any activity.
* Try to fix an issue when cyapa is loaded from /boot/loader.conf or built
into the kernel. For some reason cyapa polls that it isn't running but
we'd already gone through the bootstrap sequence and determined that it
was running. Why it stops is not known but it appears doing a status query
after init completion puts it in the right state.
Matthew Dillon [Mon, 18 Aug 2014 06:36:46 +0000 (23:36 -0700)]
dmesg - flush stdout before sleeping
* Flush output before sleeping when dmesg -f is specified.