This commit is contained in:
2025-02-05 20:02:34 +01:00
parent 6aa4b64a5a
commit 0872e2a6a7
5 changed files with 4 additions and 149988 deletions
BIN
View File
Binary file not shown.
+2 -2
View File
@@ -1,6 +1,6 @@
#!/usr/bin/sh
sudo bpftool btf dump file /sys/kernel/btf/vmlinux format c > src/vmlinux.h
#sudo bpftool btf dump file /sys/kernel/btf/vmlinux format c > src/vmlinux.h
make clean
make all && sudo ./dns-trace -i enx98e743c667fc
make all && sudo ./dns-trace -i wlp0s20f3
+2 -1
View File
@@ -313,7 +313,7 @@ int handle_event(void *ctx, void *data, size_t data_sz){
if (type == 5) { // -> CNAME
char cname[size];
get_labels(s_event->buf + pos, cname);
printf("%s ", cname);
printf("%s %d ", cname, ttl);
}
if (type == 28){ // -> AAAA
int p = 0;
@@ -327,6 +327,7 @@ int handle_event(void *ctx, void *data, size_t data_sz){
printf("%x", s_event->buf[pos + p++]);
}
}
printf(" %d ", ttl);
}
pos += size;
printf("\n");
Binary file not shown.
-149985
View File
File diff suppressed because it is too large Load Diff