> 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/ng_gif_demux.4.md).

# ng\_gif\_demux.4

`ng_gif_demux` — 用于来自 [ng\_gif(4)](/man/man4/ng_gif.4.md) 节点数据包的解复用器

## 名称

`ng_gif_demux`

## 概要

`#include <netgraph/ng_gif_demux.h>`

## 描述

`ng_gif_demux` netgraph 节点类型在 [netgraph(4)](/man/man4/netgraph.4.md) 网络子系统中对来自 [ng\_gif(4)](/man/man4/ng_gif.4.md) 节点的输出进行解复用。

`gif` 钩子用于连接到 [ng\_gif(4)](/man/man4/ng_gif.4.md) 节点的 `lower` 或 `orphans` 钩子。当在 `gif` 钩子上接收到 `inet`、`inet6`、`atalk`、`ipx`、`atm`、`natm` 和 `ns` 类型的帧时，会从对应的钩子输出。当在这些钩子之一上接收到帧时，会对其进行封装并通过 `gif` 钩子发送出去。

## 钩子

本节点类型支持以下钩子：

**`gif`** 连接到 [ng\_gif(4)](/man/man4/ng_gif.4.md) 节点的 `lower` 或 `orphans` 钩子。

**`inet`** IP 帧的输入和输出钩子。

**`inet6`** IPv6 帧的输入和输出钩子。

**`atalk`** AppleTalk 帧的输入和输出钩子。

**`ipx`** IPX 帧的输入和输出钩子。

**`atm`** ATM 帧的输入和输出钩子。

**`natm`** NATM 帧的输入和输出钩子。

**`ns`** NS 帧的输入和输出钩子。

## 控制消息

本节点类型仅支持通用控制消息。

## 参见

[gif(4)](/man/man4/gif.4.md), [netgraph(4)](/man/man4/netgraph.4.md), [netintro(4)](/man/man4/netintro.4.md), [ng\_gif(4)](/man/man4/ng_gif.4.md), [ifconfig(8)](/man/man8/ifconfig.8.md), ngctl(8), nghook(8)

## 作者

Brooks Davis <brooks@FreeBSD.org>


---

# 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/ng_gif_demux.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.
