openbsd
11 years agoadopt existing altq regress to queueing changes; queuespecs for altq use
henning [Sat, 12 Oct 2013 12:18:44 +0000 (12:18 +0000)]
adopt existing altq regress to queueing changes; queuespecs for altq use
"oldqueue" as keyword for the transition phase

11 years agoadopt to queueing changes
henning [Sat, 12 Oct 2013 12:17:32 +0000 (12:17 +0000)]
adopt to queueing changes

11 years agoconfig bits for the bandwidth shaping part of the new queueing subsystem
henning [Sat, 12 Oct 2013 12:16:10 +0000 (12:16 +0000)]
config bits for the bandwidth shaping part of the new queueing subsystem
syntax worked out with many in ljubljana using a whiteboard, testing &
looking over by many, ok phessler sthen

11 years agonew bandwidth shaping subsystem, kernel side
henning [Sat, 12 Oct 2013 12:13:10 +0000 (12:13 +0000)]
new bandwidth shaping subsystem, kernel side
uses hfsc behind the scenes; altq stays in parallel for a migration phase.
if.h even more messy for the transition, but eventuelly it should become
readable...
looked over & tested by many, ok phessler sthen

11 years agohook in hfsc.c/h
henning [Sat, 12 Oct 2013 12:02:03 +0000 (12:02 +0000)]
hook in hfsc.c/h
looked over & tested by many, ok phessler sthen

11 years agogive tagname2tag and its siblings an extra "create" parameter. if 1, it
henning [Sat, 12 Oct 2013 11:55:45 +0000 (11:55 +0000)]
give tagname2tag and its siblings an extra "create" parameter. if 1, it
behaves like before and creates the mapping if needed. if 0, lookup only.
looked over by many, ok phessler sthen

11 years agostandalone hfsc implementation with new interface to the consumers, for
henning [Sat, 12 Oct 2013 11:39:17 +0000 (11:39 +0000)]
standalone hfsc implementation with new interface to the consumers, for
the new bandwidth shaping subsystem. looked over & tested by many,
ok phessler sthen

11 years agoWhen converting an ELF file, create a dummy non-empty (8 byte) .data section,
miod [Fri, 11 Oct 2013 22:31:24 +0000 (22:31 +0000)]
When converting an ELF file, create a dummy non-empty (8 byte) .data section,
for older PROM will fail to load BCS binaries with only a .text section,
and will also fail to load an empty .data section.

Tested on AV4300.

11 years agosync
deraadt [Fri, 11 Oct 2013 20:38:28 +0000 (20:38 +0000)]
sync

11 years agotedu regress/usr.bin/pcc
lteo [Fri, 11 Oct 2013 20:21:59 +0000 (20:21 +0000)]
tedu regress/usr.bin/pcc

ok deraadt

11 years agoimprove ntpctl argv parsing
deraadt [Fri, 11 Oct 2013 19:33:20 +0000 (19:33 +0000)]
improve ntpctl argv parsing

11 years agoAdd initial RTL8106E and RTL8168G/8111G support.
jsg [Fri, 11 Oct 2013 14:00:18 +0000 (14:00 +0000)]
Add initial RTL8106E and RTL8168G/8111G support.
An earlier version didn't seem to work on a machine bmercer@
had access to a few months ago but this seems to work
with the onboard Ethernet in an ASUS Z87 board RD Thrush has.

11 years agopoll(2) on a closed tty should return POLLIN|POLLHUP in revents
millert [Fri, 11 Oct 2013 12:44:12 +0000 (12:44 +0000)]
poll(2) on a closed tty should return POLLIN|POLLHUP in revents
when events is set to POLLIN and POLLHUP when events is set to
POLLOUT.  In the pty case we need to be careful to only treat the
pty as closed if carrier is on.  This fixes a hang on close problem
seen with ssh and xterm.

11 years agoPrevent non-data packets from being dropped.
gerhard [Fri, 11 Oct 2013 10:58:42 +0000 (10:58 +0000)]
Prevent non-data packets from being dropped.

ok bluhm@ mikeb@

11 years agoDon't leak file descriptors in the rare MSG_VERSION case. From Chris
nicm [Fri, 11 Oct 2013 08:07:12 +0000 (08:07 +0000)]
Don't leak file descriptors in the rare MSG_VERSION case. From Chris
Johnsen.

