#include <net/if_ipsec.h>
net/if_ipsec.h
macroIPSEC_CONTROL_NAME
Name registered by the ipsec kernel control
#define IPSEC_CONTROL_NAME "com.apple.net.ipsec_control"
macroIPSEC_OPT_IFNAME
#define IPSEC_OPT_IFNAME 2
macroIPSEC_OPT_INC_IFDATA_STATS_IN
#define IPSEC_OPT_INC_IFDATA_STATS_IN 4
set to increment stat counters (type struct ipsec_stats_param)
macroIPSEC_OPT_INC_IFDATA_STATS_OUT
#define IPSEC_OPT_INC_IFDATA_STATS_OUT 5
set to increment stat counters (type struct ipsec_stats_param)
macroIPSEC_OPT_SET_DELEGATE_INTERFACE
#define IPSEC_OPT_SET_DELEGATE_INTERFACE 6
set the delegate interface (char[])
macroIPSEC_OPT_OUTPUT_TRAFFIC_CLASS
#define IPSEC_OPT_OUTPUT_TRAFFIC_CLASS 7
set the traffic class for packets leaving the interface, see sys/socket.h
macroIPSEC_OPT_ENABLE_CHANNEL
#define IPSEC_OPT_ENABLE_CHANNEL 8
enable a kernel pipe nexus that allows the owner to open a channel to act as a driver,
Must be set before connecting
macroIPSEC_OPT_GET_CHANNEL_UUID
#define IPSEC_OPT_GET_CHANNEL_UUID 9
get the uuid of the kernel pipe nexus instance
macroIPSEC_OPT_ENABLE_FLOWSWITCH
#define IPSEC_OPT_ENABLE_FLOWSWITCH 10
enable a flowswitch nexus that clients can use
macroIPSEC_OPT_INPUT_FRAG_SIZE
#define IPSEC_OPT_INPUT_FRAG_SIZE 11
set the maximum size of input packets before fragmenting as a uint32_t
macroIPSEC_OPT_KPIPE_TX_RING_SIZE
#define IPSEC_OPT_KPIPE_TX_RING_SIZE 18
Must be set before connecting
macroIPSEC_OPT_KPIPE_RX_RING_SIZE
#define IPSEC_OPT_KPIPE_RX_RING_SIZE 19
Must be set before connecting
macroIPSEC_OPT_OUTPUT_DSCP_MAPPING
#define IPSEC_OPT_OUTPUT_DSCP_MAPPING 21
Must be set before connecting
enumipsec_dscp_mapping_t
| IPSEC_DSCP_MAPPING_COPY | 0 | Copy DSCP bits from inner IP header to outer IP header |
| IPSEC_DSCP_MAPPING_LEGACY | 1 | Copies bits from the outer IP header that are at TOS offset of the inner IP header, into the DSCP of the outer IP header |
typedefipsec_dscp_mapping_t
typedef enum ipsec_dscp_mapping_t ipsec_dscp_mapping_t;
structipsec_stats_param
ipsec stats parameter structure
| u_int64_t | utsp_packets | |
| u_int64_t | utsp_bytes | |
| u_int64_t | utsp_errors |