---
title: "fragmentationDisabled(_:)"
framework: network
role: symbol
role_heading: Instance Method
path: "network/ip/fragmentationdisabled(_:)"
---

# fragmentationDisabled(_:)

Configure IP to disable fragmentation on outgoing packets.

## Declaration

```swift
func fragmentationDisabled(_ dontFragment: Bool) -> IP
```

## Parameters

- `dontFragment`: True to disable fragmentation, false otherwise.

## Discussion

Discussion Equivalent to IP_DONTFRAG for IPv4 and IPV6_DONTFRAG for IPv6.
