fuchsia.posix.socket.raw

Added: 11

PROTOCOLS

Provider

Defined in fuchsia.posix.socket.raw/socket.fidl

A raw network socket provider.

Socket

Requests a raw socket.

Request

NameType
domain fuchsia.posix.socket/Domain
proto ProtocolAssociation

Response

NameType
payload Provider_Socket_Result

Socket

Defined in fuchsia.posix.socket.raw/socket.fidl

A raw network socket.

Once a socket has been retrieved from a provider, this interface is then used to further configure and use the socket. This interface is essentially POSIX.

All methods on this type are nonblocking; their exact behaviors match their Linux counterparts.

Warning: This protocol is not yet ready for direct use by clients. Instead, clients should use the BSD sockets API to interact with sockets. We plan to change this protocol substantially and clients that couple directly to this protocol will make those changes more difficult.

AddIpMembership

Set SOL_IP -> IP_ADD_MEMBERSHIP

Request

NameType
membership fuchsia.posix.socket/IpMulticastMembership

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_AddIpMembership_Result

AddIpv6Membership

Set SOL_IPV6 -> IPV6_ADD_MEMBERSHIP.

Request

NameType
membership fuchsia.posix.socket/Ipv6MulticastMembership

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_AddIpv6Membership_Result

Bind

Sets the local address used for the socket.

Request

NameType
addr fuchsia.net/SocketAddress

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_Bind_Result

Clone2

Request

NameType
request server_end:fuchsia.unknown/Cloneable

Close

Terminates the connection.

After calling Close, the client must not send any other requests.

Servers, after sending the status response, should close the connection regardless of status and without sending an epitaph.

Closing the client end of the channel should be semantically equivalent to calling Close without knowing when the close has completed or its status.

Request

<EMPTY>

Response

NameType
payload fuchsia.unknown/Closeable_Close_Result

Connect

Initiates a connection to a remote address.

Request

NameType
addr fuchsia.net/SocketAddress

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_Connect_Result

Describe

Request

<EMPTY>

Response

NameType
payload SocketDescribeResponse

Disconnect

Clears connection information from this socket.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_Disconnect_Result

DropIpMembership

Set SOL_IP -> IP_DROP_MEMBERSHIP

Request

NameType
membership fuchsia.posix.socket/IpMulticastMembership

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_DropIpMembership_Result

DropIpv6Membership

Set SOL_IPV6 -> IPV6_DROP_MEMBERSHIP.

Request

NameType
membership fuchsia.posix.socket/Ipv6MulticastMembership

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_DropIpv6Membership_Result

GetAcceptConn

Get SOL_SOCKET -> SO_ACCEPTCONN.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseSocket_GetAcceptConn_Result

GetBindToDevice

Get SOL_SOCKET -> SO_BINDTODEVICE.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseSocket_GetBindToDevice_Result

GetBindToInterfaceIndex

Get SOL_SOCKET -> SO_BINDTOIFINDEX.

Added: 20

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseSocket_GetBindToInterfaceIndex_Result

GetBroadcast

Get SOL_SOCKET -> SO_BROADCAST.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseSocket_GetBroadcast_Result

GetError

Get SOL_SOCKET -> SO_ERROR. Returns the last error if there is an error set on the socket.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseSocket_GetError_Result

GetIcmpv6Filter

Get SOL_ICMPV6 -> ICMP6_FILTER.

Request

<EMPTY>

Response

NameType
payload Socket_GetIcmpv6Filter_Result

GetInfo

Retrieves creation information from the socket.

  • response domain the socket's associated domain.
  • response proto the socket's associated protocol.

Request

<EMPTY>

Response

NameType
payload Socket_GetInfo_Result

GetIpHeaderIncluded

Get SOL_IP -> IP_HDRINCL.

Request

<EMPTY>

Response

NameType
payload Socket_GetIpHeaderIncluded_Result

GetIpMulticastInterface

