IP Options

Configure Internet Protocol options on connections.

Topics

Handling IP Packets

nw_ip_create_metadata

Initializes an IP packet configuration with default settings.

nw_protocol_metadata_is_ip

Checks whether a metadata object represents an IP packet.

nw_ip_metadata_set_ecn_flag

Sets a specific Explicit Congestion Notification flag value to set on an IP packet.

nw_ip_metadata_get_ecn_flag

Checks the Explicit Congestion Notification flag value received on an IP packet.

nw_ip_ecn_flag_t

Flag values for Explicit Congestion Notifications in IP packets.

nw_ip_metadata_set_service_class

Sets a specific service class to mark on an IP packet.

nw_ip_metadata_get_service_class

Accesses a specific service class to mark on an IP packet.

nw_ip_metadata_get_receive_time

Access the time at which a packet was received, in nanoseconds, based on CLOCK_MONOTONIC_RAW.

Configuring IP Connections

nw_protocol_copy_ip_definition

Accesses the system definition of the Internet Protocol.

nw_ip_options_set_version

Sets a required IP version to disable all other versions for a connection.

nw_ip_version_t

IP versions to require on connections and listeners.

nw_ip_options_set_calculate_receive_time

Configures a connection to deliver receive timestamps for IP packets.

nw_ip_options_set_hop_limit

Configures the default hop limit for packets generated by a connection.

nw_ip_options_set_use_minimum_mtu

Configures a connection to use the minimum MTU value, which is 1280 bytes for IPv6.

nw_ip_options_set_disable_fragmentation

Configures a connection to disable fragmentation on outbound packets.

nw_ip_options_set_local_address_preference

Configures a connection to prefer certain types of local addresses, such as temporary or stable.

nw_ip_local_address_preference_t

Types of local addresses that can be selected, such as temporary or stable.

See Also

Network Protocols

TCP Options

Configure options for connections that use the Transmission Control Protocol.

TLS Options

Configure options for connections that use Transport Layer Security.

UDP Options

Configure options for connections that use the User Datagram Protocol.

WebSocket Options

Configure options for connections that use WebSocket.

Framer Protocol Options

Create custom protocols to frame applications messages over a connection.