What's new

wlcsm_create_nl_socket binding netlink socket error

@dave14305 As you referenced the source code in services.c (not closed source), are you suggesting that it's an unresolved issue?
That code invokes a couple closed-source functions related to AiMesh and networkmap. I would just delete the dhcp-script line via the dnsmasq.postconf if it’s causing a problem for you. I don’t think it’s an essential function.
 
That code invokes a couple closed-source functions related to AiMesh and networkmap. I would just delete the dhcp-script line via the dnsmasq.postconf if it’s causing a problem for you. I don’t think it’s an essential function.

@dave14305 A symptom of the related error is that local dns (192.168.0.1) fails, until I preform the remedy restart_dnsmasq.
 
I have also experienced dhcpc_lease hanging every few days with error
Code:
_wlcsm_create_nl_socket:268: pid:2341 binding netlink socket error!!!
The lightest footprint workaround so far in my testing is sending a hangup signal to dhcpc_lease.
In the script replacement for the dnsmasq invocation of dhcpc_lease I use this:
Code:
if [ -f /opt/bin/timeout ]
then
        /opt/bin/timeout --kill-after=20 --signal=HUP --verbose 10 /sbin/dhcpc_lease "$@"
else
        /sbin/dhcpc_lease "$@"
fi
The timeout command is only available in Entware when the USB is mounted, so I hope it does not happen before that.
Instead of a hang I see this in the standard error output:
Code:
timeout: sending signal HUP to command '/sbin/dhcpc_lease'
 
Last edited:
I have also experienced dhcpc_lease hanging every few days with error
Code:
_wlcsm_create_nl_socket:268: pid:2341 binding netlink socket error!!!
The lightest footprint workaround so far in my testing is sending a hangup signal to dhcpc_lease.
In the script replacement for the dnsmasq invocation of dhcpc_lease I use this:
Code:
if [ -f /opt/bin/timeout ]
then
        /opt/bin/timeout --kill-after=20 --signal=HUP --verbose 10 /sbin/dhcpc_lease "$@"
else
        /sbin/dhcpc_lease "$@"
fi
The timeout command is only available in Entware when the USB is mounted, so I hope it does not happen before that.
Instead of a hang I see this in the standard error output:
Code:
timeout: sending signal HUP to command '/sbin/dhcpc_lease'
If that's hanging, there's a good chance other things are hanging as well. I'd recommend running @Martinski's CheckStuckProcCmds.sh script every 30mins, and have it log to a file so you can keep an eye on its behavior. Once I start seeing these pop up on my router, that was a sign a reboot was needed... then I wouldn't see them again for another 3+ weeks.
 
The CheckStuckProcCmds.sh script did not catch anything for 2 weeks.

The dhcpc_lease script was hanging a few times a day but my wrapper script was handling them successfully with just a kill -HUP.
Code:
=====================================================================
_wlcsm_create_nl_socket:268: pid:2319 binding netlink socket error!!!
timeout: sending signal HUP to command '/sbin/dhcpc_lease'
Sat Jan 17 2026 11:52:05 AM EST -0500
=====================================================================

But nvram commands began to hang 2 weeks in, so I have rebooted and reinstalled CheckStuckProcCmds.sh script in cron every 30 minutes.
Code:
2026-Jan-03 08:51:09 PM INFO: New CRON Job [#CheckStuckCmds#] was CREATED.
CRON: [*/30  *  *  *  *  /tmp/mnt/smb/share/dhcp/CheckStuckProcCmds.sh #CheckStuckCmds#]
2026-Jan-04 12:00:01 PM FOUND: [0]
2026-Jan-05 12:00:03 PM FOUND: [0]
2026-Jan-06 12:00:00 PM FOUND: [0]
2026-Jan-07 12:00:03 PM FOUND: [0]
2026-Jan-08 12:00:00 PM FOUND: [0]
2026-Jan-09 12:00:00 PM FOUND: [0]
2026-Jan-10 12:00:00 PM FOUND: [0]
2026-Jan-11 12:00:01 PM FOUND: [0]
2026-Jan-12 12:00:01 PM FOUND: [0]
2026-Jan-13 12:00:00 PM FOUND: [0]
2026-Jan-14 12:00:00 PM FOUND: [0]
2026-Jan-15 12:00:03 PM FOUND: [0]
2026-Jan-16 12:00:00 PM FOUND: [0]
2026-Jan-17 04:30:00 AM FOUND: [0] **=OK=**

2026-Jan-17 05:00:04 AM START_03706: [/tmp/mnt/smb/share/dhcp/CheckStuckProcCmds.sh]
2026-Jan-17 05:00:04 AM FOUND_03706: [1]
 2309  2297 HdB34266 S     3952  0.4   1  0.0 nvram get http_username
 2297     1 HdB34266 S     3424  0.3   1  0.0 {cru} /bin/sh /usr/sbin/cru l
2026-Jan-17 05:00:04 AM FOUND_03706: [0][ 2309  2297 HdB34266 S     3952  0.4   1  0.0 nvram get http_username]
2026-Jan-17 05:00:05 AM FOUND_03706: [1]
2026-Jan-17 05:00:05 AM EXIT_03706: OK.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top