Skip to content

Commit

Permalink
don't validate the zero bit in the DNS header
Browse files Browse the repository at this point in the history
  • Loading branch information
def committed May 30, 2024
1 parent 34a94ef commit 67ccce0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
16 changes: 8 additions & 8 deletions ebpftracer/ebpf.go

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions ebpftracer/ebpf/l7/dns.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ int is_dns_response(char *buf, __u64 buf_size, __s16 *stream_id, __u32 *status)
if (h.bits0 & DNS_OPCODE) {
return 0;
}
if ((h.bits1 & DNS_Z)) {
return 0;
}
h.qdcount = bpf_ntohs(h.qdcount);
if (h.qdcount != 1) {
return 0;
Expand Down

0 comments on commit 67ccce0

Please sign in to comment.