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

Unsupported Packet socket and Socket Filtering(when trying to run dhcpd) #1628

Open
crashtua opened this Issue Jan 21, 2017 · 5 comments

Comments

Projects
None yet
4 participants
@crashtua

crashtua commented Jan 21, 2017

  • A brief description
    Trying to start isc-dhpc-server results in messages about unsupported Packet socket and Socket Filtering
  • Expected results
    Everything working fine and dhcp-server giving ips to clients
  • Actual results (with terminal output if applicable)
    Internet Systems Consortium DHCP Server 4.3.3
    Copyright 2004-2015 Internet Systems Consortium.
    All rights reserved.
    For info, please visit https://www.isc.org/software/dhcp/
    Config file: /etc/dhcp/dhcpd.conf
    Database file: /var/lib/dhcp/dhcpd.leases
    PID file: /var/run/dhcpd.pid
    Wrote 0 leases to leases file.
    socket: Address family not supported by protocol - make sure
    CONFIG_PACKET (Packet socket) and CONFIG_FILTER
    (Socket Filtering) are enabled in your kernel
    configuration!
  • Your Windows build number
    15014
  • Steps / All commands required to reproduce the error from a brand new installation
    -- run bash as Administrator
    -- create subnet in dhcpd.conf for your adapter
    -- run dhcpd eth0
  • Strace of the failing command
    http://pastebin.com/DmiTxGAx
@therealkenc

This comment has been minimized.

Show comment
Hide comment
@therealkenc

therealkenc Jan 22, 2017

Collaborator
...
socket(PF_PACKET, SOCK_RAW, 768)        = -1 
    EAFNOSUPPORT (Address family not supported by protocol)
...

#1515 (message)

Collaborator

therealkenc commented Jan 22, 2017

...
socket(PF_PACKET, SOCK_RAW, 768)        = -1 
    EAFNOSUPPORT (Address family not supported by protocol)
...

#1515 (message)

@sunilmut

This comment has been minimized.

Show comment
Hide comment
@sunilmut

sunilmut Jan 23, 2017

Member

Thanks, @crashtua for the post and @therealkenc for the diagnosis. Yes, currently, WSL does not has support for AF_PACKET address family. If you can open a user voice ticket for this, it will help us prioritize it.

Member

sunilmut commented Jan 23, 2017

Thanks, @crashtua for the post and @therealkenc for the diagnosis. Yes, currently, WSL does not has support for AF_PACKET address family. If you can open a user voice ticket for this, it will help us prioritize it.

@gpotter2

gpotter2 commented Jan 23, 2017

@sunilmut

This comment has been minimized.

Show comment
Hide comment
@sunilmut

sunilmut Jan 23, 2017

Member

@gpotter2 - Thanks for opening the user voice ticket. Just FYI that SOCK_RAW is currently supported for RAW, UDP and ICMP(V6) protocols. TCP can follow without much problem. So, I would restrict the user voice ticket for AF_PACKET and also add what applications are dependent on it. Now, let's get some votes behind it.

Member

sunilmut commented Jan 23, 2017

@gpotter2 - Thanks for opening the user voice ticket. Just FYI that SOCK_RAW is currently supported for RAW, UDP and ICMP(V6) protocols. TCP can follow without much problem. So, I would restrict the user voice ticket for AF_PACKET and also add what applications are dependent on it. Now, let's get some votes behind it.

@gpotter2

This comment has been minimized.

Show comment
Hide comment
@gpotter2

gpotter2 commented Jan 23, 2017

@sunilmut Edited :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment