diff --git a/bpf/flows.c b/bpf/flows.c index 3a53930c..9e05663d 100644 --- a/bpf/flows.c +++ b/bpf/flows.c @@ -160,7 +160,11 @@ static inline int flow_monitor(struct __sk_buff *skb, u8 direction) { if (extra_metrics != NULL) { add_observed_intf(extra_metrics, skb->ifindex, direction); } else { - additional_metrics new_metrics = {}; + additional_metrics new_metrics = { + .eth_protocol = eth_protocol, + .start_mono_time_ts = pkt.current_ts, + .end_mono_time_ts = pkt.current_ts, + }; add_observed_intf(&new_metrics, skb->ifindex, direction); long ret = bpf_map_update_elem(&additional_flow_metrics, &id, &new_metrics, BPF_NOEXIST); diff --git a/pkg/ebpf/bpf_arm64_bpfel.o b/pkg/ebpf/bpf_arm64_bpfel.o index 51f83ed5..bac9dfe3 100644 Binary files a/pkg/ebpf/bpf_arm64_bpfel.o and b/pkg/ebpf/bpf_arm64_bpfel.o differ diff --git a/pkg/ebpf/bpf_powerpc_bpfel.o b/pkg/ebpf/bpf_powerpc_bpfel.o index f995b994..28cf03e7 100644 Binary files a/pkg/ebpf/bpf_powerpc_bpfel.o and b/pkg/ebpf/bpf_powerpc_bpfel.o differ diff --git a/pkg/ebpf/bpf_s390_bpfeb.o b/pkg/ebpf/bpf_s390_bpfeb.o index 8a4b857d..947deb15 100644 Binary files a/pkg/ebpf/bpf_s390_bpfeb.o and b/pkg/ebpf/bpf_s390_bpfeb.o differ diff --git a/pkg/ebpf/bpf_x86_bpfel.o b/pkg/ebpf/bpf_x86_bpfel.o index beeb1965..db4acc04 100644 Binary files a/pkg/ebpf/bpf_x86_bpfel.o and b/pkg/ebpf/bpf_x86_bpfel.o differ