<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/nw_ethernet_channel_create(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "c:@F@nw_ethernet_channel_create"
  },
  "title" : "nw_ethernet_channel_create(_:_:)"
}
-->

# nw_ethernet_channel_create(_:_:)

Initializes an Ethernet channel on a specific interface with a custom Ethernet type.

```
func nw_ethernet_channel_create(_ ether_type: UInt16, _ interface: nw_interface_t) -> nw_ethernet_channel_t
```

## Parameters

`ether_type`

The custom Ethernet frame type to register for this channel, in host-byte order.

`interface`

The interface on which to send and receive Ethernet frames.

## Discussion

---

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)