Skip to content

Commit

Permalink
working dns map write
Browse files Browse the repository at this point in the history
  • Loading branch information
r-caamano committed Dec 5, 2023
1 parent f769850 commit 440ab3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zfw_xdp_dns_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ int xdp_filter(struct xdp_md *ctx) {
}
}
long ret = set_dns(i, dns_payload);
if (ret < 0){
if (ret > 0){
bpf_printk("wrote %d characters", ret);
}
dns_payload = (dns_payload + dns_name_len + 4);
Expand Down

0 comments on commit 440ab3f

Please sign in to comment.