1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

cmake: do not allow netlink support when external poll support is enabled.

Netlink fds are not passed to the user callback for external loop adoption, because vhost and its protocols are not yet in place when rops_pt_init_destroy_netlink() gets called during context creation. As a consequence, netlink fds are not polled, leading to outdated/wrong routing table entries in the library.
A complex rework would be required to support this, so for now disable netlink when external poll is needed.
This commit is contained in:
p-luke 2024-05-16 14:44:44 +02:00 committed by GitHub
parent 1e0953ffb8
commit f5c200b2e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -335,7 +335,7 @@ else()
option(LWS_WITH_CACHE_NSCOOKIEJAR "Build file-backed lws-cache-ttl that uses netscape cookie jar format (linux-only)" OFF)
endif()
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux" AND NOT LWS_WITH_EXTERNAL_POLL)
option(LWS_WITH_NETLINK "Monitor Netlink for Routing Table changes" ON)
else()
set(LWS_WITH_NETLINK 0)