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

# mbuf_set_csum_performed

## Declaration

```occ
errno_t mbuf_set_csum_performed(mbuf_t mbuf, mbuf_csum_performed_flags_t flags, u_int32_t value);
```

## Parameters

- `mbuf`: The mbuf containing the packet.
- `flags`: Flags indicating which hardware checksum operations were performed.
- `value`: If the MBUF_CSUM_DID_DATA flag is set, value should be set to the value of the TCP or UDP header as calculated by the hardware.

## Return Value

Return Value 0 upon success otherwise the errno error.

## Discussion

Discussion This is used by the driver to indicate to the stack which checksum operations were performed in hardware.
