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:
parent
1e0953ffb8
commit
f5c200b2e4
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue