<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/nw_ip_ecn_flag_t",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "c:@EA@nw_ip_ecn_flag_t"
  },
  "title" : "nw_ip_ecn_flag_t"
}
-->

# nw_ip_ecn_flag_t

Flag values for Explicit Congestion Notifications in IP packets.

```
struct nw_ip_ecn_flag_t
```

## Topics

### ECN Flags

[`nw_ip_ecn_flag_non_ect`](/documentation/Network/nw_ip_ecn_flag_non_ect)

Non-ECN Capable Transport.

[`nw_ip_ecn_flag_ect_0`](/documentation/Network/nw_ip_ecn_flag_ect_0)

ECN Capable Transport (flag 0).

[`nw_ip_ecn_flag_ect_1`](/documentation/Network/nw_ip_ecn_flag_ect_1)

ECN Capable Transport (flag 1).

[`nw_ip_ecn_flag_ce`](/documentation/Network/nw_ip_ecn_flag_ce)

Congestion Experienced.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)