11 years agoRemove stray return, from Chris Johnsen.
nicm [Fri, 11 Oct 2013 08:06:03 +0000 (08:06 +0000)]
Remove stray return, from Chris Johnsen.

11 years agoAnd get it right this time... don't leak if it is an empty string either.
nicm [Fri, 11 Oct 2013 08:03:43 +0000 (08:03 +0000)]
And get it right this time... don't leak if it is an empty string either.

11 years agoDon't free the pane name by accident.
nicm [Fri, 11 Oct 2013 08:01:29 +0000 (08:01 +0000)]
Don't free the pane name by accident.

11 years agomatch Intel 8 Series SMBus (Lynx Point and Lynx Point-LP)
jsg [Fri, 11 Oct 2013 07:34:49 +0000 (07:34 +0000)]
match Intel 8 Series SMBus (Lynx Point and Lynx Point-LP)
tested by RD Thrush on Lynx Point

11 years agoobsolete comment
djm [Fri, 11 Oct 2013 02:53:45 +0000 (02:53 +0000)]
obsolete comment

11 years agomissed one arg reorder
djm [Fri, 11 Oct 2013 02:52:23 +0000 (02:52 +0000)]
missed one arg reorder

11 years agorename flag arguments to be more clear and consistent.
djm [Fri, 11 Oct 2013 02:45:36 +0000 (02:45 +0000)]
rename flag arguments to be more clear and consistent.
reorder some internal function arguments to make adding additional flags
easier.

no functional change

11 years agoreference vmwpvs.
dlg [Fri, 11 Oct 2013 00:34:04 +0000 (00:34 +0000)]
reference vmwpvs.

jmc pointed out i missed this

11 years agoBracket in the wrong place in description of c0-change-trigger.
nicm [Thu, 10 Oct 2013 23:31:28 +0000 (23:31 +0000)]
Bracket in the wrong place in description of c0-change-trigger.

11 years agoFix leak in format_get_command.
nicm [Thu, 10 Oct 2013 23:31:03 +0000 (23:31 +0000)]
Fix leak in format_get_command.

11 years agoBetter boot device detection code. Board-specific code will now return the
miod [Thu, 10 Oct 2013 21:24:58 +0000 (21:24 +0000)]
Better boot device detection code. Board-specific code will now return the
address of a controller only know by its SCM name and number, and the boot
device detection code will now attempt to match the controller first, and
then grandchildren of it (if the boot device is a disk or a tape).

11 years agoMisc cleanups and small fixes. Boot controller/unit/lun information passed
miod [Thu, 10 Oct 2013 21:22:06 +0000 (21:22 +0000)]
Misc cleanups and small fixes. Boot controller/unit/lun information passed
to the kernel will now match the device the kernel is loaded from, not the
device the boot blocks are loaded from (this allows one to netboot the
boot blocks to boot a kernel from a local disk).

11 years agoAdd edma driver. This driver add support for am335x edma3 controller.
syl [Thu, 10 Oct 2013 19:40:02 +0000 (19:40 +0000)]
Add edma driver. This driver add support for am335x edma3 controller.

With some more work, it will allow us to speed-up ommmc driver.

ok patrick@.

