MXS-1951: Detect SO_REUSEPORT support

The support for SO_REUSEPORT is now detected at runtime.
This commit is contained in:
Markus Mäkelä
2019-03-20 11:40:23 +02:00
parent e745d1cffb
commit cb957200c9
2 changed files with 61 additions and 0 deletions

View File

@ -556,4 +556,18 @@ uint64_t get_byteN(const uint8_t* ptr, int bytes);
* @return The next byte after the stored value
*/
uint8_t* set_byteN(uint8_t* ptr, uint64_t value, int bytes);
/**
* Get kernel version
*
* @return The kernel version as `major * 10000 + minor * 100 + patch`
*/
int get_kernel_version();
/**
* Does the system support SO_REUSEPORT
*
* @return True if the system supports SO_REUSEPORT
*/
bool have_so_reuseport();
}