Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hcxdumptool wont compile on kali (issue includes kludge fix) #197

Closed
stuartw1 opened this issue Aug 11, 2022 · 2 comments · Fixed by #206
Closed

hcxdumptool wont compile on kali (issue includes kludge fix) #197

stuartw1 opened this issue Aug 11, 2022 · 2 comments · Fixed by #206

Comments

@stuartw1
Copy link

Newest kali won't compile hcxdumptool as supplied


[*] Compiling hcxdumptool...

cc -O3 -Wall -Wextra -std=gnu99 -o hcxdumptool hcxdumptool.c -lpthread
hcxdumptool.c: In function ‘processpackets’:
hcxdumptool.c:3098:37: error: ‘SIOCGSTAMP’ undeclared (first use in this function); did you mean ‘SIOCGARP’?
3098 | if(ioctl(fd_socket, SIOCGSTAMP , &tv) < 0)
| ^~~~~~~~~~
| SIOCGARP
hcxdumptool.c:3098:37: note: each undeclared identifier is reported only once for each function it appears in
hcxdumptool.c: In function ‘processrcascan’:
hcxdumptool.c:3401:37: error: ‘SIOCGSTAMP’ undeclared (first use in this function); did you mean ‘SIOCGARP’?
3401 | if(ioctl(fd_socket, SIOCGSTAMP , &tv) < 0)
| ^~~~~~~~~~
| SIOCGARP
make: *** [Makefile:29: build] Error 1


this can be fixed quickly (but maybe not the correct way) by adding the following to ./local/hcxdumptool/hcxdumptool.c in the includes section

#include <linux/sockios.h>

the file should now compile without errors

@stuartw1
Copy link
Author

I was about to create a pull request, but has been done already in #196

@s0lst1c3
Copy link
Owner

s0lst1c3 commented Oct 7, 2023

Resolved 1.14.0

@s0lst1c3 s0lst1c3 closed this as completed Oct 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants