Skip to content

Commit

Permalink
removed debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
ZerBea committed Dec 26, 2024
1 parent 6f52b97 commit 038130a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions hcxdumptool.c
Original file line number Diff line number Diff line change
Expand Up @@ -4077,11 +4077,13 @@ if(setsockopt(fd_socket_rx, SOL_PACKET, PACKET_IGNORE_OUTGOING, &enable, sizeof(
if(bpf.len > 0)
{
if(setsockopt(fd_socket_rx, SOL_SOCKET, SO_ATTACH_FILTER, &bpf, sizeof(bpf)) < 0)
fprintf(stderr, "failed to attach BPF (SO_ATTACH_FILTER): %s\n", strerror(errno));
#ifdef HCXDEBUG
fprintf(fh_debug, "SO_ATTACH_FILTER failed: %s\n", strerror(errno));
#endif
return false;
{
fprintf(stderr, "failed to attach BPF (SO_ATTACH_FILTER): %s\n", strerror(errno));
#ifdef HCXDEBUG
fprintf(fh_debug, "SO_ATTACH_FILTER failed: %s\n", strerror(errno));
#endif
return false;
}
}
memset(&saddr, 0, sizeof(saddr));
saddr.sll_family = PF_PACKET;
Expand Down

0 comments on commit 038130a

Please sign in to comment.