> For the complete documentation index, see [llms.txt](https://book.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.bsdcn.org/man/man4/disc.4.md).

# disc.4

`disc` — 软件丢弃网络接口

## 名称

`disc`

## 概要

`device disc`

## 描述

`disc` 接口是一种软件丢弃机制，可用于性能分析和/或软件测试。与其他网络接口一样，丢弃接口必须为每个要使用的地址族分配网络地址。这些地址可通过 `SIOCSIFADDR` ioctl(2) 设置或更改。

每个 `disc` 接口在运行时使用接口克隆创建。最简单的方法是使用 [ifconfig(8)](/man/man8/ifconfig.8.md) `create` 命令或使用 [rc.conf(5)](/man/man5/rc.conf.5.md) 中的 `cloned_interfaces` 变量。

## 参见

[inet(4)](/man/man4/inet.4.md), [intro(4)](/man/man4/intro.4.md)

## 历史

`disc` 设备似乎在 4.4BSD 时期从 [lo(4)](/man/man4/lo.4.md) 设备派生而来。本手册页改编自 [lo(4)](/man/man4/lo.4.md)，首次出现于 FreeBSD 5.0。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://book.bsdcn.org/man/man4/disc.4.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
