Skip to content
Snippets Groups Projects
Unverified Commit eff4ff17 authored by Mohamed S. Mahmoud's avatar Mohamed S. Mahmoud Committed by GitHub
Browse files

Add DNS id and flags in query rsp even if the agent missed the request (#340)

parent bf91cbef
No related branches found
No related tags found
No related merge requests found
......@@ -97,10 +97,10 @@ static __always_inline int track_dns_packet(struct __sk_buff *skb, pkt_info *pkt
u64 *value = bpf_map_lookup_elem(&dns_flows, &dns_req);
if (value != NULL) {
pkt->dns_latency = ts - *value;
pkt->dns_id = dns_id;
pkt->dns_flags = flags;
bpf_map_delete_elem(&dns_flows, &dns_req);
}
pkt->dns_id = dns_id;
pkt->dns_flags = flags;
} // end of dns response
}
return 0;
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment