|
OpenVPN
|
#include "error.h"

Go to the source code of this file.
Macros | |
| #define | htonll(x) |
| #define | ntohll(x) |
Functions | |
| static int | clamp_size_to_int (size_t size) |
| static unsigned int | max_uint (unsigned int x, unsigned int y) |
| static unsigned int | min_uint (unsigned int x, unsigned int y) |
| static size_t | min_size (size_t x, size_t y) |
| static int | max_int (int x, int y) |
| static int | min_int (int x, int y) |
| static int | constrain_int (int x, int min, int max) |
| static unsigned int | constrain_uint (unsigned int x, unsigned int min, unsigned int max) |
| static int | modulo_subtract (int x, int y, int mod) |
| static int | modulo_add (int x, int y, int mod) |
| static size_t | adjust_power_of_2 (size_t u) |
| static int | index_verify (int index, int size, const char *file, int line) |
| static size_t | round_down_size (size_t num, size_t multiple) |
| Rounds down num to the nearest multiple of multiple. | |
| #define htonll | ( | x | ) |
Definition at line 29 of file integer.h.
Referenced by buf_write_u64(), create_metadata_days_ago(), generate_auth_token(), packet_id_write_epoch(), and tls_crypt_v2_write_client_key_file().
| #define ntohll | ( | x | ) |
Definition at line 36 of file integer.h.
Referenced by buf_read_u64(), packet_id_read_epoch(), tls_crypt_v2_check_client_key_age(), and verify_auth_token().
|
inlinestatic |
Definition at line 205 of file integer.h.
References ASSERT.
Referenced by argv_grow(), hash_init(), and mbuf_init().
|
inlinestatic |
Definition at line 43 of file integer.h.
References ASSERT.
Referenced by frame_calculate_fragment().
|
inlinestatic |
Definition at line 118 of file integer.h.
Referenced by add_option(), convert_tls_list_to_openssl(), set_debug_level(), shaper_reset(), and tv_subtract().
|
inlinestatic |
Definition at line 139 of file integer.h.
Referenced by reap_buckets_per_pass().
|
inlinestatic |
|
inlinestatic |
Definition at line 92 of file integer.h.
Referenced by add_option(), crypto_max_overhead(), do_init_crypto_tls(), frame_finalize_options(), get_server_poll_remaining_time(), ipv6_send_icmp_unreachable(), multi_io_process_flags(), process_incoming_link_part2(), process_outgoing_link(), shaper_wrote_bytes(), socket_restart_pause(), tls_init_control_channel_frame_parameters(), tv_to_ms_timeout(), verify_cert(), and write_outgoing_tls_ciphertext().
|
inlinestatic |
Definition at line 53 of file integer.h.
Referenced by frame_finalize_options(), receive_auth_pending(), and send_auth_pending_messages().
|
inlinestatic |
Definition at line 105 of file integer.h.
Referenced by calc_control_channel_frame_overhead(), check_send_occ_msg_dowork(), do_deferred_options(), ipv6_send_icmp_unreachable(), man_write(), optimal_fragment_size(), reliable_ack_write(), reliable_send_timeout(), shaper_wrote_bytes(), socket_restart_pause(), tls_init_control_channel_frame_parameters(), we_init(), write_control_auth(), and write_outgoing_tls_ciphertext().
|
inlinestatic |
Definition at line 79 of file integer.h.
Referenced by man_check_password(), and ovpn_hkdf_expand().
|
inlinestatic |
Definition at line 66 of file integer.h.
Referenced by man_remote_entry_get(), receive_auth_pending(), send_auth_pending_messages(), and tls_authentication_status_use_cache().
|
inlinestatic |
Definition at line 185 of file integer.h.
References ASSERT.
Referenced by fragment_list_get_buf(), fragment_outgoing(), and log_index().
|
inlinestatic |
|
inlinestatic |
Rounds down num to the nearest multiple of multiple.
Definition at line 233 of file integer.h.
Referenced by adjust_payload_max_cbc().