mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 01:10:08 +01:00
platform: require generic netlink socket
Sockets are really a fundamental thing we require to operate. We cannot meaningfully operate, if we fail to create them. That is also why a too low file descriptor limit is fatal and unsupported. This is similar with out of memory situations. Just require that we always are able to create the generic netlink socket.
This commit is contained in:
parent
9c8b957704
commit
aa2fd36db4
1 changed files with 1 additions and 2 deletions
|
|
@ -9713,8 +9713,7 @@ constructed(GObject *_object)
|
|||
nm_platform_get_cache_tc(platform) ? "use" : "no");
|
||||
|
||||
nle = nl_socket_new(&priv->genl, NETLINK_GENERIC);
|
||||
if (nle)
|
||||
_LOGE("unable to connect the generic netlink socket \"%s\" (%d)", nm_strerror(nle), -nle);
|
||||
g_assert(!nle);
|
||||
|
||||
nle = nl_socket_new(&priv->nlh, NETLINK_ROUTE);
|
||||
g_assert(!nle);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue