Use standard unsigned integer types
This commit is contained in:
@@ -39,7 +39,7 @@ struct private_kernel_handler_t {
|
||||
/**
|
||||
* convert an IP protocol identifier to the IKEv2 specific protocol identifier.
|
||||
*/
|
||||
static inline protocol_id_t proto_ip2ike(u_int8_t protocol)
|
||||
static inline protocol_id_t proto_ip2ike(uint8_t protocol)
|
||||
{
|
||||
switch (protocol)
|
||||
{
|
||||
@@ -53,7 +53,7 @@ static inline protocol_id_t proto_ip2ike(u_int8_t protocol)
|
||||
}
|
||||
|
||||
METHOD(kernel_listener_t, acquire, bool,
|
||||
private_kernel_handler_t *this, u_int32_t reqid,
|
||||
private_kernel_handler_t *this, uint32_t reqid,
|
||||
traffic_selector_t *src_ts, traffic_selector_t *dst_ts)
|
||||
{
|
||||
if (src_ts && dst_ts)
|
||||
@@ -71,7 +71,7 @@ METHOD(kernel_listener_t, acquire, bool,
|
||||
}
|
||||
|
||||
METHOD(kernel_listener_t, expire, bool,
|
||||
private_kernel_handler_t *this, u_int8_t protocol, u_int32_t spi,
|
||||
private_kernel_handler_t *this, uint8_t protocol, uint32_t spi,
|
||||
host_t *dst, bool hard)
|
||||
{
|
||||
protocol_id_t proto = proto_ip2ike(protocol);
|
||||
@@ -93,7 +93,7 @@ METHOD(kernel_listener_t, expire, bool,
|
||||
}
|
||||
|
||||
METHOD(kernel_listener_t, mapping, bool,
|
||||
private_kernel_handler_t *this, u_int8_t protocol, u_int32_t spi,
|
||||
private_kernel_handler_t *this, uint8_t protocol, uint32_t spi,
|
||||
host_t *dst, host_t *remote)
|
||||
{
|
||||
protocol_id_t proto = proto_ip2ike(protocol);
|
||||
@@ -108,7 +108,7 @@ METHOD(kernel_listener_t, mapping, bool,
|
||||
}
|
||||
|
||||
METHOD(kernel_listener_t, migrate, bool,
|
||||
private_kernel_handler_t *this, u_int32_t reqid,
|
||||
private_kernel_handler_t *this, uint32_t reqid,
|
||||
traffic_selector_t *src_ts, traffic_selector_t *dst_ts,
|
||||
policy_dir_t direction, host_t *local, host_t *remote)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user