History log of /openbsd-src/sys/dev/usb/if_umb.c (Results 26 – 50 of 59)
Revision Date Author Comments
# 5edbfb72 04-May-2020 gerhard <gerhard@openbsd.org>

Check v6 availablilty mask instead of v4.

go for it deraadt@


# 24784047 27-Apr-2020 gerhard <gerhard@openbsd.org>

IPv6 is no longer on by default. It must be enabled with "inet6 eui64".

Input from sthen@, ok claudio@


# e61a622d 18-Feb-2020 gerhard <gerhard@openbsd.org>

Add IPv6 support to umb(4).

ok job@ bluhm@ claudio@

job@ tested with 'telnet -6 towel.blinkenlights.nl' on Fibocom L831-EAU on
IIJ MIO's network (Japan), with 'inet6 autoconf' in /etc/hostname.umb0.


# bb907956 26-Nov-2019 claudio <claudio@openbsd.org>

When there is no network around the state timeout fires over and over again.
Change the printf into a log and only under IFF_DEBUG to reduce dmesg spam.
Loudly requested by beck@ OK deraadt@


# b9417f81 24-Nov-2019 claudio <claudio@openbsd.org>

Add umb_rtrequest() to handle RTM_PROPOSAL events and send back the
DNS proposals in that case. Also clear the DNS proposals when the
interface is deconfigured (e.g. when going down).
OK florian@


# 927514d1 22-Nov-2019 claudio <claudio@openbsd.org>

Use rtm_proposal() to send out DNS updates. Both when DNS are added and
when the interface is deconfigured (when going down).


# 9db0ea45 10-Oct-2019 claudio <claudio@openbsd.org>

Only set the IPv4 address in umb(4) if both MBIM_IPCONF_HAS_ADDRINFO and
MBIM_IPCONF_HAS_GWINFO are available. Configuring umb(4) without gateway
wont work the system needs a destination address for

Only set the IPv4 address in umb(4) if both MBIM_IPCONF_HAS_ADDRINFO and
MBIM_IPCONF_HAS_GWINFO are available. Configuring umb(4) without gateway
wont work the system needs a destination address for the interface.
Problem found by jsg@.
OK jsg@ deraadt@

show more ...


# 0a65a506 03-Oct-2019 claudio <claudio@openbsd.org>

Switch the bpf of umb(4) from DTL_RAW to DTL_LOOP. DTL_RAW is limited to
ip only whereas DTL_LOOP passes the address family of the packet and so
supports more address families.

To make this work umb

Switch the bpf of umb(4) from DTL_RAW to DTL_LOOP. DTL_RAW is limited to
ip only whereas DTL_LOOP passes the address family of the packet and so
supports more address families.

To make this work umb_decap() prepends the AF to the packet and which is
consumed then by umb_input(). Similar umb_output() sets ph_family in the
mbuf header which is used by umb_start().
OK deraadt@ dlg@

show more ...


# 8e1b6e16 29-Sep-2019 deraadt <deraadt@openbsd.org>

turn the success paths of FCC registration into debug prints. The
(unlikely) failure path remains noisy.
discussed with claudio


# 38644a32 27-Sep-2019 claudio <claudio@openbsd.org>

Make umb(4) add a default route when configuring the interface. This route
has a lower priority than wifi or wired LAN and so should only be used when
no other interface is available. With this using

Make umb(4) add a default route when configuring the interface. This route
has a lower priority than wifi or wired LAN and so should only be used when
no other interface is available. With this using umb(4) becomes less painful
Now ifconfig umb0 up will be enough especially if unwind(8) is used to handle
DNS requests.
OK deraadt@ job@ benno@

show more ...


# 99980cd5 26-Aug-2019 claudio <claudio@openbsd.org>

Replace umb_ntop() with sockaddr_ntop() which does almost the same thing.
Also change the storage type for the DNS addresses to struct in_addr since
that is more convinient for userland. This include

Replace umb_ntop() with sockaddr_ntop() which does almost the same thing.
Also change the storage type for the DNS addresses to struct in_addr since
that is more convinient for userland. This includes some minor other cleanup.
OK gerhard@

show more ...


# 3e948aa8 26-Jun-2019 claudio <claudio@openbsd.org>

