From 4d6ad22f8d1db2ee42951b40139e498153de0124 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 17 Sep 2024 15:00:06 +0900 Subject: network: drop unnecessary BPF related objects from Manager when disabled --- src/network/networkd-manager.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/network/networkd-manager.h') diff --git a/src/network/networkd-manager.h b/src/network/networkd-manager.h index 9a310c2eab..05a86b6b58 100644 --- a/src/network/networkd-manager.h +++ b/src/network/networkd-manager.h @@ -122,12 +122,14 @@ struct Manager { /* sysctl */ int ip_forwarding[2]; +#if HAVE_VMLINUX_H Hashmap *sysctl_shadow; sd_event_source *sysctl_event_source; struct ring_buffer *sysctl_buffer; struct sysctl_monitor_bpf *sysctl_skel; struct bpf_link *sysctl_link; int cgroup_fd; +#endif }; int manager_new(Manager **ret, bool test_mode); -- cgit v1.2.3