<!--
{
  "availability" : [
    "*: -",
    "DriverKit: -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkingDriverKit",
  "identifier" : "/documentation/NetworkingDriverKit/IOUserNetworkPacket/SetLinkHeaderLength-9fqmg",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "NetworkingDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUserNetworkPacket@F@SetLinkHeaderLength#c#"
  },
  "title" : "SetLinkHeaderLength"
}
-->

# SetLinkHeaderLength

Changes the number of bytes to use for the link header to the specified value.

```
virtual kern_return_t SetLinkHeaderLength(uint8_t length);
```

## Parameters

`length`

The new length value, specified in bytes

## Return Value

`kIOReturnSuccess` on success, or another value if an error occurred.

---

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)