Get SOL_IP -> IP_MULTICAST_IF.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_GetIpMulticastInterface_Result

GetIpMulticastLoopback

Get SOL_IP -> IP_MULTICAST_LOOP.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_GetIpMulticastLoopback_Result

GetIpMulticastTtl

Get SOL_IP -> IP_MULTICAST_TTL.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_GetIpMulticastTtl_Result

GetIpPacketInfo

Get SOL_IP -> IP_PKTINFO.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_GetIpPacketInfo_Result

GetIpReceiveOriginalDestinationAddress

Get SOL_IP -> IP_RECVORIGDSTADDR

Added: 15

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_GetIpReceiveOriginalDestinationAddress_Result

GetIpReceiveTtl

Get SOL_IP -> IP_RECVTTL.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_GetIpReceiveTtl_Result

GetIpReceiveTypeOfService

Get SOL_IP -> IP_RECVTOS.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_GetIpReceiveTypeOfService_Result

GetIpTransparent

Get SOL_IP -> IP_TRANSPARENT

Added: 15

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_GetIpTransparent_Result

GetIpTtl

Get SOL_IP -> IP_TTL.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_GetIpTtl_Result

GetIpTypeOfService

Get SOL_IP -> IP_TOS.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_GetIpTypeOfService_Result

GetIpv6Checksum

Get SOL_IPV6 -> IPV6_CHECKSUM.

Request

<EMPTY>

Response

NameType
payload Socket_GetIpv6Checksum_Result

GetIpv6MulticastHops

Get SOL_IPV6 -> IPV6_MULTICAST_HOPS.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_GetIpv6MulticastHops_Result

GetIpv6MulticastInterface

Get SOL_IPV6 -> IPV6_MULTICAST_IF.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_GetIpv6MulticastInterface_Result

GetIpv6MulticastLoopback

Get SOL_IPV6 -> IPV6_MULTICAST_LOOP.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_GetIpv6MulticastLoopback_Result

GetIpv6Only

Get SOL_IPV6 -> IPV6_V6ONLY.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_GetIpv6Only_Result

GetIpv6ReceiveHopLimit

Get SOL_IPV6 -> IPV6_RECVHOPLIMIT.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_GetIpv6ReceiveHopLimit_Result

GetIpv6ReceivePacketInfo

Get SOL_IPV6 -> IPV6_RECVPKTINFO.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_GetIpv6ReceivePacketInfo_Result

GetIpv6ReceiveTrafficClass

Get SOL_IPV6 -> IPV6_RECVTCLASS.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_GetIpv6ReceiveTrafficClass_Result

GetIpv6TrafficClass

Get SOL_IPV6 -> IPV6_TCLASS.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_GetIpv6TrafficClass_Result

GetIpv6UnicastHops

Get SOL_IPV6 -> IPV6_UNICAST_HOPS.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_GetIpv6UnicastHops_Result

GetKeepAlive

Get SOL_SOCKET -> SO_KEEPALIVE.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseSocket_GetKeepAlive_Result

GetLinger

Get SOL_SOCKET -> SO_LINGER.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseSocket_GetLinger_Result

GetMark

Like getting SOL_SOCKET -> SO_MARK. The major difference is that unlike the standard SO_MARK, this API has multiple mark domains and each mark can be retrieved independently in each domain.

Added: HEAD

Request

NameType
domain fuchsia.posix.socket/MarkDomain

Response

NameType
payload fuchsia.posix.socket/BaseSocket_GetMark_Result

GetNoCheck

Get SOL_SOCKET -> SO_NO_CHECK.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseSocket_GetNoCheck_Result

GetOriginalDestination

Get SOL_IP -> SO_ORIGINAL_DST.

Added: 15

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_GetOriginalDestination_Result

GetOutOfBandInline

Get SOL_SOCKET -> SO_OOBINLINE.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseSocket_GetOutOfBandInline_Result

GetPeerName

Retrieves the remote socket address.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_GetPeerName_Result

GetReceiveBuffer

