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

# mbuf_get_mhlen

## Declaration

```occ
u_int32_t mbuf_get_mhlen(void);
```

## Return Value

Return Value The number of bytes of available data.

## Discussion

Discussion This routine returns the number of data bytes in a packet header mbuf. This is equivalent to the legacy MHLEN macro.
