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

# mbuf_copy_pkthdr

## Declaration

```occ
errno_t mbuf_copy_pkthdr(mbuf_t dest, const mbuf_t src);
```

## Parameters

- `src`: The mbuf from which the packet header will be copied.
- `mbuf`: The mbuf to which the packet header will be copied.

## Return Value

Return Value 0 upon success otherwise the errno error.

## Discussion

Discussion Copies the packet header from src to dest.
