Skip to content

bpf: add helper macros for LE/BE conversion

Peter Hutterer requested to merge whot/udev-hid-bpf:wip/endian-macros into main

BPF has bpf_htons and friends but those only work with data in Big Endian format. HID is little endian so we need our own macros.


Should figure out a test for those to make sure they actually work as advertised on BE

Merge request reports