kernel-pfkey: use an int to set esp_port with a sysctl on OS X
This commit is contained in:
@@ -2548,8 +2548,10 @@ METHOD(kernel_ipsec_t, enable_udp_decap, bool,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
#else /* __APPLE__ */
|
#else /* __APPLE__ */
|
||||||
if (sysctlbyname("net.inet.ipsec.esp_port", NULL, NULL, &port,
|
int intport = port;
|
||||||
sizeof(port)) != 0)
|
|
||||||
|
if (sysctlbyname("net.inet.ipsec.esp_port", NULL, NULL, &intport,
|
||||||
|
sizeof(intport)) != 0)
|
||||||
{
|
{
|
||||||
DBG1(DBG_KNL, "could not set net.inet.ipsec.esp_port to %d: %s",
|
DBG1(DBG_KNL, "could not set net.inet.ipsec.esp_port to %d: %s",
|
||||||
port, strerror(errno));
|
port, strerror(errno));
|
||||||
|
|||||||
Reference in New Issue
Block a user