Searched refs:bpf_stmt (Results 1 – 1 of 1) sorted by relevance
/systemd-251/src/libsystemd/sd-device/ |
D | device-monitor.c | 629 static void bpf_stmt(struct sock_filter *ins, unsigned *i, in bpf_stmt() function 667 bpf_stmt(ins, &i, BPF_LD|BPF_W|BPF_ABS, offsetof(monitor_netlink_header, magic)); in sd_device_monitor_filter_update() 671 bpf_stmt(ins, &i, BPF_RET|BPF_K, 0xffffffff); in sd_device_monitor_filter_update() 683 … bpf_stmt(ins, &i, BPF_LD|BPF_W|BPF_ABS, offsetof(monitor_netlink_header, filter_tag_bloom_hi)); in sd_device_monitor_filter_update() 685 bpf_stmt(ins, &i, BPF_ALU|BPF_AND|BPF_K, tag_bloom_hi); in sd_device_monitor_filter_update() 690 … bpf_stmt(ins, &i, BPF_LD|BPF_W|BPF_ABS, offsetof(monitor_netlink_header, filter_tag_bloom_lo)); in sd_device_monitor_filter_update() 692 bpf_stmt(ins, &i, BPF_ALU|BPF_AND|BPF_K, tag_bloom_lo); in sd_device_monitor_filter_update() 699 bpf_stmt(ins, &i, BPF_RET|BPF_K, 0); in sd_device_monitor_filter_update() 708 … bpf_stmt(ins, &i, BPF_LD|BPF_W|BPF_ABS, offsetof(monitor_netlink_header, filter_subsystem_hash)); in sd_device_monitor_filter_update() 716 … bpf_stmt(ins, &i, BPF_LD|BPF_W|BPF_ABS, offsetof(monitor_netlink_header, filter_devtype_hash)); in sd_device_monitor_filter_update() [all …]
|