summaryrefslogtreecommitdiffstats
path: root/sys/kern/exec_script.c
diff options
context:
space:
mode:
authorlandry <landry@openbsd.org>2018-05-01 18:14:46 +0000
committerlandry <landry@openbsd.org>2018-05-01 18:14:46 +0000
commit3936940265b9a3c60a7ea67294f0d650db7b2205 (patch)
treee95280f0c8f46b7b11f44807e67e2dd88287e40f /sys/kern/exec_script.c
parentThe -d flag should be a no-op in monitor mode since it does not modify (diff)
downloadwireguard-openbsd-3936940265b9a3c60a7ea67294f0d650db7b2205.tar.xz
wireguard-openbsd-3936940265b9a3c60a7ea67294f0d650db7b2205.zip
Simplify/refactor the way vendor/product/serial informations are
gathered from usb devices. Cache them early in usbd_new_device() instead of querying the device several times (the content wont change anyway) and uselessly generating usb traffic (which could conflict with other access..) The heuristic stays the same, first look in the device descriptor, then try to match against usb_known_vendors/usb_known_products, then fallback to use the idVendor/idProduct codes. Remove the now useless 'usedev' parameter from usbd_fill_deviceinfo(). Tested from bsd & bsd.rd. suggested by and ok mpi@
Diffstat (limited to 'sys/kern/exec_script.c')
0 files changed, 0 insertions, 0 deletions