Skip to content

docs(config): explain VLAN subinterface for tagged multicast - #743

Closed
stackia wants to merge 1 commit into
mainfrom
cursor/vlan-upstream-interface-docs-2e26
Closed

docs(config): explain VLAN subinterface for tagged multicast#743
stackia wants to merge 1 commit into
mainfrom
cursor/vlan-upstream-interface-docs-2e26

Conversation

@stackia

@stackia stackia commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Closes #742

Summary

rtp2httpd 不需要在进程内剥离 802.1Q tag。组播收包走普通 UDP socket + IGMP join,内核不会把带 VLAN tag 的帧交给物理口上的 UDP socket。

正确做法是先在系统里创建 VLAN 子接口,再把 upstream-interface-multicast(或 upstream-interface)指到这个已经存在的内核设备,例如 eth0.12。配置里写 eth0.12 不会创建该接口。

Changes

  • 配置文档说明 VLAN 子接口用法、接口必须先存在、以及 OpenWrt / 爱快常见设备名
  • 快速上手、AI 网络诊断提示、示例 rtp2httpd.conf
  • LuCI 与爱快插件上游接口帮助文案

Why not in-app tag stripping

在用户态用 AF_PACKET 解析 802.1Q、再自己发带 tag 的 IGMP,会绕过内核 IP/组播栈、防火墙和路由,也重复了 8021q 模块已经做的事。这不属于 rtp2httpd 的职责(文档也写明它不是 VLAN 管理器)。

Open in Web Open in Cursor 

rtp2httpd already binds to kernel netdevs such as eth0.12. Document that
802.1Q tag stripping is the kernel's job, and that writing eth0.12 in
config does not create the VLAN device.

Co-authored-by: jsq2627 <jsq2627@gmail.com>
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Documentation preview

The documentation preview has been deployed for this pull request.

@stackia stackia closed this Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

能否实现rtp2httpd直接识别带vlan tag标签的组播数据的功能

2 participants