11 years agoRemove the KERN_PROC_CWD the proc_current_path format (which is the only
nicm [Thu, 10 Oct 2013 12:39:24 +0000 (12:39 +0000)]
Remove the KERN_PROC_CWD the proc_current_path format (which is the only
thing that uses it now).

11 years agoUse format_get_command() and some spacing tweaks.
nicm [Thu, 10 Oct 2013 12:35:30 +0000 (12:35 +0000)]
Use format_get_command() and some spacing tweaks.

11 years agoPass -1 for cwd now not NULL.
nicm [Thu, 10 Oct 2013 12:29:53 +0000 (12:29 +0000)]
Pass -1 for cwd now not NULL.

11 years agoWe accidentally haven't been using $TMUX to work out the session for a
nicm [Thu, 10 Oct 2013 12:29:35 +0000 (12:29 +0000)]
We accidentally haven't been using $TMUX to work out the session for a
while and in fact it is less useful that using the client ttyname. So
don't bother and don't pass it from the client. If we need it in future
it is in c->environ.

11 years agoRemove now unused cmd_get_default_path.
nicm [Thu, 10 Oct 2013 12:28:56 +0000 (12:28 +0000)]
Remove now unused cmd_get_default_path.

11 years agoDon't boke when figuring out working directory from configuration file.
nicm [Thu, 10 Oct 2013 12:28:38 +0000 (12:28 +0000)]
Don't boke when figuring out working directory from configuration file.

11 years agoShow session name in detached message. Requested by somebody a few
nicm [Thu, 10 Oct 2013 12:28:08 +0000 (12:28 +0000)]
Show session name in detached message. Requested by somebody a few
months ago who didn't bother testing it. But it works for me anyway.

11 years agoDon't look at string[length - 1] if length == 0.
nicm [Thu, 10 Oct 2013 12:27:38 +0000 (12:27 +0000)]
Don't look at string[length - 1] if length == 0.

11 years agoAlter how tmux handles the working directory to internally use file
nicm [Thu, 10 Oct 2013 12:26:34 +0000 (12:26 +0000)]
Alter how tmux handles the working directory to internally use file
descriptors rather than strings.

- Each session still has a current working directory.

- New sessions still get their working directory from the client that
  created them or its attached session if any.

- New windows are created by default in the session working directory.

- The -c flag to new, neww, splitw allows the working directory to be
  overridden.

- The -c flag to attach let's the session working directory be changed.

- The default-path option has been removed.

To get the equivalent to default-path '.', do:

        bind c neww -c $PWD

To get the equivalent of default-path '~', do:

        bind c neww -c ~

This also changes the client identify protocol to be a set of messages rather
than one as well as some other changes that should make it easier to make
backwards-compatible protocol changes in future.

11 years agoMake tilde expansion in command strings work even if it isn't terminated by /.
nicm [Thu, 10 Oct 2013 12:14:09 +0000 (12:14 +0000)]
Make tilde expansion in command strings work even if it isn't terminated by /.

11 years agoSimilarly for MSG_COMMAND - allow full imsg limit not arbitrary 2048.
nicm [Thu, 10 Oct 2013 12:13:56 +0000 (12:13 +0000)]
Similarly for MSG_COMMAND - allow full imsg limit not arbitrary 2048.

11 years agoInstead of fixed size buffers for some messages, send only the string
nicm [Thu, 10 Oct 2013 12:13:29 +0000 (12:13 +0000)]
Instead of fixed size buffers for some messages, send only the string
length.

11 years agoretcode -> retval for exit message.
nicm [Thu, 10 Oct 2013 12:12:54 +0000 (12:12 +0000)]
retcode -> retval for exit message.

11 years agoMerge IDENTIFY_* flags with CLIENT_* flags.
nicm [Thu, 10 Oct 2013 12:12:08 +0000 (12:12 +0000)]
Merge IDENTIFY_* flags with CLIENT_* flags.

11 years agoBump protocol version and add new message types.
nicm [Thu, 10 Oct 2013 12:11:45 +0000 (12:11 +0000)]
Bump protocol version and add new message types.

11 years agoRemove CMD_SENDENVIRON.
nicm [Thu, 10 Oct 2013 12:09:34 +0000 (12:09 +0000)]
Remove CMD_SENDENVIRON.

11 years agomouse-resize-pane: Only resize on border select
nicm [Thu, 10 Oct 2013 12:08:14 +0000 (12:08 +0000)]
mouse-resize-pane: Only resize on border select

The current behaviour of mouse-resize-pane is such that if the mouse
button is held down and a selection takes place within a pane, that if
the mouse pointer then hits a border edge, that pane-resize would
initiate.

This seems counter-intuitive; instead, check for a resize condition if
the border of a pane is selected, and in the case of mouse selection
within a pane, no longer resize the pane if edge of the border is hit.

By Thomas Adam.

11 years agoSupport -c for new-session, based on code from J Raynor.
nicm [Thu, 10 Oct 2013 12:07:36 +0000 (12:07 +0000)]
Support -c for new-session, based on code from J Raynor.

11 years agoMake cmdq->client_exit a tristate (-1 means "not set") so that if
nicm [Thu, 10 Oct 2013 12:04:38 +0000 (12:04 +0000)]
Make cmdq->client_exit a tristate (-1 means "not set") so that if
explicitly set it can be copied from child to parent cmdq by if-shell
and source-file. This fixes using attach or new. From Chris Johnsen.

11 years agoRestore missing key binding for %, from Chris Johnsen.
nicm [Thu, 10 Oct 2013 12:04:13 +0000 (12:04 +0000)]
Restore missing key binding for %, from Chris Johnsen.

11 years agoFirst period not last for host_short, from Michael Scholz.
nicm [Thu, 10 Oct 2013 12:04:01 +0000 (12:04 +0000)]
First period not last for host_short, from Michael Scholz.

11 years agolayout-resize-pane-mouse: Consider visible panes only
nicm [Thu, 10 Oct 2013 12:03:46 +0000 (12:03 +0000)]
layout-resize-pane-mouse: Consider visible panes only

When a pane is maximized, and text is selected, we end up checking if a
pane switch is needed.  This therefore means we might end up selecting
panes which aren't visible.

By Thomas Adam.

11 years agoDon't treat TMUX_TMPDIR as a potential file
nicm [Thu, 10 Oct 2013 12:03:22 +0000 (12:03 +0000)]
Don't treat TMUX_TMPDIR as a potential file

The point of setting TMUX_TMPDIR is to then make any labels from -L go
to that directory.  In the case of makesocketpath() with no TMUX_TMPDIR
set, would set both the path and the default socket to a file.  The
checking of the permissions on the file worked fine in that case, but
when TMUX_TMPDIR is set, won't work on a directory.

This fixes the problem by ensuring the check on the permissions is
performed on directories only.

By Thomas Adam.

11 years agoMark flags as optional and mutually exclusive. From Tiago Cunha.
nicm [Thu, 10 Oct 2013 12:02:55 +0000 (12:02 +0000)]
Mark flags as optional and mutually exclusive. From Tiago Cunha.

11 years agoNo space in lsw -a targets.
nicm [Thu, 10 Oct 2013 12:02:24 +0000 (12:02 +0000)]
No space in lsw -a targets.

11 years agoA couple of manpage fixes from Tiago Cunha.
nicm [Thu, 10 Oct 2013 12:01:51 +0000 (12:01 +0000)]
A couple of manpage fixes from Tiago Cunha.

11 years agoTrivial style and spacing nits.
nicm [Thu, 10 Oct 2013 12:01:14 +0000 (12:01 +0000)]
Trivial style and spacing nits.

11 years agoRemove the barely-used and unnecessary command check() function.
nicm [Thu, 10 Oct 2013 12:00:18 +0000 (12:00 +0000)]
Remove the barely-used and unnecessary command check() function.

11 years agoClear window->flags when clearing winlinks
nicm [Thu, 10 Oct 2013 11:59:23 +0000 (11:59 +0000)]
Clear window->flags when clearing winlinks

When clearing WINLINK_ALERTFLAGS for all sessions, we must also, for
that window, clear the window->flags as well, otherwise sessions may
well still see flags for winlinks long since cleared.

This therefore introduces WINDOW_ALERTFLAGS to help with this.

11 years agochoose-tree: Reset top when toggling items
nicm [Thu, 10 Oct 2013 11:58:52 +0000 (11:58 +0000)]
choose-tree: Reset top when toggling items

When choose-tree is told to expand/collapse items (especially when first
rendering collapsed to just show sessions), ensure that in addition to
setting the selected item, that the item itself appears on the bottom of
the screen, rather than off screen.

This was causing rendering glitches when a very small tmux window tried
to render a list of items in choose-tree much larger than itself, and
the selected item appeared off screen, and didn't show the selection
until the selection had wrapped around to the top of the screen.

11 years agoRenumber windows: Lookup lastw via window not index
nicm [Thu, 10 Oct 2013 11:58:24 +0000 (11:58 +0000)]
Renumber windows: Lookup lastw via window not index

When calling 'movew -r' on a session to reorder the winlinks, ensure
when adding back in the information for the lastw stack that we look up
the winlink based on the window and not its index.

Using the index doesn't make sense here because when comparing it to the
old set, it will never match since the winlink has been renumbered.

Bug reported by Ben Boeckel. Patch by Thomas Adam.

11 years agoAssign mouse x/y coords before checking them. When receiving mouse
nicm [Thu, 10 Oct 2013 11:57:52 +0000 (11:57 +0000)]
Assign mouse x/y coords before checking them. When receiving mouse
inputs, we should set the x/y coordinates earlier than we currently do,
so that we aren't off-by-one in the case when the statusbar is at the
top of the screen. By Thomas Adam.

11 years agoAccept multiple parameters to SM/RM/DECSET/DECRST, based on a diff from
nicm [Thu, 10 Oct 2013 11:57:14 +0000 (11:57 +0000)]
Accept multiple parameters to SM/RM/DECSET/DECRST, based on a diff from
Hayaki Saito.

11 years agoAdd automatic-rename-format option allowing automatic rename to use
nicm [Thu, 10 Oct 2013 11:56:50 +0000 (11:56 +0000)]
Add automatic-rename-format option allowing automatic rename to use
something other than pane_current_command.

11 years agoAllow nested format expansion.
nicm [Thu, 10 Oct 2013 11:50:36 +0000 (11:50 +0000)]
Allow nested format expansion.

11 years agoAdd length limit operator for formats.
nicm [Thu, 10 Oct 2013 11:50:20 +0000 (11:50 +0000)]
Add length limit operator for formats.

11 years agoHandle input mouse positions <33 (we already can generate them).
nicm [Thu, 10 Oct 2013 11:49:42 +0000 (11:49 +0000)]
Handle input mouse positions <33 (we already can generate them).

11 years agoOnly include actual trailing spaces not unused cells with capturep -J,
nicm [Thu, 10 Oct 2013 11:49:29 +0000 (11:49 +0000)]
Only include actual trailing spaces not unused cells with capturep -J,
from George Nachman.

11 years agoAllow the file descriptor received from the client to be -1.
nicm [Thu, 10 Oct 2013 11:49:07 +0000 (11:49 +0000)]
Allow the file descriptor received from the client to be -1.

11 years agoAdd formats for window flags.
nicm [Thu, 10 Oct 2013 11:47:52 +0000 (11:47 +0000)]
Add formats for window flags.

11 years agoDon't leak formats if they are added multiple times.
nicm [Thu, 10 Oct 2013 11:47:28 +0000 (11:47 +0000)]
Don't leak formats if they are added multiple times.

11 years agoDon't add client formats when they are NULL.
nicm [Thu, 10 Oct 2013 11:47:11 +0000 (11:47 +0000)]
Don't add client formats when they are NULL.

11 years agoMissing space in refresh-client synopsis.
nicm [Thu, 10 Oct 2013 11:46:47 +0000 (11:46 +0000)]
Missing space in refresh-client synopsis.

11 years agoGrouped sessions were being leaked on destroy, correctly free them.
nicm [Thu, 10 Oct 2013 11:46:28 +0000 (11:46 +0000)]
Grouped sessions were being leaked on destroy, correctly free them.

11 years agoMake recalculate_sizes() handle an empty window with no active
nicm [Thu, 10 Oct 2013 11:46:00 +0000 (11:46 +0000)]
Make recalculate_sizes() handle an empty window with no active
pane. This can happen when a window is in two sessions - it isn't
destroyed immediately when the pane goes away but is left until the last
session is destroyed. Fixes problems with grouped sessions reported by
Daniel Ralston.

11 years agoPass flags into cmdq_guard as an argument since sometimes cmdq->cmd can
nicm [Thu, 10 Oct 2013 11:45:28 +0000 (11:45 +0000)]
Pass flags into cmdq_guard as an argument since sometimes cmdq->cmd can
be NULL. Avoids crash when a command in a command client can't be
parsed.

11 years agoA few fixes from Pedro Martelletto, adapted from
espie [Thu, 10 Oct 2013 11:00:28 +0000 (11:00 +0000)]
A few fixes from Pedro Martelletto, adapted from
https://github.com/bitrig/bitrig/commits/pedro_tmpfs_fixes

7efd381ac3:

# mkdir -p x/y
# mv x/y/. z (or mv x/y/.. z)
(panic)

264ecd2c7b:

# mknod x b 100 100 (can be any block/character device)
# ls -lR /
(panic)

7da08d22fd:

# mkfifo x (or mknod x)
# mv x y
(panic)

af0666c65a:

# mount -t tmpfs -o -n16 tmpfs /mnt (create tmpfs with 16 inodes limit)
# cd /mnt
# touch x
# for i in `jot 100 1 100`; do ln -s x $i; done (create 100 symlinks, =
they "succeed" even though they failed)
# ls -lart