Create IF_WWAN_DEFAULT_PRIORITY which is lower than
IF_WIRELESS_DEFAULT_PRIORITY and use it in umb(4) as default prio.
OK kettenis@, sthen@


# e1355ac5 14-Jan-2019 feinerer <feinerer@openbsd.org>

Fix typos

ok sthen@


# 947e4ccc 02-Oct-2018 stsp <stsp@openbsd.org>

Make some USB ioctls return ENXIO, instead of EIO, if usbd_is_dying().
Brings us one step closer towards making this condition's error code
consistent across all USB drivers.
Patch by Moritz Buhl
ok

Make some USB ioctls return ENXIO, instead of EIO, if usbd_is_dying().
Brings us one step closer towards making this condition's error code
consistent across all USB drivers.
Patch by Moritz Buhl
ok mpi@ bluhm@

show more ...


# cb3b09a7 10-Sep-2018 gerhard <gerhard@openbsd.org>

Prevent a panic in umb(4) when roaming is diabled.

Found by beck@, tested and ok by bluhm@


# 19223f69 30-Apr-2018 tb <tb@openbsd.org>

Reduce the scope of the NET_LOCK() in in_control(). Two functions were
protected: mrt_ioctl() and in_ioctl(). The former has no other callers
and only needs a read lock. The latter will need refactor

Reduce the scope of the NET_LOCK() in in_control(). Two functions were
protected: mrt_ioctl() and in_ioctl(). The former has no other callers
and only needs a read lock. The latter will need refactoring to reduce
the lock's scope further. In a first step, establish a single exit point
and protect most of the function body with the NET_LOCK() while removing
the NET_LOCK() from a handful of callers.

suggested by & ok mpi, ok visa

show more ...


# 3e676399 19-Feb-2018 mpi <mpi@openbsd.org>

Remove almost unused `flags' argument of suser().

The account flag `ASU' will no longer be set but that makes suser()
mpsafe since it no longer mess with a per-process field.

No objection from mill

Remove almost unused `flags' argument of suser().

The account flag `ASU' will no longer be set but that makes suser()
mpsafe since it no longer mess with a per-process field.

No objection from millert@, ok tedu@, bluhm@

show more ...


# 80fba7d9 23-Oct-2017 gerhard <gerhard@openbsd.org>

Even if a USB transfer fails, call umb_start() so that processing
of the if_snd queue doesn't stall.

ok stsp@


# 1dfd4e87 20-Oct-2017 mpi <mpi@openbsd.org>

Kill dead ioctl handlers.

SIOCGIF{HARD,}MTU are handled by ifioctl() and not passed down to
drivers.

ok visa@


# aa28b9a6 11-Aug-2017 mpi <mpi@openbsd.org>

Remove NET_LOCK()'s argument.

Tested by Hrvoje Popovski, ok bluhm@


# 3f9b99ee 30-May-2017 mpi <mpi@openbsd.org>

Introduce ipv{4,6}_input(), two wrappers around IP queues.

This will help transitionning to an un-KERNEL_LOCK()ed IP
forwarding path.

Disucssed with bluhm@, ok claudio@


# 39f937bf 18-May-2017 bluhm <bluhm@openbsd.org>

Grab the netlock in umb_state_task() and umb_decode_ip_configuration()
when calling in_ioctl(). These ioctls modify the routing table,
which is global. So they need the lock.
Found with Zaur Molotn

Grab the netlock in umb_state_task() and umb_decode_ip_configuration()
when calling in_ioctl(). These ioctls modify the routing table,
which is global. So they need the lock.
Found with Zaur Molotnikov's static lock analyzer.
OK gerhard@ mpi@

show more ...


# a82e3121 03-May-2017 gerhard <gerhard@openbsd.org>

Byte order of IP addresses was broken on big endian machines.
MBIM already uses network byte order for IP addresses, so just
use them as they are.

ok stsp@, deraadt@


# ccb704bc 18-Apr-2017 gerhard <gerhard@openbsd.org>

Support packet aggregation for umb(4) on tx.

tested by bluhm@, ststp@ and Bryan Vyhmeister.
ok bluhm@ ststp@


# 560e3f2a 08-Mar-2017 mpi <mpi@openbsd.org>

Do not clear IFF_UP, even in the error path.

This flag should only be set by the stack, drivers shouldn't
mess with it.

Discussed with dlg@ and mikeb@, ok gerhard@


123