---
title: mbuf_pkthdr_adjustlen
framework: Kernel
role: symbol
role_heading: Function
platforms: [macOS 10.4+]
path: kernel/1535682-mbuf_pkthdr_adjustlen
---

# mbuf_pkthdr_adjustlen

## Declaration

```occ
void mbuf_pkthdr_adjustlen(mbuf_t mbuf, int amount);
```

## Parameters

- `mbuf`: The mbuf containing the packet header.
- `amount`: The number of bytes to adjust the packet header length field by.

## Discussion

Discussion Adjusts the length of the packet in the packet header.