7e9296a6f8:

# mkdir x
# touch x/y
# chflags uappnd x (or sappnd)
# rm x/y

936b9cf257:

# mkdir -p x/y
# rmdir x/y/..
(panic)

de541406ef:

# touch x
# ln x y
# stat -f %c x
# sleep 10
# rm y
# stat -f %c x

okay guenther@, krw@

11 years agoRegenerate moduli
dtucker [Thu, 10 Oct 2013 01:46:57 +0000 (01:46 +0000)]
Regenerate moduli

11 years agobz#2139: fix re-exec fallback by ensuring that startup_pipe is correctly
djm [Thu, 10 Oct 2013 01:43:03 +0000 (01:43 +0000)]
bz#2139: fix re-exec fallback by ensuring that startup_pipe is correctly
updated; ok dtucker@

11 years agoMove moduli generation to usr.bin/ssh/moduli-gen and keep track of
dtucker [Thu, 10 Oct 2013 00:59:18 +0000 (00:59 +0000)]
Move moduli generation to usr.bin/ssh/moduli-gen and keep track of
the fragments separately.  "No substantive objection" djm@

11 years agoadd -Q, -P and -p to usage() before jmc@ catches me
djm [Thu, 10 Oct 2013 00:53:25 +0000 (00:53 +0000)]
add -Q, -P and -p to usage() before jmc@ catches me

