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

# bpf_send_func

## Declaration

```occ
typedef errno_t (*bpf_send_func)(ifnet_t interface, u_int32_t data_link_type, mbuf_t packet);
```

## Parameters

- `interface`: The interface the packet is being sent on.
- `dlt`: The data link type the bpf device is attached to.
- `packet`: The packet to be sent.

## Discussion

Discussion bpf_send_func is called when a bpf file descriptor is used to send a raw packet on the interface. The mbuf and data link type are specified. The callback is responsible for releasing the mbuf whether or not it returns an error.
