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

# mbuf_pkthdr_setheader

## Declaration

```occ
void mbuf_pkthdr_setheader(mbuf_t mbuf, void *header);
```

## Parameters

- `mbuf`: The mbuf containing the packet header.
- `ifnet`: A pointer to the header.

## Return Value

Return Value 0 upon success otherwise the errno error.

## Discussion

Discussion Sets the pointer to the packet header.