Get SOL_SOCKET -> SO_RCVBUF.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseSocket_GetReceiveBuffer_Result

GetReuseAddress

Get SOL_SOCKET -> SO_REUSEADDR.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseSocket_GetReuseAddress_Result

GetReusePort

Get SOL_SOCKET -> SO_REUSEPORT.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseSocket_GetReusePort_Result

GetSendBuffer

Get SOL_SOCKET -> SO_SNDBUF.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseSocket_GetSendBuffer_Result

GetSockName

Retrieves the local socket address.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_GetSockName_Result

GetTimestamp

Get SOL_SOCKET -> SO_TIMESTAMP or SO_TIMESTAMPNS.

Request

<EMPTY>

Response

NameType
payload fuchsia.posix.socket/BaseSocket_GetTimestamp_Result

Query

Request

<EMPTY>

Response

NameType
protocol vector<uint8>

RecvMsg

Receives a message from the socket.

  • request want_addr request message's source address information to be returned.
  • request data_len the maximum allowed length of the response data buffer.
  • request want_control request ancillary data to be returned.
  • request flags flags for the receive request.
  • response addr the message's source address information, if requested.
  • response data the message.
  • response control control messages, if requested.
  • response truncated indicates whether or not the returned message was truncated.

Request

NameType
want_addr bool
data_len uint32
want_control bool
flags fuchsia.posix.socket/RecvMsgFlags

Response

NameType
payload Socket_RecvMsg_Result

SendMsg

Sends a message on the socket.

  • request addr the address to send the message to. If unset, will send to the connected peer.
  • request data the message.
  • request control ancillary data.
  • request flags flags for the send request.

Request

NameType
addr fuchsia.net/SocketAddress?
data vector<uint8>
control fuchsia.posix.socket/NetworkSocketSendControlData
flags fuchsia.posix.socket/SendMsgFlags

Response

NameType
payload Socket_SendMsg_Result

SetBindToDevice

Set SOL_SOCKET -> SO_BINDTODEVICE.

Request

NameType
value fuchsia.net.interfaces/Name

Response

NameType
payload fuchsia.posix.socket/BaseSocket_SetBindToDevice_Result

SetBindToInterfaceIndex

Set SOL_SOCKET -> SO_BINDTOIFINDEX. If value is 0, this clears the bound interface.

Added: 20

Request

NameType
value fuchsia.net/InterfaceId

Response

NameType
payload fuchsia.posix.socket/BaseSocket_SetBindToInterfaceIndex_Result

SetBroadcast

Set SOL_SOCKET -> SO_BROADCAST.

Request

NameType
value bool

Response

NameType
payload fuchsia.posix.socket/BaseSocket_SetBroadcast_Result

SetIcmpv6Filter

Set SOL_ICMPV6 -> ICMP6_FILTER.

Request

NameType
filter Icmpv6Filter

Response

NameType
payload Socket_SetIcmpv6Filter_Result

SetIpHeaderIncluded

Set SOL_IP -> IP_HDRINCL.

Request

NameType
value bool

Response

NameType
payload Socket_SetIpHeaderIncluded_Result

SetIpMulticastInterface

Set SOL_IP -> IP_MULTICAST_IF.

Request

NameType
iface fuchsia.net/InterfaceId
address fuchsia.net/Ipv4Address

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_SetIpMulticastInterface_Result

SetIpMulticastLoopback

Set SOL_IP -> IP_MULTICAST_LOOP.

Request

NameType
value bool

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_SetIpMulticastLoopback_Result

SetIpMulticastTtl

Set SOL_IP -> IP_MULTICAST_TTL.

Request

NameType
value fuchsia.posix.socket/OptionalUint8

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_SetIpMulticastTtl_Result

SetIpPacketInfo

Set SOL_IP -> IP_PKTINFO.

Request

NameType
value bool

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_SetIpPacketInfo_Result

SetIpReceiveOriginalDestinationAddress

