#include <net/if_ipsec.h>

net/if_ipsec.h Kernel.framework

includes: sys/types.h
22 macros · 1 enum · 1 typedef · 1 struct

macroIPSEC_CONTROL_NAME

Name registered by the ipsec kernel control
#define IPSEC_CONTROL_NAME "com.apple.net.ipsec_control"

macroIPSEC_OPT_FLAGS

Socket option names to manage ipsec
#define IPSEC_OPT_FLAGS 1

macroIPSEC_OPT_IFNAME

#define IPSEC_OPT_IFNAME 2

macroIPSEC_OPT_EXT_IFDATA_STATS

#define IPSEC_OPT_EXT_IFDATA_STATS 3
get|set (type int)

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_ENABLE_NETIF

#define IPSEC_OPT_ENABLE_NETIF 12
Must be set before connecting

macroIPSEC_OPT_SLOT_SIZE

#define IPSEC_OPT_SLOT_SIZE 13
Must be set before connecting

macroIPSEC_OPT_NETIF_RING_SIZE

#define IPSEC_OPT_NETIF_RING_SIZE 14
Must be set before connecting

macroIPSEC_OPT_TX_FSW_RING_SIZE

#define IPSEC_OPT_TX_FSW_RING_SIZE 15
Must be set before connecting

macroIPSEC_OPT_RX_FSW_RING_SIZE

#define IPSEC_OPT_RX_FSW_RING_SIZE 16
Must be set before connecting

macroIPSEC_OPT_CHANNEL_BIND_PID

#define IPSEC_OPT_CHANNEL_BIND_PID 17
Must be set before connecting

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_CHANNEL_BIND_UUID

#define IPSEC_OPT_CHANNEL_BIND_UUID 20
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

underlying type unsigned int
IPSEC_DSCP_MAPPING_COPY0Copy DSCP bits from inner IP header to outer IP header
IPSEC_DSCP_MAPPING_LEGACY1Copies 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
size 24, align 8
u_int64_tutsp_packets
u_int64_tutsp_bytes
u_int64_tutsp_errors