Skip to content

Commit

Permalink
rename shadowing variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jotak committed Nov 29, 2024
1 parent 6ae9015 commit ce4a279
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bpf/flows.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ static inline int flow_monitor(struct __sk_buff *skb, u8 direction) {
} else {
// Only add info that we've seen this interface
// TODO: should we merge DNS info? TCP flags?
additional_metrics *aggregate_flow =
additional_metrics *extra_metrics =
(additional_metrics *)bpf_map_lookup_elem(&additional_flow_metrics, &id);
if (aggregate_flow != NULL) {
add_observed_intf(aggregate_flow, skb->ifindex, direction);
if (extra_metrics != NULL) {
add_observed_intf(extra_metrics, skb->ifindex, direction);
} else {
additional_metrics new_metrics = {};
add_observed_intf(&new_metrics, skb->ifindex, direction);
Expand Down
Binary file modified pkg/ebpf/bpf_arm64_bpfel.o
Binary file not shown.
Binary file modified pkg/ebpf/bpf_powerpc_bpfel.o
Binary file not shown.
Binary file modified pkg/ebpf/bpf_s390_bpfeb.o
Binary file not shown.
Binary file modified pkg/ebpf/bpf_x86_bpfel.o
Binary file not shown.

0 comments on commit ce4a279

Please sign in to comment.