bpf: fix device type filter
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 10 Nov 2019 12:13:31 +0000 (13:13 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 11 Nov 2019 13:55:57 +0000 (14:55 +0100)
commit415fe5ec7d38db5e8e0b97c68e462734f543ad17
treeb65980f4c38c825b4671de2a26aff26790e8a11e
parent786cce009978a7f7ffd7cdff45a3339c373077d6
bpf: fix device type filter

On big endian arches, we were taking the wrong half-word, so the check
was giving bogus results.

https://bugzilla.redhat.com/show_bug.cgi?id=1769148.
src/core/bpf-devices.c