Module org.newsclub.net.unix.darwin
Enum Class WellKnownKernelControlNames
java.lang.Object
java.lang.Enum<WellKnownKernelControlNames>
org.newsclub.net.unix.darwin.system.WellKnownKernelControlNames
- All Implemented Interfaces:
Serializable
,Comparable<WellKnownKernelControlNames>
,Constable
Well-known AF_SYSTEM control names.
Most of these can only be accessed by the superuser (root). Unless otherwise specified, one
usually accesses these as datagrams (SOCK_DGRAM).
You can see which control names are registered via
netstat -an
; check for the IDs below
"Registered kernel control modules".
Also see New OSX Book Volume 1 Chapter 16- Author:
- Christian Kohlschütter
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptioncom.apple.content-filter
.com.apple.fileutil.kext.stateful.ctl
.com.apple.fileutil.kext.stateless.ctl
.com.apple.flow-divert
.com.apple.net.ipsec_control
.com.apple.mcx.kernctl.alr
.com.apple.net.necp_control
.com.apple.net.netagent
.com.apple.net.rvi_control
.com.apple.netsrc
.com.apple.network.advisory
.com.apple.network.statistics
.com.apple.network.tcp_ccdebug
.com.apple.nke.sockwall
.com.apple.nke.webcontentfilter
.com.apple.packet-mangler
.com.apple.spmi.nfc
.com.apple.uart.debug-console
.com.apple.uart.sk.debug-console
.com.apple.uart.sk.wlan-debug
.com.apple.uart.wlan-debug
.com.apple.userspace_ethernet
.com.apple.net.utun_control
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the control name identifier.static WellKnownKernelControlNames
Returns the enum constant of this class with the specified name.static WellKnownKernelControlNames[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NETSRC
com.apple.netsrc
. Network/route policies and statistics. Available to non-root. See https://github.com/apple-oss-distributions/xnu/blob/main/bsd/net/netsrc.h and https://github.com/apple-oss-distributions/xnu/blob/main/bsd/net/netsrc.c, as well as https://github.com/appleopen/Libinfo/blob/master/lookup.subproj/si_compare.c -
NETWORK_STATISTICS
com.apple.network.statistics
. Live socket statistics and notifications. Available to non-root. Seehttp://newosxbook.com/src.jl?tree=listings&file=lsock.c
as well as https://github.com/packetzero/libntstat -
FLOW_DIVERT
com.apple.flow-divert
. MPTCP flow diversions (XNU-2422). See https://github.com/apple-oss-distributions/xnu/blob/main/bsd/netinet/flow_divert.c and https://github.com/apple-oss-distributions/xnu/blob/main/bsd/netinet/flow_divert.h -
NET_NETAGENT
com.apple.net.netagent
. -
CONTENT_FILTER
com.apple.content-filter
. -
UTUN_CONTROL
com.apple.net.utun_control
. User-mode tunneling (VPN). -
IPSEC_CONTROL
com.apple.net.ipsec_control
. -
NETWORK_TCP_CCDEBUG
com.apple.network.tcp_ccdebug
. Requires SOCK_STREAM. -
NETWORK_ADVISORY
com.apple.network.advisory
. -
NET_RVI_CONTROL
com.apple.net.rvi_control
. -
NKE_SOCKWALL
com.apple.nke.sockwall
. -
SPMI_NFC
com.apple.spmi.nfc
. Available to non-root. Requires SOCK_STREAM. -
PACKET_MANGLER
com.apple.packet-mangler
. -
NECP_CONTROL
com.apple.net.necp_control
. -
FILEUTIL_KEXT_STATEFUL_CTL
com.apple.fileutil.kext.stateful.ctl
. -
FILEUTIL_KEXT_STATELESS_CTL
com.apple.fileutil.kext.stateless.ctl
. -
MCX_KERNCTL_ALR
com.apple.mcx.kernctl.alr
. -
NKE_WEBCONTENTFILTER
com.apple.nke.webcontentfilter
. -
UART_WLAN_DEBUG
com.apple.uart.wlan-debug
. -
UART_SK_WLAN_DEBUG
com.apple.uart.sk.wlan-debug
. -
UART_DEBUG_CONSOLE
com.apple.uart.debug-console
. -
UART_SK_DEBUG_CONSOLE
com.apple.uart.sk.debug-console
. -
USERSPACE_ETHERNET
com.apple.userspace_ethernet
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getControlName
-