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

# mbuf_pkthdr_setrcvif

## Declaration

```occ
errno_t mbuf_pkthdr_setrcvif(mbuf_t mbuf, ifnet_t ifp);
```

## Parameters

- `mbuf`: The mbuf containing the packet header.
- `ifnet`: A reference to an interface.

## Return Value

Return Value 0 upon success otherwise the errno error.

## Discussion

Discussion Sets the interface the packet was received on.
