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

# mbuf_settype

## Declaration

```occ
errno_t mbuf_settype(mbuf_t mbuf, mbuf_type_t new_type);
```

## Parameters

- `mbuf`: The mbuf.
- `new_type`: The new type.

## Return Value

Return Value 0 upon success otherwise the errno error.

## Discussion

Discussion Sets the type of mbuf.
