| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
go for it deraadt@
|
| |
|
|
| |
Input from sthen@, ok claudio@
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
Change the printf into a log and only under IFF_DEBUG to reduce dmesg spam.
Loudly requested by beck@ OK deraadt@
|
| |
|
|
|
|
| |
DNS proposals in that case. Also clear the DNS proposals when the
interface is deconfigured (e.g. when going down).
OK florian@
|
| |
|
|
| |
when the interface is deconfigured (when going down).
|
| |
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
|
|
|
|
| |
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@
|
| |
|
|
|
| |
(unlikely) failure path remains noisy.
discussed with claudio
|
| |
|
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
| |
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@
|
| |
|
|
|
| |
IF_WIRELESS_DEFAULT_PRIORITY and use it in umb(4) as default prio.
OK kettenis@, sthen@
|
| |
|
|
| |
ok sthen@
|
| |
|
|
|
|
|
| |
Brings us one step closer towards making this condition's error code
consistent across all USB drivers.
Patch by Moritz Buhl
ok mpi@ bluhm@
|
| |
|
|
| |
Found by beck@, tested and ok by bluhm@
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
| |
of the if_snd queue doesn't stall.
ok stsp@
|
| |
|
|
|
|
|
| |
SIOCGIF{HARD,}MTU are handled by ifioctl() and not passed down to
drivers.
ok visa@
|
| |
|
|
| |
Tested by Hrvoje Popovski, ok bluhm@
|
| |
|
|
|
|
|
| |
This will help transitionning to an un-KERNEL_LOCK()ed IP
forwarding path.
Disucssed with bluhm@, ok claudio@
|
| |
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
|
| |
MBIM already uses network byte order for IP addresses, so just
use them as they are.
ok stsp@, deraadt@
|
| |
|
|
|
| |
tested by bluhm@, ststp@ and Bryan Vyhmeister.
ok bluhm@ ststp@
|
| |
|
|
|
|
|
| |
This flag should only be set by the stack, drivers shouldn't
mess with it.
Discussed with dlg@ and mikeb@, ok gerhard@
|
| |
|
|
|
|
|
| |
this means packets are consistently counted in one place, unlike the
many and various ways that drivers thought they should do it.
ok mpi@ deraadt@
|
| |
|
|
|
|
|
|
|
|
|
|
| |
transfer. Using wMaxSegmentSize for bulk-in could break the rx-path
because xfer length can be smaller than the messages sent by the device.
And using some constant value for rx/tx size is also a bad idea, because
we might be sending messages to the device that are too big for it to
handle them. Therefore use the NCM GET_NTB_PARAMETERS request to query
the device's configuration.
Found, tested, and ok'ed by otto@
|
| |
|
|
|
|
|
|
| |
turn on the radio. This is done by encapsulating QMI requests inside
a MBIM message.
Based on prio work by sthen@, tested by Bryan Vyhmeister.
ok sthen@
|
| |
|
|
|
|
|
| |
the next datagram is zero.
Tested by otto@
ok mpi@ kettnis@ otto@
|
| |
|
|
|
|
|
| |
of assuming tha the NCM pointer will follow immediately after the header.
Tested by Bryan Vyhmeister and Otte Moerbeek
ok otto
|
| |
|
|
| |
OK mikeb@
|
| |
|
|
| |
ok mpi deraadt gerhard
|
| |
|
|
|
|
| |
both NCM 1.0 and MBIM.
ok gerhard@
|
|
|
The umb(4) driver provides support for USB MBIM devices.
Those devices establish connections via celluar networks such as
GPRS, UMTS, and LTE.
ok mpi@ sthen@
additional feedback from deraadt@ jmc@ stsp@ kettenis@
|