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

# sflt_register

## Declaration

```occ
errno_t sflt_register(const struct sflt_filter *filter, int domain, int type, int protocol);
```

## Parameters

- `filter`: A structure describing the filter.
- `domain`: The protocol domain these filters will be attached to.
- `type`: The socket type these filters will be attached to.
- `protocol`: The protocol these filters will be attached to.

## Return Value

Return Value 0 on success otherwise the errno error.

## Discussion

Discussion Registers a socket filter. See 'man 2 socket' for a desciption of domain, type, and protocol.
