#include <net/if_utun.h>

net/if_utun.h

includes: sys/types.h
25 macros · 1 struct

macroUTUN_CONTROL_NAME

Name registered by the utun kernel control
#define UTUN_CONTROL_NAME "com.apple.net.utun_control"

macroUTUN_OPT_FLAGS

Socket option names to manage utun
#define UTUN_OPT_FLAGS 1

macroUTUN_OPT_IFNAME

#define UTUN_OPT_IFNAME 2

macroUTUN_OPT_EXT_IFDATA_STATS

#define UTUN_OPT_EXT_IFDATA_STATS 3
get|set (type int)

macroUTUN_OPT_INC_IFDATA_STATS_IN

#define UTUN_OPT_INC_IFDATA_STATS_IN 4
set to increment stat counters (type struct utun_stats_param)

macroUTUN_OPT_INC_IFDATA_STATS_OUT

#define UTUN_OPT_INC_IFDATA_STATS_OUT 5
set to increment stat counters (type struct utun_stats_param)

macroUTUN_OPT_SET_DELEGATE_INTERFACE

#define UTUN_OPT_SET_DELEGATE_INTERFACE 15
set the delegate interface (char[])

macroUTUN_OPT_MAX_PENDING_PACKETS

#define UTUN_OPT_MAX_PENDING_PACKETS 16
the number of packets that can be waiting to be read from the control socket at a time

macroUTUN_OPT_ENABLE_CHANNEL

#define UTUN_OPT_ENABLE_CHANNEL 17

macroUTUN_OPT_GET_CHANNEL_UUID

#define UTUN_OPT_GET_CHANNEL_UUID 18

macroUTUN_OPT_ENABLE_FLOWSWITCH

#define UTUN_OPT_ENABLE_FLOWSWITCH 19

macroUTUN_OPT_ENABLE_NETIF

#define UTUN_OPT_ENABLE_NETIF 20
Must be set before connecting

macroUTUN_OPT_SLOT_SIZE

#define UTUN_OPT_SLOT_SIZE 21
Must be set before connecting

macroUTUN_OPT_NETIF_RING_SIZE

#define UTUN_OPT_NETIF_RING_SIZE 22
Must be set before connecting

macroUTUN_OPT_TX_FSW_RING_SIZE

#define UTUN_OPT_TX_FSW_RING_SIZE 23
Must be set before connecting

macroUTUN_OPT_RX_FSW_RING_SIZE

#define UTUN_OPT_RX_FSW_RING_SIZE 24
Must be set before connecting

macroUTUN_OPT_KPIPE_TX_RING_SIZE

#define UTUN_OPT_KPIPE_TX_RING_SIZE 25
Must be set before connecting

macroUTUN_OPT_KPIPE_RX_RING_SIZE

#define UTUN_OPT_KPIPE_RX_RING_SIZE 26
Must be set before connecting

macroUTUN_OPT_ATTACH_FLOWSWITCH

#define UTUN_OPT_ATTACH_FLOWSWITCH 27
Must be set before connecting

macroUTUN_OPT_CHANNEL_BIND_UUID

#define UTUN_OPT_CHANNEL_BIND_UUID 28
Must be set before connecting

macroUTUN_OPT_CHANNEL_BIND_PID

#define UTUN_OPT_CHANNEL_BIND_PID 29
Must be set before connecting

macroUTUN_OPT_USER_PACKET_POOL

#define UTUN_OPT_USER_PACKET_POOL 30
Must be set before connecting

macroUTUN_FLAGS_NO_OUTPUT

Flags for by UTUN_OPT_FLAGS
#define UTUN_FLAGS_NO_OUTPUT 0x0001

macroUTUN_FLAGS_NO_INPUT

#define UTUN_FLAGS_NO_INPUT 0x0002

macroUTUN_FLAGS_ENABLE_PROC_UUID

#define UTUN_FLAGS_ENABLE_PROC_UUID 0x0004

structutun_stats_param

utun stats parameter structure
size 24, align 8
u_int64_tutsp_packets
u_int64_tutsp_bytes
u_int64_tutsp_errors