Module socket

Module socket 

Source

Modules§

iptables_utils
syscalls

Structs§

AcceptQueue
AuditNetlinkClient
Audit client that can be attached to the AuditLogger.
AuditNetlinkSocket
Audit Netlink Socket structure.
GenericNetlink
GenericNetlinkClientHandle
GenericNetlinkWorkerParams
NetlinkAccessControl
NetlinkAddress
NetlinkContextImpl
NetlinkToClientSender
Type for sending messages from netlink::Netlink to an individual socket.
QipcrtrSocket
Socket
A Socket represents one endpoint of a bidirectional communication channel.
SocketFile
SocketFs
SocketFs is the file system where anonymous socket nodes are created, for example in sys_socket.
SocketMessageFlags
SocketProtocol
SocketShutdownFlags
The flags for shutting down sockets.
SocketTokensStore
UnixSocket
The data of a socket is stored in the “Inner” struct. Because both ends have separate locks, care must be taken to avoid taking both locks since there is no way to tell what order to take them in.
VsockSocket
ZxioBackedSocket
A socket backed by an underlying Zircon I/O object.

Enums§

GenericMessage
NetlinkFamily
SockOptValue
SocketAddress
SocketDomain
SocketPeer
SocketType

Constants§

DEFAULT_LISTEN_BACKLOG
SA_FAMILY_SIZE
SA_STORAGE_SIZE
SOCKET_DEFAULT_SIZE
SOCKET_MAX_SIZE
SOCKET_MIN_SIZE
ZXIO_SOCKET_MARK_SO_MARK
Linux marks aren’t compatible with Fuchsia marks, we store the SO_MARK value in the fuchsia ZXIO_SOCKET_MARK_DOMAIN_1. If a mark in this domain is absent, it will be reported to starnix applications as a 0 since that is the default mark value on Linux.
ZXIO_SOCKET_MARK_UID
Fuchsia does not have uids, we use the ZXIO_SOCKET_MARK_DOMAIN_2 on the socket to store the UID for the sockets created by starnix.

Traits§

GenericNetlinkFamily
ReadFromSockOptValue
SocketOps

Functions§

new_netlink_socket
resolve_unix_socket_address
run_generic_netlink_worker
socket_fs
Returns a handle to the SocketFs instance in kernel, initializing it if needed.

Type Aliases§

IfReqPtr
SocketHandle