---
title: proto_unplumb_handler
framework: Kernel
role: symbol
role_heading: Type Alias
platforms: [macOS 10.4+]
path: kernel/proto_unplumb_handler
---

# proto_unplumb_handler

## Declaration

```occ
typedef void (*proto_unplumb_handler)(ifnet_t ifp, protocol_family_t protocol);
```

## Parameters

- `ifp`: The interface the protocol should be detached from.
- `protocol_family`: The protocol that should be detached from the interface.

## Discussion

Discussion proto_unplumb_handler is called to detach a protocol from an interface. A typical unplumb function would call ifnet_detach_protocol and perform any necessary cleanup.
