Mercurial > hg > freeDiameter
view cmake/Modules/GetVersionWithHg.cmake @ 1540:407e0a889c7e
SCTP ConnectPeer: sctp_bindx() to local endpoints
When connecting to an SCTP peer using sctp_connectx() with local
addresses configured with ListenOn, bind to the ListenOn addresses
using sctp_bindx() so that the SCTP INIT only contains the
configured local addresses, matching what is advertised in the CER,
and disable SCTP_AUTO_ASCONF.
If no local addresses are configured with ListenOn, the previous
behaviour of sctp_connectx() and enable SCTP_AUTO_ASCONF is used.
author | Luke Mewburn <luke@mewburn.net> |
---|---|
date | Fri, 01 May 2020 18:20:33 +1000 |
parents | 9c9f2b75bf95 |
children |
line wrap: on
line source
# This file is called at build time. It regenerates the version.h file based on the hg version. EXECUTE_PROCESS( COMMAND ${HGCOMMAND} id -i WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} RESULT_VARIABLE reshash OUTPUT_VARIABLE verhash ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE) EXECUTE_PROCESS( COMMAND ${HGCOMMAND} id -n WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} RESULT_VARIABLE resval OUTPUT_VARIABLE verval ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE) if (reshash EQUAL 0) SET(FD_PROJECT_VERSION_HG "${verval}(${verhash})") message(STATUS "Source version: ${FD_PROJECT_VERSION_HG}") endif (reshash EQUAL 0) CONFIGURE_FILE(${SRC} ${DST})