diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2019-06-26 09:36:07 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2019-06-26 09:36:07 +0000 |
commit | 7d3b42fe3d303d3935bff26ff897bc8679959905 (patch) | |
tree | 0a3a671082e8e17c1034ec4e96fdcc934179da87 /sys/dev/usb/if_umb.c | |
parent | 0c4497620792c3589cacbf1d3a4abe901217bb06 (diff) |
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@
Diffstat (limited to 'sys/dev/usb/if_umb.c')
-rw-r--r-- | sys/dev/usb/if_umb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/if_umb.c b/sys/dev/usb/if_umb.c index 3faedd2244a..b4c507c5744 100644 --- a/sys/dev/usb/if_umb.c +++ b/sys/dev/usb/if_umb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_umb.c,v 1.22 2019/01/14 13:35:41 feinerer Exp $ */ +/* $OpenBSD: if_umb.c,v 1.23 2019/06/26 09:36:06 claudio Exp $ */ /* * Copyright (c) 2016 genua mbH @@ -502,6 +502,7 @@ umb_attach(struct device *parent, struct device *self, void *aux) ifp->if_link_state = LINK_STATE_DOWN; ifp->if_type = IFT_MBIM; + ifp->if_priority = IF_WWAN_DEFAULT_PRIORITY; ifp->if_addrlen = 0; ifp->if_hdrlen = sizeof (struct ncm_header16) + sizeof (struct ncm_pointer16); |