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

# mbuf_pkthdr_len

## Declaration

```occ
size_t mbuf_pkthdr_len(const mbuf_t mbuf);
```

## Parameters

- `mbuf`: The mbuf containing the packet header with the length to be changed.

## Return Value

Return Value The length, in bytes, of the packet.

## Discussion

Discussion Returns the length as reported by the packet header.
