path: root/utils/keytable/bpf_protocols/grundig.c
diff options
authorSean Young <sean@mess.org>2018-05-20 21:10:47 +0100
committerSean Young <sean@mess.org>2018-08-13 10:15:52 +0100
commitd6025b0e8c7f57b0f9390f987acc5eed57360d80 (patch)
tree1922f486adc601bbc198aa67fbc7aef81361a4d4 /utils/keytable/bpf_protocols/grundig.c
parent83062bda386de80f6bcf86da83ec490678b66081 (diff)
keytable: add support for BPF based protocols
We use a modified version of samples/bpf/bpf_load.c from the linux kernel tree to load elf based BPF protocols and display the BPF program names. Any global int variables can be overrided from the command line. The immediate values are patched in the BPF LD instructions. Write a BPF protocol decoder in C, and compile with: clang -O2 -c --target=bpf foo.c Now you can load the object file like so: ir-keytable -p foo.o -v Any parameters can be specified using -e name=value. Signed-off-by: Sean Young <sean@mess.org>
Diffstat (limited to 'utils/keytable/bpf_protocols/grundig.c')
0 files changed, 0 insertions, 0 deletions

Privacy Policy