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

FS#2777 - CONFIG_NETLINK_DIAG is not set #7577

Open
openwrt-bot opened this issue Jan 26, 2020 · 0 comments
Open

FS#2777 - CONFIG_NETLINK_DIAG is not set #7577

openwrt-bot opened this issue Jan 26, 2020 · 0 comments
Labels
flyspray kernel pull request/issue with Linux kernel related changes

Comments

@openwrt-bot
Copy link

Strykar:

The Socket statistics utility, //ss//, will throw //Cannot open netlink socket: Protocol not supported// errors due to //CONFIG_NETLINK_DIAG// being unset in the kernel config.

root@apu:~# ss
Cannot open netlink socket: Protocol not supported
Cannot open netlink socket: Protocol not supported
Cannot open netlink socket: Protocol not supported
Cannot open netlink socket: Protocol not supported
Cannot open netlink socket: Protocol not supported
Cannot open netlink socket: Protocol not supported
Cannot open netlink socket: Protocol not supported
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port
u_str ESTAB 0 0 /var/run/ubus.sock 245 * 0
u_str ESTAB 0 0 * 473 * 0
u_str ESTAB 0 0 /var/run/ubus.sock 1363 * 0
u_str ESTAB 0 0 /var/run/ubus.sock 1515 * 0
u_str ESTAB 0 0 * 2486 * 0
u_str ESTAB 0 0 * 2514 * 0
u_str ESTAB 0 0 * 3197 * 0
u_str ESTAB 0 0 * 3366 * 0
u_str ESTAB 0 0 /var/run/ubus.sock 3367 * 0
u_str ESTAB 0 0 /var/run/ubus.sock 3520 * 0
u_str ESTAB 0 0 * 5924 * 0
u_str ESTAB 0 0 * 5925 * 0
u_str ESTAB 0 0 /var/run/ubus.sock 600750 * 0
u_str ESTAB 0 0 * 601742 * 0
u_dgr ESTAB 0 0 /dev/log 471 * 0
u_dgr ESTAB 0 0 * 1576 * 0
u_dgr ESTAB 0 0 * 1595 * 0
u_dgr ESTAB 0 0 * 2445 * 0
u_dgr ESTAB 0 0 * 2484 * 0
u_dgr ESTAB 0 0 * 3188 * 0
u_dgr ESTAB 0 0 * 5505 * 0
u_dgr ESTAB 0 0 * 5929 * 0
u_dgr ESTAB 0 0 * 565769 * 0
u_dgr ESTAB 0 0 * 601735 * 0
tcp ESTAB 0 0 217.107.210.186:56580 99.144.24.156:https
tcp ESTAB 0 0 192.168.1.10:https 192.168.1.100:45174
tcp ESTAB 0 0 217.107.210.186:56212 88.112.99.68:https
tcp ESTAB 0 0 192.168.1.10:https 192.168.1.100:45172
tcp ESTAB 0 0

I've confirmed this on //OpenWrt 18.06.5 (x86/64)// but the issue will exist on all platforms.
//@neheb// helped identify the real issue when I opened a bug for the //ss// package on Github and //@RussellSenior// recently saw the thread - openwrt/packages#8232

The suggested fix is:
--- a/target/linux/generic/config-4.19
+++ b/target/linux/generic/config-4.19
@@ -3164,7 +3164,7 @@ CONFIG_NETDEVICES=y

CONFIG_NETFILTER_XT_TARGET_TEE is not set

CONFIG_NETFILTER_XT_TARGET_TPROXY is not set

CONFIG_NETFILTER_XT_TARGET_TRACE is not set

-# CONFIG_NETLINK_DIAG is not set
+CONFIG_NETLINK_DIAG=y

CONFIG_NETLINK_MMAP is not set

CONFIG_NETPOLL is not set

CONFIG_NETROM is not set

@aparcar aparcar added the kernel pull request/issue with Linux kernel related changes label Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray kernel pull request/issue with Linux kernel related changes
Projects
None yet
Development

No branches or pull requests

2 participants