Set SOL_IP -> IP_RECVORIGDSTADDR

Added: 15

Request

NameType
value bool

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_SetIpReceiveOriginalDestinationAddress_Result

SetIpReceiveTtl

Set SOL_IP -> IP_RECVTTL.

Request

NameType
value bool

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_SetIpReceiveTtl_Result

SetIpReceiveTypeOfService

Set SOL_IP -> IP_RECVTOS.

Request

NameType
value bool

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_SetIpReceiveTypeOfService_Result

SetIpTransparent

Set SOL_IP -> IP_TRANSPARENT

Added: 15

Request

NameType
value bool

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_SetIpTransparent_Result

SetIpTtl

Set SOL_IP -> IP_TTL.

Request

NameType
value fuchsia.posix.socket/OptionalUint8

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_SetIpTtl_Result

SetIpTypeOfService

Set SOL_IP -> IP_TOS.

Request

NameType
value uint8

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_SetIpTypeOfService_Result

SetIpv6Checksum

Set SOL_IPV6 -> IPV6_CHECKSUM.

Request

NameType
config Ipv6ChecksumConfiguration

Response

NameType
payload Socket_SetIpv6Checksum_Result

SetIpv6MulticastHops

Set SOL_IPV6 -> IPV6_MULTICAST_HOPS.

Request

NameType
value fuchsia.posix.socket/OptionalUint8

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_SetIpv6MulticastHops_Result

SetIpv6MulticastInterface

Set SOL_IPV6 -> IPV6_MULTICAST_IF.

Request

NameType
value fuchsia.net/InterfaceId

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_SetIpv6MulticastInterface_Result

SetIpv6MulticastLoopback

Set SOL_IPV6 -> IPV6_MULTICAST_LOOP.

Request

NameType
value bool

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_SetIpv6MulticastLoopback_Result

SetIpv6Only

Set SOL_IPV6 -> IPV6_V6ONLY.

Request

NameType
value bool

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_SetIpv6Only_Result

SetIpv6ReceiveHopLimit

Set SOL_IPV6 -> IPV6_RECVHOPLIMIT.

Request

NameType
value bool

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_SetIpv6ReceiveHopLimit_Result

SetIpv6ReceivePacketInfo

Set SOL_IPV6 -> IPV6_RECVPKTINFO.

Request

NameType
value bool

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_SetIpv6ReceivePacketInfo_Result

SetIpv6ReceiveTrafficClass

Set SOL_IPV6 -> IPV6_RECVTCLASS.

Request

NameType
value bool

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_SetIpv6ReceiveTrafficClass_Result

SetIpv6TrafficClass

Set SOL_IPV6 -> IPV6_TCLASS

Request

NameType
value fuchsia.posix.socket/OptionalUint8

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_SetIpv6TrafficClass_Result

SetIpv6UnicastHops

Set SOL_IPV6 -> IPV6_UNICAST_HOPS.

Request

NameType
value fuchsia.posix.socket/OptionalUint8

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_SetIpv6UnicastHops_Result

SetKeepAlive

Set SOL_SOCKET -> SO_KEEPALIVE.

Request

NameType
value bool

Response

NameType
payload fuchsia.posix.socket/BaseSocket_SetKeepAlive_Result

SetLinger

Set SOL_SOCKET -> SO_LINGER.

Request

NameType
linger bool
length_secs uint32

Response

NameType
payload fuchsia.posix.socket/BaseSocket_SetLinger_Result

SetMark

Like setting SOL_SOCKET -> SO_MARK. The major difference is that unlike the standard SO_MARK, this API has multiple mark domains and each mark can be set independently in each domain.

Added: HEAD

Request

NameType
domain fuchsia.posix.socket/MarkDomain
mark fuchsia.posix.socket/OptionalUint32

Response

NameType
payload fuchsia.posix.socket/BaseSocket_SetMark_Result

SetNoCheck

Set SOL_SOCKET -> SO_NO_CHECK.

Request

NameType
value bool

