strace/xlat/skf_ad.in
Dmitry V. Levin bc515c7f54 Implement decoding of linux socket filter programs
* bpf_sock_filter.c: New file.
* Makefile.am (strace_SOURCES): Add it.
* xlat/skf_ad.in: New file.
* defs.h (decode_sock_fprog, print_sock_fprog): New prototypes.
* fetch_bpf_fprog.c (get_bpf_fprog_size): New mpers printer.
* net.c (print_getsockopt): Use decode_sock_fprog to print
socket filter programs for SO_GET_FILTER socket option.
(print_setsockopt): Use decode_sock_fprog and get_bpf_fprog_size
to print socket filter programs for SO_ATTACH_FILTER
and SO_ATTACH_REUSEPORT_CBPF socket options.
* NEWS: Mention this.
2017-07-08 14:57:44 +00:00

17 lines
297 B
Plaintext

SKF_AD_PROTOCOL 0
SKF_AD_PKTTYPE 4
SKF_AD_IFINDEX 8
SKF_AD_NLATTR 12
SKF_AD_NLATTR_NEST 16
SKF_AD_MARK 20
SKF_AD_QUEUE 24
SKF_AD_HATYPE 28
SKF_AD_RXHASH 32
SKF_AD_CPU 36
SKF_AD_ALU_XOR_X 40
SKF_AD_VLAN_TAG 44
SKF_AD_VLAN_TAG_PRESENT 48
SKF_AD_PAY_OFFSET 52
SKF_AD_RANDOM 56
SKF_AD_VLAN_TPID 60