Skip to content

Commit

Permalink
DNS: drop support of DNS over TCP (#1908)
Browse files Browse the repository at this point in the history
DNS over TCP support dropped until fully implemented.
  • Loading branch information
roikol authored Jul 3, 2022
1 parent 086afec commit 549e411
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions pkg/ebpf/c/tracee.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -5518,10 +5518,16 @@ static __always_inline void set_net_event_id(net_packet_t *pkt)
DNS = 53,
};

if (pkt->dst_port == DNS)
pkt->event_id = DNS_REQUEST;
if (pkt->src_port == DNS)
pkt->event_id = DNS_RESPONSE;
switch (pkt->protocol) {
case IPPROTO_UDP:
if (pkt->dst_port == DNS)
pkt->event_id = DNS_REQUEST;
if (pkt->src_port == DNS)
pkt->event_id = DNS_RESPONSE;
break;
default:
pkt->event_id = NET_PACKET;
}
}

// some network events might need payload (even without capture)
Expand Down

0 comments on commit 549e411

Please sign in to comment.