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

# mbuf_setnextpkt

## Declaration

```occ
void mbuf_setnextpkt(mbuf_t mbuf, mbuf_t nextpkt);
```

## Parameters

- `mbuf`: The mbuf.
- `nextpkt`: The new next packet.

## Discussion

Discussion Sets the next packet attached to this mbuf.