11 years agoregression test for sftp request white/blacklisting and readonly mode.
djm [Wed, 9 Oct 2013 23:44:14 +0000 (23:44 +0000)]
regression test for sftp request white/blacklisting and readonly mode.

11 years agoAdd ability to whitelist and/or blacklist sftp protocol requests by name.
djm [Wed, 9 Oct 2013 23:42:17 +0000 (23:42 +0000)]
Add ability to whitelist and/or blacklist sftp protocol requests by name.
Refactor dispatch loop and consolidate read-only mode checks.
Make global variables static, since sftp-server is linked into sshd(8).

ok dtucker@

11 years agoQuick'n'dirty code to match trivial on-disk boot paths as the boot device.
miod [Wed, 9 Oct 2013 21:28:33 +0000 (21:28 +0000)]
Quick'n'dirty code to match trivial on-disk boot paths as the boot device.
Needs more work in order to cover all cases, but enough to get internal
disks on the first controller on models 4600 and 530 to get matched.

This makes the aviion port finally self-hosting on aforementioned models,
finally! Next step: bsd.rd...

11 years agoNeeded by recent libsa
miod [Wed, 9 Oct 2013 21:26:02 +0000 (21:26 +0000)]
Needed by recent libsa

11 years agoChange "physical address" to "tunnel:" in ifconfig's tunnel address
reyk [Wed, 9 Oct 2013 20:23:46 +0000 (20:23 +0000)]
Change "physical address" to "tunnel:" in ifconfig's tunnel address
output.  This is more consistent with the current ifconfig style and
matches the "tunnel" configuration command.

