OpenBSD cvs log

created 2018-12-03T16:24:17Z
begin 2018-11-12T00:00:00Z
end 2018-11-13T00:00:00Z
path src/sys
commits 11

date 2018-11-12T05:06:50Z
author guenther
files src/sys/arch/amd64/stand/libsa/exec_i386.c log diff annotate
message Fix grammar in comment

date 2018-11-12T06:35:37Z
author dlg
files src/sys/net/if_tun.c log diff annotate
message limit the number of interface units to the number of device minors

this prevents creation of tap and tun devices that you cannot open
from userland because of the limit on the number of dev_t minor

the lack of limit was pointed out by Greg Steuck
ok deraadt@ guenther@

date 2018-11-12T07:45:52Z
author claudio
files src/sys/kern/uipc_mbuf.c log diff annotate
src/sys/sys/mbuf.h log diff annotate
message Introduce m_align() a function that works like M_ALIGN() but works with
all types of mbufs. Also introduce some KASSERT in the m_*space() functions
to ensure that no negative number is returned. This also introduces two
internal macros M_SIZE() & M_DATABUF() which return the right size and start
pointer of the mbuf data area. Use it in a few obvious places to simplify code.
OK bluhm@

date 2018-11-12T09:39:52Z
author dlg
files src/sys/net/if_etherip.c log diff annotate
src/sys/net/if_gre.c log diff annotate
message set the hardmtu on ether encap ifs so the mtu can be raised above 1500

date 2018-11-12T15:09:17Z
author visa
files src/sys/kern/kern_exit.c log diff annotate
src/sys/kern/kern_fork.c log diff annotate
src/sys/kern/kern_proc.c log diff annotate
src/sys/kern/kern_sig.c log diff annotate
src/sys/sys/malloc.h log diff annotate
src/sys/sys/proc.h log diff annotate
src/sys/sys/sigio.h log diff annotate
src/sys/sys/signalvar.h log diff annotate
message Add a mechanism for managing asynchronous IO signal registrations.
It centralizes IO signal privilege checking and makes possible to revoke
a registration when the target process or process group is deleted.

Adapted from FreeBSD.

OK kettenis@ mpi@ guenther@

date 2018-11-12T16:33:08Z
author visa
files src/sys/kern/sys_pipe.c log diff annotate
src/sys/sys/pipe.h log diff annotate
message Utilize sigio with pipes. This makes fcntl(fd, F_SETOWN, arg) correctly
handle arg as a process ID if the value is positive and as a process
group ID if the value is negative. In addition, now the signal sending
checks privileges.

OK mpi@

date 2018-11-12T16:36:54Z
author krw
files src/sys/net/if.h log diff annotate
src/sys/net/route.h log diff annotate
src/sys/net/rtsock.c log diff annotate
src/sys/net80211/ieee80211_proto.c log diff annotate
message Add new routing socket message RTM_80211INFO to provide details of
802.11 interface state changes (e.g. SSID) to interested parties.

Original diff from phessler@. Many suggestions and tweaks from
claudio@, stsp@, anton@.

ok claudio@ stsp@ anton@ phessler@

date 2018-11-12T23:32:42Z
author dlg
files src/sys/sys/sockio.h log diff annotate
message add ioctl commands for the setting of prio fields in tx headers

this will be used by encap interfaces where their headers have
fields to store a priority, eg, the dot1p bit of vlan/svlan headers,
or the ip tos or tclass field int the outer ip header in gre, gif,
etherip, and vxlan.

ok claudio@

date 2018-11-12T23:34:48Z
author dlg
files src/sys/net/if.h log diff annotate
message add ifreq bits for the tx header prio field ioctls

a tx header prio can set to a fixed value from 0 to 7, or magic
values to represent populating the prio field from the encapsulated
packet, or from the mbuf prio value.

ok claudio@

date 2018-11-12T23:41:22Z
author dlg
files src/sys/net/if.c log diff annotate
message only let root configure the txprio setting on an interface

ok claudio@

date 2018-11-12T23:57:06Z
author dlg
files src/sys/net/if_etherip.c log diff annotate
message add txprio support

etherip puts the prio in the encapsulating ip header, and supports
using hardcoded prio values or the prio from the mbuf. it encapsulates
ethernet, which doesnt have a prio field unelss you parse the ether
payload, which is not worth it.

ok claudio@