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

# proto_input

## Declaration

```occ
errno_t proto_input(protocol_family_t protocol, mbuf_t packet);
```

## Parameters

- `protocol`: The protocol of the packet.
- `packet`: The first packet in a chain of packets to be input.

## Return Value

Return Value A errno error on failure. Unless proto_input returns zero, the caller is responsible for freeing the mbuf.

## Discussion

Discussion Inputs a packet on the specified protocol from the input path.