Response

NameType
payload fuchsia.posix.socket/BaseSocket_SetNoCheck_Result

SetOutOfBandInline

Set SOL_SOCKET -> SO_OOBINLINE.

Request

NameType
value bool

Response

NameType
payload fuchsia.posix.socket/BaseSocket_SetOutOfBandInline_Result

SetReceiveBuffer

Set SOL_SOCKET -> SO_RCVBUF.

Request

NameType
value_bytes uint64

Response

NameType
payload fuchsia.posix.socket/BaseSocket_SetReceiveBuffer_Result

SetReuseAddress

Set SOL_SOCKET -> SO_REUSEADDR.

Request

NameType
value bool

Response

NameType
payload fuchsia.posix.socket/BaseSocket_SetReuseAddress_Result

SetReusePort

Set SOL_SOCKET -> SO_REUSEPORT.

Request

NameType
value bool

Response

NameType
payload fuchsia.posix.socket/BaseSocket_SetReusePort_Result

SetSendBuffer

Set SOL_SOCKET -> SO_SNDBUF.

Request

NameType
value_bytes uint64

Response

NameType
payload fuchsia.posix.socket/BaseSocket_SetSendBuffer_Result

SetTimestamp

Set SOL_SOCKET -> SO_TIMESTAMP or SO_TIMESTAMPNS.

Request

NameType
value fuchsia.posix.socket/TimestampOption

Response

NameType
payload fuchsia.posix.socket/BaseSocket_SetTimestamp_Result

Shutdown

Shuts down part of the socket.

Request

NameType
mode fuchsia.posix.socket/ShutdownMode

Response

NameType
payload fuchsia.posix.socket/BaseNetworkSocket_Shutdown_Result

STRUCTS

Empty

Defined in fuchsia.posix.socket.raw/socket.fidl

<EMPTY>

Icmpv6Filter

Defined in fuchsia.posix.socket.raw/socket.fidl

A filter for ICMPv6 types.

FieldTypeDescriptionDefault
blocked_types array<uint32, 8>

Indicates whether or not an ICMPv6 type should be blocked.

Each bit index encodes an ICMPv6 type; bit 0 in blocked_types[0] holds the flag for ICMPv6 type 0 and bit 31 in blocked_types[7] holds the flag for ICMPv6 type 255.

Equivalent to Linux's icmp6_filter.icmp6_filt.

No default

Provider_Socket_Response resource

Defined in fuchsia.posix.socket.raw/socket.fidl

FieldTypeDescriptionDefault
s client_end:Socket No default

Socket_GetIcmpv6Filter_Response

Defined in fuchsia.posix.socket.raw/socket.fidl

FieldTypeDescriptionDefault
filter Icmpv6Filter No default

Socket_GetInfo_Response

Defined in fuchsia.posix.socket.raw/socket.fidl

FieldTypeDescriptionDefault
domain fuchsia.posix.socket/Domain No default
proto ProtocolAssociation No default

Socket_GetIpHeaderIncluded_Response

Defined in fuchsia.posix.socket.raw/socket.fidl

FieldTypeDescriptionDefault
value bool No default

Socket_GetIpv6Checksum_Response

Defined in fuchsia.posix.socket.raw/socket.fidl

FieldTypeDescriptionDefault
config Ipv6ChecksumConfiguration No default

Socket_RecvMsg_Response

Defined in fuchsia.posix.socket.raw/socket.fidl

FieldTypeDescriptionDefault
addr fuchsia.net/SocketAddress? No default
data vector<uint8> No default
control fuchsia.posix.socket/NetworkSocketRecvControlData No default
truncated uint32 No default

Socket_SendMsg_Response

Defined in fuchsia.posix.socket.raw/socket.fidl

<EMPTY>

Socket_SetIcmpv6Filter_Response

Defined in fuchsia.posix.socket.raw/socket.fidl

<EMPTY>

Socket_SetIpHeaderIncluded_Response

