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

# sflt_detach

## Declaration

```occ
errno_t sflt_detach(socket_t socket, sflt_handle handle);
```

## Parameters

- `socket`: The socket the filter should be detached from.
- `handle`: The handle of the registered filter to be detached.

## Return Value

Return Value 0 on success otherwise the errno error.

## Discussion

Discussion Detaches a socket filter from a specified socket.
