aboutsummaryrefslogtreecommitdiffstats
path: root/src/fnettrace-dns/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fnettrace-dns/main.c')
-rw-r--r--src/fnettrace-dns/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fnettrace-dns/main.c b/src/fnettrace-dns/main.c
index 60738147d..64feec5fe 100644
--- a/src/fnettrace-dns/main.c
+++ b/src/fnettrace-dns/main.c
@@ -124,7 +124,7 @@ static void print_date(void) {
124 124
125static void run_trace(void) { 125static void run_trace(void) {
126 // grab all Ethernet packets and use a custom BPF filter to get only UDP from source port 53 126 // grab all Ethernet packets and use a custom BPF filter to get only UDP from source port 53
127 int s = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); 127 int s = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
128 if (s < 0) 128 if (s < 0)
129 errExit("socket"); 129 errExit("socket");
130 custom_bpf(s); 130 custom_bpf(s);