---
title: SetLinkHeaderLength
framework: networkingdriverkit
role: symbol
role_heading: Instance Method
path: networkingdriverkit/iousernetworkpacket/setlinkheaderlength-9fqmg
---

# SetLinkHeaderLength

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

## Declaration

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

## Parameters

- `length`: The new length value, specified in bytes

## Return Value

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

## See Also

### Configuring the Packet State Information

- [SetHeadroom](networkingdriverkit/iousernetworkpacket/setheadroom.md)
- [SetDataOffset](networkingdriverkit/iousernetworkpacket/setdataoffset-16kx3.md)
- [SetDataLength](networkingdriverkit/iousernetworkpacket/setdatalength-788b.md)
