It seems that neither ‘WagoSysBSDSocket’ or ‘SysSocket’ has a ‘sockaddr_un’ struct referring to local namespace AKA AF_Unix socket. This structure (sun_path) should hold the path to the internal file descriptor for the internal socket but only has ‘sockaddr_in’ that is a internet socket (AF_INET). It seems e!Cockpit can create local sockets but it fails with connecting. both SysSockConnect and FuSock_Connect returns 1 that should mean error.
WagSysBSDSocket addresses domain:
SysSockets address domain:
Sockaddr_un provided by un.h that we want to have also in e!Cockpit:
This does not work in e!Cockpit because we do not have the correct structure type that include “path”, only IP address.
It does not work with making a new structure locally like: