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

arping fails with error 'Address family not supported by protocol' #2538

Closed
DavidA2014 opened this issue Oct 3, 2017 · 17 comments
Closed

arping fails with error 'Address family not supported by protocol' #2538

DavidA2014 opened this issue Oct 3, 2017 · 17 comments

Comments

@DavidA2014
Copy link

DavidA2014 commented Oct 3, 2017

  • Your Windows build number: 10.0.15063

From bash (run as administrator :

$ sudo apt install arping
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo arping 192.168.1.1
arping: libnet_init(LIBNET_LINK, eth1): socket: Address family not supported by protocol

also arp -d does not work:

$ sudo arp -d 192.168.1.1
SIOCDARP(dontpub): Invalid argument
@ThomasHabets
Copy link

Does Windows support raw sockets nowadays?

@Yay295
Copy link

Yay295 commented Oct 25, 2017

I can confirm this still fails after the Fall Creators Update.

@PalmerCurling
Copy link

PalmerCurling commented Mar 9, 2018

Still failing 3/9/2018.

sudo arping -i eth0 d0:50:99:38:d1:7a
arping: libnet_init(LIBNET_LINK, eth0): socket: Address family not supported by protocol

@ThomasHabets
Copy link

Please don't use middle-endian date format. ISO8601/RFC3339 are unambiguous. If you really hate proper date formats then spell out the month name. 95% of the world will misread US date formats.

For posterity: That was 2018-03-09.

@therealkenc
Copy link
Collaborator

For posterity, the date is right beside his name. Also for posterity, an 18 trillion dollar economy does not care what RFC3339 says. If 95% of the world can't figure out when that was posted, I have my doubts on 95% of the world's powers of deductive reasoning. Concede you might be right on that point, though. Also posted on 9/3/18.

@ThomasHabets
Copy link

@therealkenc hello troll.

@Alysko
Copy link

Alysko commented Mar 14, 2018

Same with etherwake and many others. Very sad :'(

@Yay295
Copy link

Yay295 commented May 3, 2018

Still fails after the April update (Redstone 4).

$ sudo arping 192.168.1.1
arping: lookup dev: No matching interface found using getifaddrs().
arping: Unable to automatically find interface to use. Is it on the local LAN?
arping: Use -i to manually specify interface. Guessing interface wifi0.
arping: libnet_init(LIBNET_LINK, wifi0): socket: Address family not supported by protocol

@Philipnah
Copy link

still doesn't work in january 2019!

@ThomasHabets
Copy link

ThomasHabets commented Jan 10, 2019

I (arping author) don't code on Windows. I'll very happily accept patches or documentation for how to get it working, but I'm not going to work on it.

@Biswa96
Copy link

Biswa96 commented Jan 27, 2019

@ThomasHabets Your program is OK. The issue in the kernel mode drive aka. LxCore.sys. The event tracing shows Function:LxpSocketGetDispatchTable Line:1148 Message:Socket: Unsupported socket family:17, where 17 is AF_PACKET. LxCore has only 1, 2, 10, 16 socket protocol family/domain.

Hence we've to wait until MS add that socket family.

@tsk1996
Copy link

tsk1996 commented Jul 10, 2019

Hi Guys,
I am experiencing a similar issue while using arpspoof . https://github.com/tsk1996/Arpspoof/issues/1#issue-466398714
Error:
root@TS:/home/user# arpspoof
arpspoof: socket: Address family not supported by protocol

So isn't there a proper solution for this?

@Biswa96
Copy link

Biswa96 commented Jul 12, 2019

Workaround: WSL2 (aka. the Linux kernel) supports that socket family AF_PACKET (17).

@akorb akorb mentioned this issue May 15, 2020
7 tasks
@AXShoshan
Copy link

still doesn't work in 2020 ):

@therealkenc
Copy link
Collaborator

image

@Yay295
Copy link

Yay295 commented Jun 12, 2020

therealkenc strikes again...

@cbesot
Copy link

cbesot commented Jun 12, 2020

forget wsl! Use wsl2 (windows >= 2004).

@microsoft microsoft deleted a comment from comodoro Aug 18, 2020
@microsoft microsoft locked and limited conversation to collaborators Aug 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests