#include <sys/socketvar.h>

sys/socketvar.h

includes: sys/appleapiopts.h, sys/cdefs.h, sys/constrained_ctypes.h, sys/types.h, TargetConditionals.h, uuid/uuid.h
6 macros · 3 structs · 2 enums · 1 typedef · 1 function

typedefso_gen_t

typedef u_quad_t so_gen_t

macro_XSOCKET_PTR

#define _XSOCKET_PTR(x) u_int32_t

structxsockbuf

size 24, align 4
u_int32_tsb_cc
u_int32_tsb_hiwat
u_int32_tsb_mbcnt
u_int32_tsb_mbmax
int32_tsb_lowat
shortsb_flags
shortsb_timeo

structxsocket

Externalized form of struct socket used by the sysctl(3) interface.
size 100, align 4
u_int32_txso_lenlength of this structure
u_int32_txso_somakes a convenient handle
shortso_type
shortso_options
shortso_linger
shortso_state
u_int32_tso_pcbanother convenient handle
intxso_protocol
intxso_family
shortso_qlen
shortso_incqlen
shortso_qlimit
shortso_timeo
u_shortso_error
pid_tso_pgid
u_int32_tso_oobmark
struct xsockbufso_rcv
struct xsockbufso_snd
uid_tso_uidXXX

structxsocket64

size 108, align 4
u_int32_txso_lenlength of this structure
u_int64_txso_somakes a convenient handle
shortso_type
shortso_options
shortso_linger
shortso_state
u_int64_tso_pcbanother convenient handle
intxso_protocol
intxso_family
shortso_qlen
shortso_incqlen
shortso_qlimit
shortso_timeo
u_shortso_error
pid_tso_pgid
u_int32_tso_oobmark
struct xsockbufso_rcv
struct xsockbufso_snd
uid_tso_uidXXX

enumso_tracker_action

Tracker actions
underlying type unsigned int
SO_TRACKER_ACTION_INVALID0
SO_TRACKER_ACTION_ADD1
SO_TRACKER_ACTION_DUMP_BY_APP2
SO_TRACKER_ACTION_DUMP_ALL3
SO_TRACKER_ACTION_DUMP_MAX4

enumso_tracker_attribute

Tracker TLV attributes
underlying type unsigned int
SO_TRACKER_ATTRIBUTE_INVALID0
SO_TRACKER_ATTRIBUTE_ADDRESS_FAMILY1
SO_TRACKER_ATTRIBUTE_ADDRESS2
SO_TRACKER_ATTRIBUTE_APP_UUID3
SO_TRACKER_ATTRIBUTE_DOMAIN4
SO_TRACKER_ATTRIBUTE_DOMAIN_OWNER5
SO_TRACKER_ATTRIBUTE_FLAGS6
SO_TRACKER_ATTRIBUTE_DUMP_ENTRY7
SO_TRACKER_ATTRIBUTE_MEMORY_USED8
SO_TRACKER_ATTRIBUTE_MAX9

macroSO_TRACKER_ATTRIBUTE_FLAGS_APP_APPROVED

Tracker flags
#define SO_TRACKER_ATTRIBUTE_FLAGS_APP_APPROVED 0x00000001

macroSO_TRACKER_ATTRIBUTE_FLAGS_TRACKER

#define SO_TRACKER_ATTRIBUTE_FLAGS_TRACKER 0x00000002

macroSO_TRACKER_ATTRIBUTE_FLAGS_DOMAIN_SHORT

#define SO_TRACKER_ATTRIBUTE_FLAGS_DOMAIN_SHORT 0x00000004

macroSO_TRACKER_ATTRIBUTE_FLAGS_EXTENDED_TIMEOUT

#define SO_TRACKER_ATTRIBUTE_FLAGS_EXTENDED_TIMEOUT 0x00000008

macroSO_TRACKER_TRANSPARENCY_VERSION

#define SO_TRACKER_TRANSPARENCY_VERSION 3

functiontracker_action

extern int tracker_action(int action, char *buffer, size_t buffer_size)