qca / open-plc-utils

Qualcomm Atheros Open Powerline Toolkit.
Other
351 stars 154 forks source link

Use Ubuntu18.07LTS system, error“program: eth1: Address family not supported by protocol” #143

Closed zgb526642524 closed 3 years ago

zgb526642524 commented 3 years ago

Use Ubuntu18.07LTS system, error“program: eth1: Address family not supported by protocol”.

Ask for help, wait for your reply.

Thank you!!!

n1000 commented 3 years ago

Hi @zgb526642524, which Linux kernel are you running? Is it a customized kernel build?

I think the error you are seeing may be because the "CONFIG_PACKET" option is not enabled in your Linux kernel build. On the Linux platform, open-plc-utils uses the AF_PACKET / PF_PACKET interface for sending and receiving raw packets on the ethernet interface.

Ubuntu typically has this feature enabled by default. For reference, on my Ubuntu 20.04 box:

$ grep -H CONFIG_PACKET /boot/config-$(uname -r)
/boot/config-5.8.0-38-generic:CONFIG_PACKET=y
/boot/config-5.8.0-38-generic:CONFIG_PACKET_DIAG=m

Can you check the output of this command on your machine to see if CONFIG_PACKET is enabled?

n1000 commented 3 years ago

Closing this issue for now. If the issue ends up being something else other than the CONFIG_PACKET kernel option, please reopen and we can take a closer look. Thanks!

zgb526642524 commented 2 years ago

$ sudo grep -H CONFIG_PACKET /boot/config-$(uname -r) grep: /boot/config-4.4.0-19041-Microsoft: No such file or directory windows WSL subsystem. request assistance,Loyal thanks.