diff --git a/src/libnm-platform/nm-linux-platform.c b/src/libnm-platform/nm-linux-platform.c index 4fa63f8065..880244a40d 100644 --- a/src/libnm-platform/nm-linux-platform.c +++ b/src/libnm-platform/nm-linux-platform.c @@ -9739,10 +9739,6 @@ constructed(GObject *_object) nle = nl_socket_set_buffer_size(priv->nlh, 8 * 1024 * 1024, 0); g_assert(!nle); - nle = nl_socket_set_ext_ack(priv->nlh, TRUE); - if (nle) - _LOGD("could not enable extended acks on netlink socket"); - /* explicitly set the msg buffer size and disable MSG_PEEK. * We use our own receive buffer priv->netlink_recv_buf. * If we encounter NME_NL_MSG_TRUNC, we will increase the buffer diff --git a/src/libnm-platform/nm-netlink.c b/src/libnm-platform/nm-netlink.c index d7a74c7a0b..4c55679983 100644 --- a/src/libnm-platform/nm-netlink.c +++ b/src/libnm-platform/nm-netlink.c @@ -1101,6 +1101,8 @@ nl_socket_new(struct nl_sock **out_sk, int protocol) if (local.nl_family != AF_NETLINK) return -NME_UNSPEC; + (void) nl_socket_set_ext_ack(sk, TRUE); + sk->s_local = local; sk->s_proto = protocol;