ok claudio@ jmc@ deraadt@

11 years agoDIsplay fixes, also print boot path before attempting to boot it. Still not
miod [Wed, 9 Oct 2013 20:12:35 +0000 (20:12 +0000)]
DIsplay fixes, also print boot path before attempting to boot it. Still not
cranking boot blocks version because it's unlikely anyone but me is running
them at the moment.

11 years agoParse (hex) partition number in boot path. For experts only.
miod [Wed, 9 Oct 2013 20:11:41 +0000 (20:11 +0000)]
Parse (hex) partition number in boot path. For experts only.

11 years agoFix build (forgot to rerun make depend)
miod [Wed, 9 Oct 2013 20:08:20 +0000 (20:08 +0000)]
Fix build (forgot to rerun make depend)

11 years agoFix parse_args() to ignore device specification and correctly append the
miod [Wed, 9 Oct 2013 20:04:39 +0000 (20:04 +0000)]
Fix parse_args() to ignore device specification and correctly append the
default kernel name if only a boot device is specified.
This makes boot paths like "sd()" auto-boot without asking for a kernel name.

11 years agoMove common SCSI defines and structs to their own header, to eventually allow
miod [Wed, 9 Oct 2013 20:03:05 +0000 (20:03 +0000)]
Move common SCSI defines and structs to their own header, to eventually allow
SCSI tape support.