Defined in fuchsia.posix.socket.raw/socket.fidl

<EMPTY>

Socket_SetIpv6Checksum_Response

Defined in fuchsia.posix.socket.raw/socket.fidl

<EMPTY>

TABLES

SocketDescribeResponse resource

Defined in fuchsia.posix.socket.raw/socket.fidl

OrdinalFieldTypeDescription
event handle<eventpair>

Signals additional information about the state of the socket such as readiness or shutdown-ness.

UNIONS

Ipv6ChecksumConfiguration strict

Defined in fuchsia.posix.socket.raw/socket.fidl

IPv6 socket checksum configuration.

OrdinalVariantTypeDescription
disabled Empty

Indicates that the stack should not calculate checksums for outgoing packets and valiate checksums for incoming packets.

offset int32

Indicates that the stack should calculate checksums for outgoing packets and validate checksums for incoming packets.

offset indicates where the checksum is found in the IPv6 packet's payload.

The offset must be aligned to the size of an internet checksum as specified in RFC 1071. That is, the offset must be 2-byte aligned.

ProtocolAssociation strict

Defined in fuchsia.posix.socket.raw/socket.fidl

The protocol a raw socket is associated with.

OrdinalVariantTypeDescription
unassociated Empty

Indicates no association with any protocol.

The socket will not receive packets. Sent packets must include the network header.

associated Protocol

The associated protocol.

The socket may only send and receive network packets for the associated protocol.

Provider_Socket_Result strict resource

Defined in fuchsia.posix.socket.raw/socket.fidl

OrdinalVariantTypeDescription
response Provider_Socket_Response
err fuchsia.posix/Errno

Socket_GetIcmpv6Filter_Result strict

Defined in fuchsia.posix.socket.raw/socket.fidl

OrdinalVariantTypeDescription
response Socket_GetIcmpv6Filter_Response
err fuchsia.posix/Errno

Socket_GetInfo_Result strict

Defined in fuchsia.posix.socket.raw/socket.fidl

OrdinalVariantTypeDescription
response Socket_GetInfo_Response
err fuchsia.posix/Errno

Socket_GetIpHeaderIncluded_Result strict

Defined in fuchsia.posix.socket.raw/socket.fidl

OrdinalVariantTypeDescription
response Socket_GetIpHeaderIncluded_Response
err fuchsia.posix/Errno

Socket_GetIpv6Checksum_Result strict

Defined in fuchsia.posix.socket.raw/socket.fidl

OrdinalVariantTypeDescription
response Socket_GetIpv6Checksum_Response
err fuchsia.posix/Errno

Socket_RecvMsg_Result strict

Defined in fuchsia.posix.socket.raw/socket.fidl

OrdinalVariantTypeDescription
response Socket_RecvMsg_Response
err fuchsia.posix/Errno

Socket_SendMsg_Result strict

Defined in fuchsia.posix.socket.raw/socket.fidl

OrdinalVariantTypeDescription
response Socket_SendMsg_Response
err fuchsia.posix/Errno

Socket_SetIcmpv6Filter_Result strict

Defined in fuchsia.posix.socket.raw/socket.fidl

OrdinalVariantTypeDescription
response Socket_SetIcmpv6Filter_Response
err fuchsia.posix/Errno

Socket_SetIpHeaderIncluded_Result strict

Defined in fuchsia.posix.socket.raw/socket.fidl

OrdinalVariantTypeDescription
response Socket_SetIpHeaderIncluded_Response
err fuchsia.posix/Errno

Socket_SetIpv6Checksum_Result strict

Defined in fuchsia.posix.socket.raw/socket.fidl

OrdinalVariantTypeDescription
response Socket_SetIpv6Checksum_Response
err fuchsia.posix/Errno

CONSTANTS

NameValueTypeDescription
SOCKET_PROTOCOL_NAME fuchsia.posix.socket.raw/Socket String

ALIASES

NameValueDescription
Protocol uint8

The protocol a raw socket may be associated with.