OpenBSD cvs log

created 2019-05-08T06:14:47Z
begin 2018-02-12T00:00:00Z
end 2018-02-13T00:00:00Z
path src/sys
commits 9

date 2018-02-12T00:07:53Z
author dlg
files src/sys/net/if_gre.c log diff annotate
message dont handle SIOCSIFRDOMAIN twice, egre isn't supposed to filter it.

date 2018-02-12T00:09:39Z
author dlg
files src/sys/net/if_etherip.c log diff annotate
message ; ends c statements, not ;;

date 2018-02-12T00:59:28Z
author mlarkin
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message Typo in a comment (CR$_VMXE instead of CR4_VMXE). No functional change.

date 2018-02-12T01:43:42Z
author dlg
files src/sys/net/if_etherip.c log diff annotate
message restore the previous semantics wrt if up, tunnel, and address config.

our network drivers have a feature where if you configure an address
on the interface, it implicitly brings the interface up. i changed
etherip so you could only change the tunnel configuration while it
down, but maintained the implicit up behaviour. bringing the tunnel
up also relied on having valid configuration, ie, tunnel addreses
must be configured otherwise up will fail.

this means people who have address config in their hostname.etherip
files before config for the tunnel addresses will have problems.
firstly, the address wont be configured because falling through to
the interface up fails because the tunnel isnt configured correctly,
and that error makes the address config roll back. secondly, config
that relies on configuring the address to bring the interface up
will fail because there's no explicit up after the tunnel config.

this diff rolls the tunnel config back to keeping the interface on
a list, and allowing config at any time. the caveat to this is that
it makes mpsafety hard because inconsistent intermediate states are
visible when packets are being processed.

date 2018-02-12T02:33:50Z
author dlg
files src/sys/net/if_mobileip.c log diff annotate
message use a mobileip_tunnel struct to represent the interfaces tunnel info.

this avoids allocating a mobileip_softc on the stack to build a key
for looking up interfaces with on packet input. struct ifnet inside
mobileip_softc is "quite large", and may blow the 2k limit one day.

date 2018-02-12T02:55:40Z
author dlg
files src/sys/net/if_mobileip.c log diff annotate
message restore the previous semantics wrt if up, tunnel, and address config.

this is a port of the change made to if_etherip.c r1.35 to allow
addresses to be configured before the tunnel is configured.

date 2018-02-12T03:15:32Z
author dlg
files src/sys/net/if_gre.c log diff annotate
message restore the previous semantics wrt if up, tunnel, and address config.

this is a port of the change made to if_etherip.c r1.35 to allow
addresses to be configured before the tunnel is configured.

this rollback is particularly annoying on gre with keepalives.
keepalives rely on the interface rdomain and tunnel rdomain to be
the same, which the rolled back semantics checked. now it is possible
to create an invalid configuration and not get any feedback about
it.

date 2018-02-12T03:30:24Z
author dlg
files src/sys/net/if_gif.c log diff annotate
message restore the previous semantics wrt if up, tunnel, and address config.

this is a port of the change made to if_etherip.c r1.35 to allow
addresses to be configured before the tunnel is configured.

date 2018-02-12T15:53:05Z
author mpi
files src/sys/netinet6/ip6_input.c log diff annotate
message Use IP6_SOIIKEY_LEN instead of hardcoded value.

from semarie@, ok benno@