The system definition of the Internet Protocol (IP).
Can be used to insert IP into a protocol stack.
> Note: Specifying IP is optional, and need only be included in a
protocol stack when configuring IP options.
Members (8)
method · iOS 26.0+
minimumMTU
TypeScript
minimumMTU(useMinimumMTU: boolean): IP
Swift declaration
func minimumMTU(_ useMinimumMTU: Bool) -> IP
Configure IP to use the minimum MTU value.
The minimum MTU value is 1280 bytes for IPv6 (`IPV6_USE_MIN_MTU`).
This value has no effect for IPv4.
- Parameter useMinimumMTU: True to use the minimum MTU value, false otherwise.
method · iOS 26.0+
fragmentationDisabled
TypeScript
fragmentationDisabled(dontFragment: boolean): IP
Swift declaration
func fragmentationDisabled(_ dontFragment: Bool) -> IP
Configure IP to disable fragmentation on outgoing packets.
Equivalent to `IP_DONTFRAG` for IPv4 and `IPV6_DONTFRAG` for IPv6.
- Parameter dontFragment: True to disable fragmentation, false otherwise.
method · iOS 26.0+
receiveTimeCalculated
TypeScript
receiveTimeCalculated(calculateReceiveTime: boolean): IP
Swift declaration
func receiveTimeCalculated(_ calculateReceiveTime: Bool) -> IP
Configure IP to calculate receive time for inbound packets.
- Parameter calculateReceiveTime: True to calculate receive time, false otherwise.
method · iOS 26.0+
localAddressPreference
TypeScript
localAddressPreference(preference: NWProtocolIP_Options_AddressPreference): IP
Swift declaration
func localAddressPreference(_ preference: NWProtocolIP.Options.AddressPreference) -> IP
method · iOS 26.0+
multicastLoopbackDisabled
TypeScript
multicastLoopbackDisabled(disableMulticastLoopback: boolean): IP
Swift declaration
func multicastLoopbackDisabled(_ disableMulticastLoopback: Bool) -> IP
Specify if multicast packets should be looped back for local delivery.
By default, a multicast packet sent to a group to which the sending host itself belongs
will be looped back for local delivery. `disableMulticastLoopback` disables
this behavior and, if set, multicast packets will not be looped back to the sender.
> Note: Only applies to multicast packets.
- Parameter disableMulticastLoopback: True to disable multicast loopback, false otherwise.
method · iOS 26.0+
version
TypeScript
version(version: NWProtocolIP_Options_Version): IP
Swift declaration
func version(_ version: NWProtocolIP.Options.Version) -> IP
method · iOS 26.0+
hopLimit
TypeScript
hopLimit(limit: number): IP
Swift declaration
func hopLimit(_ limit: UInt8) -> IP
Configure the IP hop limit.
Equivalent to `IP_TTL` for IPv4
and `IPV6_HOPLIMIT` for IPv6.
- Parameter limit: The hop limit.