Drop sync negotiation from oosiop code, we can run without it.

11 years agoMerge binutils 2.15 einfo() buffering change to binutils-2.17.
millert [Wed, 9 Oct 2013 19:13:18 +0000 (19:13 +0000)]
Merge binutils 2.15 einfo() buffering change to binutils-2.17.
OK deraadt@ miod@

11 years agoEnable synch negotiation; code was there but not enabled since this driver was
miod [Wed, 9 Oct 2013 18:22:06 +0000 (18:22 +0000)]
Enable synch negotiation; code was there but not enabled since this driver was
ported from NetBSD.
Tested on hppa (720) and aviion (4600).

11 years agoVarious fixes to make kiic(4) work on my G5s.
mpi [Wed, 9 Oct 2013 17:53:29 +0000 (17:53 +0000)]
Various fixes to make kiic(4) work on my G5s.

Only read the bus number from the "i2c-bus" child node if present,
this node exists only in some device-trees, otherwise use the bus
number encoded in the address of the device.

Fix an off-by-one when reading the data.

While here remove unused functions.

11 years agoInitialize ns_per_tick as soon as we have read the timebase from the
mpi [Wed, 9 Oct 2013 17:43:50 +0000 (17:43 +0000)]
Initialize ns_per_tick as soon as we have read the timebase from the
device-tree to restore the behaviour present before my last change.

This fixes a regression seen on some Powerbooks where one of the two
kiic(4) would always timeout when trying to configure the audio chip.

11 years agoTrim leading white space from the message before trying to extract
millert [Wed, 9 Oct 2013 16:33:05 +0000 (16:33 +0000)]
Trim leading white space from the message before trying to extract
the program name.  Works around a problem with the ObiHai 202's
syslog client (and possibly others) where an extra space is added
to the message before the program name.  OK krw@ henning@ deraadt@

11 years agotweak previous;
jmc [Wed, 9 Oct 2013 13:23:17 +0000 (13:23 +0000)]
tweak previous;

11 years agoshorten output; ok henning phessler
deraadt [Wed, 9 Oct 2013 12:34:12 +0000 (12:34 +0000)]
shorten output; ok henning phessler

11 years agoFix a possible mbuf leak, from NetBSD via Loganaden Velvindron.
mpi [Wed, 9 Oct 2013 09:44:19 +0000 (09:44 +0000)]
Fix a possible mbuf leak, from NetBSD via Loganaden Velvindron.

ok claudio@, henning@

11 years agoInclude the 'state of health' field in the bbu ok sensor value.
jmatthew [Wed, 9 Oct 2013 09:40:01 +0000 (09:40 +0000)]
Include the 'state of health' field in the bbu ok sensor value.
The dell perc 6/i sets this to zero (meaning bad) when it
decides the battery doesn't have enough capacity for it to
allow write back mode, but doesn't set any of the other flags
to tell us why.

ok dlg@, tested by sthen@

11 years agoIntroduce in_ifdetach() a function to remove all the IPv4 addresses
mpi [Wed, 9 Oct 2013 09:33:42 +0000 (09:33 +0000)]
Introduce in_ifdetach() a function to remove all the IPv4 addresses
of an interface, named after its IPv6 equivalent.

Make use of it instead of removing addresses by hand when detaching
or destroying an interface.  As a bonus, multicast records linked
to the just divorced^Wdetached interface are no longer leaked.

No objection from the gang, ok mikeb@

11 years agoDon't leak ruleitems from match rules when hitting a per-rule max state limit.
camield [Wed, 9 Oct 2013 09:32:01 +0000 (09:32 +0000)]
Don't leak ruleitems from match rules when hitting a per-rule max state limit.

ok henning