#include <net/if_utun.h>
net/if_utun.h
macroUTUN_CONTROL_NAME
Name registered by the utun kernel control
#define UTUN_CONTROL_NAME "com.apple.net.utun_control"
macroUTUN_OPT_IFNAME
#define UTUN_OPT_IFNAME 2
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_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
| u_int64_t | utsp_packets | |
| u_int64_t | utsp_bytes | |
| u_int64_t | utsp_errors |