Skip to content

Commit eff4ff1

Browse files
authored
Add DNS id and flags in query rsp even if the agent missed the request (#340)
Signed-off-by: Mohamed Mahmoud <[email protected]>
1 parent bf91cbe commit eff4ff1

File tree

5 files changed

+2
-2
lines changed

5 files changed

+2
-2
lines changed

bpf/dns_tracker.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ static __always_inline int track_dns_packet(struct __sk_buff *skb, pkt_info *pkt
9797
u64 *value = bpf_map_lookup_elem(&dns_flows, &dns_req);
9898
if (value != NULL) {
9999
pkt->dns_latency = ts - *value;
100-
pkt->dns_id = dns_id;
101-
pkt->dns_flags = flags;
102100
bpf_map_delete_elem(&dns_flows, &dns_req);
103101
}
102+
pkt->dns_id = dns_id;
103+
pkt->dns_flags = flags;
104104
} // end of dns response
105105
}
106106
return 0;

pkg/ebpf/bpf_arm64_bpfel.o

24 Bytes
Binary file not shown.

pkg/ebpf/bpf_powerpc_bpfel.o

24 Bytes
Binary file not shown.

pkg/ebpf/bpf_s390_bpfeb.o

24 Bytes
Binary file not shown.

pkg/ebpf/bpf_x86_bpfel.o

24 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)