forked from xdp-project/xdp-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xdp-dns: fix XDP DNS program byte reverse
user space program reverse 4ebpf2io to oi2fpbe4 and insert the domain_denylist map, but XDP program reverse 4ebpf2io to oi2pfbe4 where 'pf' is not reversed this result in no match and ebpf.io not blocked from chatgpt: " The issue with your reverse_string function lies in the range you're using for the loop. You're not reversing the full string, which is why you're seeing some characters (like pf) in the wrong order after reversal. The loop is only running up to (len - 1) / 2, but this should run for the entire len / 2. You also need to ensure you're reversing the string with the correct length and handling the null terminator appropriately if present. "
- Loading branch information
1 parent
ba86f38
commit 6f886b6
Showing
3 changed files
with
11 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters